/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

input,
textarea,
button,
select {
    font: inherit;
}

.hidden {
    display: none;
}

/* HOME BACKGROUND */
#home {
    position: fixed;
    inset: 0;
}

.home-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 4.8s ease;
}

#home-slideA { z-index: 1; }
#home-slideB { z-index: 2; }

/* MENU BUTTON */
#menu-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(10,10,10,0.62);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    position: fixed;
    right: -10px;
    bottom: -10px;
    z-index: 50;
    overflow: visible;
    isolation: isolate;
}

#menu-button img {
    width: 45%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.28s ease;
}

#menu-button .home-glyph {
    width: 24px;
    height: 24px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

#menu-button .home-glyph::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    width: 12px;
    height: 12px;
    border-left: 2px solid rgba(255,255,255,0.9);
    border-top: 2px solid rgba(255,255,255,0.9);
    transform: translateX(-50%) rotate(45deg);
}

#menu-button .home-glyph::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 12px;
    height: 9px;
    border: 2px solid rgba(255,255,255,0.9);
    border-top: none;
    transform: translateX(-50%);
}

#menu-button.as-home img {
    opacity: 0;
}

#menu-button.as-home .home-glyph {
    opacity: 1;
}

#menu-button.first-visit-glow::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(214, 232, 255, 0.85);
    opacity: 0;
    box-shadow: 0 0 0 rgba(176, 220, 255, 0.0);
    animation: menuFirstGlow 4s ease-in-out 1 both;
    pointer-events: none;
}

@keyframes menuFirstGlow {
    0% {
        opacity: 0;
        box-shadow: 0 0 0 rgba(176, 220, 255, 0);
    }
    35% {
        opacity: 1;
        box-shadow: 0 0 14px rgba(176, 220, 255, 0.42), 0 0 26px rgba(176, 220, 255, 0.24);
    }
    100% {
        opacity: 0;
        box-shadow: 0 0 0 rgba(176, 220, 255, 0);
    }
}

/* INFO BUTTON */
.circle-button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 12px;
    z-index: 45;
}

.left-button { left: 20px; }

/* MENU OVERLAY */
#menu-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#menu-overlay.visible {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* MENU PANEL */
#menu-panel {
    position: fixed;
    bottom: 76px;
    right: 56px;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(8px);
    z-index: 51;
}

#menu-panel.visible {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#menu-items {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-height: 500px) {
    #menu-items {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 640px) {
    #menu-panel {
        right: 50%;
        transform: translate(50%, 8px);
    }

    #menu-panel.visible {
        transform: translate(50%, 0);
    }
}

.menu-item {
    height: 80px;
    min-width: 140px;
    padding: 0 20px;
    background: rgba(24,24,24,0.46);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover,
.menu-item:focus-visible {
    transform: translateY(-1px);
    background: rgba(34,34,34,0.7);
    border-color: rgba(255,255,255,0.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 22px rgba(0,0,0,0.28);
}

/* GALLERY OVERLAY */
#gallery-overlay {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 35;
    padding: 44px 20px 92px 20px;
}

#gallery-overlay.visible {
    display: flex !important;
    opacity: 1;
}

/* CAPTION PILL */
#gallery-caption-pill {
    position: fixed;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80vw;
    padding: 10px 18px;
    background: rgba(24,24,24,0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0 0 14px 14px;
    text-align: center;
    z-index: 40;
    opacity: 1;
    transition: opacity 0.35s ease-in-out, height 0.6s ease-in-out;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.28);
}

#gallery-caption-pill.fade-out { opacity: 0; }
#gallery-caption-pill.fade-in  { opacity: 1; }

#caption-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

#caption-title.fade-out {
    opacity: 0;
}

#caption-title.fade-in {
    opacity: 1;
}

#caption-subtitle {
    display: block;
    font-size: 0.78rem;
    font-weight: 300;
    opacity: 0.75;
    margin-top: 0;
    transition: opacity 0.4s ease-in-out;
}

#caption-subtitle.fade-out {
    opacity: 0;
}

#caption-subtitle.fade-in {
    opacity: 0.75;
}

#caption-subtitle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

#caption-info-toggle {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.52);
    background: rgba(0,0,0,0.42);
    color: rgba(255,255,255,0.92);
    font-size: 0.68rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition: border-color 0.22s ease;
}

#caption-info-toggle.visible {
    display: inline-flex;
}

#caption-info-toggle:hover,
#caption-info-toggle:focus-visible {
    border-color: rgba(255,255,255,0.78);
}

#gallery-caption-pill.has-detail {
    cursor: pointer;
}

#gallery-caption-detail {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 62px;
    bottom: 140px;
    z-index: 39;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(16,16,16,0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 16px 32px rgba(0,0,0,0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: none;
}

#gallery-caption-detail.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#gallery-caption-detail-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 18px;
    line-height: 1.7;
    font-size: 0.96rem;
    color: rgba(255,255,255,0.9);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}

#gallery-category-flash {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 44;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    font-weight: 600;
    color: rgba(255,255,255,0.96);
    text-shadow: 0 8px 24px rgba(0,0,0,0.38);
    opacity: 0;
}

#gallery-category-flash.visible.from-bottom {
    animation: galleryFlashTitleFromBottom 1s ease forwards;
}

#gallery-category-flash.visible.from-top {
    animation: galleryFlashTitleFromTop 1s ease forwards;
}

#gallery-category-flash.visible.from-center {
    animation: galleryFlashTitleFromCenter 1s ease forwards;
}

@keyframes galleryFlashTitleFromBottom {
    0% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 26px)) scale(0.97);
    }
    24% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 18px)) scale(1.01);
    }
}

@keyframes galleryFlashTitleFromTop {
    0% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 26px)) scale(0.97);
    }
    24% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 18px)) scale(1.01);
    }
}

@keyframes galleryFlashTitleFromCenter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.97);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.01);
    }
}

/* IMAGE AREA */
#gallery-main {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 36;
    overflow: visible;
    touch-action: none;
    min-height: 0;
    padding: 2px 2px 24px 2px;
    box-sizing: border-box;
    background: transparent;
}

@media (max-width: 768px) {
    #gallery-main {
        padding: 2px 2px 20px 2px;
    }
}

@media (max-width: 480px) {
    #gallery-main {
        padding: 1px 1px 16px 1px;
    }
}

#gallery-main-image {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transform: translateX(-50%) translateY(-50%);
    transform-origin: center center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
    transition: opacity 0.35s cubic-bezier(.2,.8,.2,1), transform 0.35s cubic-bezier(.2,.8,.2,1);
    will-change: transform, opacity;
    -webkit-user-select: none;
    user-select: none;
    margin: 0;
    box-sizing: border-box;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

#gallery-main-player {
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    transform-origin: center center;
    border-radius: 14px;
    overflow: hidden;
    background-color: transparent;
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
    z-index: 2;
    pointer-events: auto;
    transition: background-color 0.22s ease;
}

#gallery-main-player.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    opacity: 1;
    animation: videoLoaderSpin 1.1s linear infinite;
    pointer-events: none;
    z-index: 2;
}

#gallery-main-player.visible:not(.loading) {
    background-color: #000;
}

#gallery-main-player.loading {
    box-shadow: none;
}

@keyframes videoLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

#gallery-main-player iframe,
#gallery-main-player object,
#gallery-main-player embed,
#gallery-main-player ruffle-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

#gallery-main-player.visible:not(.loading) iframe,
#gallery-main-player.visible:not(.loading) object,
#gallery-main-player.visible:not(.loading) embed,
#gallery-main-player.visible:not(.loading) ruffle-player {
    opacity: 1;
}

#gallery-main-player.visible {
    display: block;
}

#gallery-main-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(80vw, 900px);
    max-height: min(72vh, 620px);
    transform: translateX(-50%) translateY(-50%);
    border-radius: 0;
    border: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.2,.8,.2,1), transform 0.35s cubic-bezier(.2,.8,.2,1);
    z-index: 2;
    display: none;
}

#gallery-main-text.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

#gallery-main-text-scroll {
    max-height: min(72vh, 620px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 18px;
    line-height: 1.72;
    font-size: 0.98rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 26px, black calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 26px, black calc(100% - 26px), transparent 100%);
}

#gallery-main-text-scroll.no-fade {
    -webkit-mask-image: none;
    mask-image: none;
}

#gallery-main-text-scroll h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

#gallery-main-text-scroll p {
    opacity: 0.9;
}

#gallery-main-text-scroll a {
    color: rgba(255,255,255,0.92);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#gallery-main-text-scroll a:hover {
    color: #fff;
}

/* FULLSCREEN MODE */
body.fullscreen-mode #gallery-main {
    position: fixed;
    inset: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
}

body.fullscreen-mode #gallery-overlay {
    padding: 0;
}

body.fullscreen-mode #gallery-caption-pill {
    opacity: 0;
    pointer-events: none;
}

body.fullscreen-mode #gallery-caption-pill.fade-in {
    opacity: 1;
}

body.fullscreen-mode #gallery-caption-pill.fade-out {
    opacity: 0;
}

body.fullscreen-mode #gallery-thumbs-wrapper {
    opacity: 0;
    pointer-events: none;
}

body.fullscreen-mode #gallery-main-player {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform: none;
    border-radius: 0;
    box-shadow: none;
}

/* THUMB STRIP */
#gallery-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 40;
    padding: 0;
    margin: 0;
    overflow: visible;
}

/* THUMBS WRAPPER */
#gallery-thumbs-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 12px;
    overflow: visible;
}

#gallery-thumbs-wrapper.centered {
    justify-content: center;
}

/* THUMBS CONTAINER */
#gallery-thumbs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 14px 24px 8px 24px;
    margin: 0;
    scroll-behavior: smooth;
    scroll-padding-inline: 24px;
    -ms-overflow-style: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
    max-width: calc(100vw - 24px);
    touch-action: pan-x;
    -webkit-user-select: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right,
        transparent 0,
        black 34px,
        black calc(100% - 34px),
        transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0,
        black 34px,
        black calc(100% - 34px),
        transparent 100%);
}

#gallery-thumbs.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

#gallery-thumbs.inertia {
    scroll-behavior: auto;
}

#gallery-thumbs.dragging * {
    cursor: grabbing !important;
}

#gallery-thumbs.compact {
    justify-content: flex-start;
}

#gallery-thumbs.centered {
    justify-content: center;
}

#gallery-thumbs::-webkit-scrollbar { height: 3px; }
#gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); }

/* THUMB IMAGE */
.thumb-image {
    height: 80px;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    filter: none;
    background: rgba(0,0,0,0.32);
    box-shadow: 0 7px 16px rgba(0,0,0,0.24);
    transform-origin: center bottom;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
    display: block;
    overflow: hidden;
    position: relative;
    top: 0;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
    will-change: transform, opacity;
    -webkit-user-drag: none;
}

.thumb-image.active {
    transform: scale(1.08);
    opacity: 1;
    filter: blur(1.8px) saturate(1.06);
    box-shadow: 0 10px 22px rgba(0,0,0,0.32);
    z-index: 2;
}

/* SEPARATOR */
.thumb-section {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 8px;
}

.thumb-group {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    clip-path: none;
    opacity: 0;
    transition: max-width 0.38s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}

.thumb-group[aria-hidden="true"] {
    overflow: hidden;
    clip-path: none;
    padding-inline: 0;
}

.thumb-group[aria-hidden="false"] {
    overflow: visible;
    clip-path: inset(-14px 0 -14px 0);
    opacity: 1;
    padding-inline: 12px;
}

.thumb-separator {
    height: 80px;
    min-width: 120px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14,14,14,0.42);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    box-shadow: 0 7px 16px rgba(0,0,0,0.2);
    flex: 0 0 auto;
    cursor: pointer;
    font: inherit;
    text-align: center;
    appearance: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.thumb-separator:hover,
.thumb-separator:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.35);
    background: rgba(20,20,20,0.56);
    color: rgba(255,255,255,0.9);
}

.thumb-separator:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.10), 0 7px 16px rgba(0,0,0,0.2);
}

.thumb-separator.active {
    transform: scale(1.06);
    border-color: rgba(255,255,255,0.28);
    background: rgba(24,24,24,0.7);
    color: rgba(255,255,255,0.94);
    box-shadow: 0 10px 22px rgba(0,0,0,0.32);
}

/* INFO OVERLAY */
#info-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.60);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

#info-overlay.visible {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

/* INFO CONTENT */
#info-content {
    width: 80%;
    max-width: 900px;
    color: #fff;
    text-align: center;
    max-height: 86vh;
    overflow-y: auto;
}

#info-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-height: 22px;
}

#info-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 10px 14px 0;
    text-align: justify;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}

#info-photo {
    max-width: 140px;
    border-radius: 10px;
    float: left;
    margin-right: 12px;
    margin-bottom: 8px;
}

#info-text {
    font-size: 1rem;
    line-height: 1.7;
}

#info-social {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.95rem;
}

.social-link:hover {
    opacity: 1;
}

#contact-accordion {
    margin-top: 28px;
    text-align: left;
    width: 26%;
    min-width: 170px;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
}

#contact-accordion .contact-accordion-toggle {
    height: 40px;
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#contact-accordion .contact-accordion-toggle:hover,
#contact-accordion .contact-accordion-toggle:focus-visible,
#contact-accordion.open .contact-accordion-toggle {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-1px);
}

#contact-accordion .contact-accordion-toggle:focus-visible {
    outline: none;
}

#contact-accordion-body {
    margin-top: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}

#contact-accordion.open #contact-accordion-body {
    max-height: 560px;
    opacity: 1;
}

#contact-form {
    margin-top: 0;
    display: grid;
    gap: 12px;
    text-align: left;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(14,14,14,0.45);
    color: #fff;
    font: inherit;
    padding: 12px 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.55);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form button:focus,
#contact-accordion .contact-accordion-toggle:focus {
    outline: none;
    border-color: rgba(255,255,255,0.78);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,0.10);
}

.contact-form button:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-1px);
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.contact-honeypot {
    display: none;
}

.contact-status {
    min-height: 1.2em;
    margin: 2px 2px 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.78);
}

.contact-status.is-success {
    color: #b9f6ca;
}

.contact-status.is-error {
    color: #ffb3b3;
}

#gallery-main-text-scroll::-webkit-scrollbar,
#gallery-caption-detail-scroll::-webkit-scrollbar,
#info-body::-webkit-scrollbar,
#info-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#gallery-main-text-scroll::-webkit-scrollbar-track,
#gallery-caption-detail-scroll::-webkit-scrollbar-track,
#info-body::-webkit-scrollbar-track,
#info-content::-webkit-scrollbar-track {
    background: transparent;
}

#gallery-main-text-scroll::-webkit-scrollbar-thumb,
#gallery-caption-detail-scroll::-webkit-scrollbar-thumb,
#info-body::-webkit-scrollbar-thumb,
#info-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.34);
    border-radius: 8px;
}

@media (max-width: 980px) {
    #contact-accordion {
        width: 34%;
        max-width: 260px;
    }
}

@media (max-width: 760px) {
    #contact-accordion {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    #gallery-main-text {
        width: calc(100vw - 28px);
    }

    #gallery-main-text-scroll {
        padding: 8px 10px;
    }
}
