/* ================================================
COLOR CONTROL PANEL
================================================ */
:root {
    --color-dark: #141414;
    --color-ink: #0c0c0d;
    --color-panel: #1d1c1b;
    --color-panel-strong: #252321;
    --color-tan: #E0BE9A;
    --color-tan-bright: #f1d6b7;
    --color-line: rgba(224, 190, 154, 0.2);
    --color-light-text: #f5f5f5;
    --shadow-warm: 0 18px 42px rgba(0, 0, 0, 0.5);
}

/* ================================================
GENERAL STYLES
================================================ */
html {
    scroll-behavior: smooth;
}
body {
    background: var(--color-ink);
    color: var(--color-light-text);
    font-family: 'Inter', sans-serif;
}
main {
    background: var(--color-ink);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0;
}
.bg-brand-dark { background-color: var(--color-dark); }
.text-brand-dark { color: var(--color-dark); }
.bg-brand-tan { background-color: var(--color-tan); }
.text-brand-tan { color: var(--color-tan); }
.border-brand-tan { border-color: var(--color-tan); }

.site-header {
    background-color: rgba(12, 12, 13, 0.95) !important;
    border-bottom: 1px solid rgba(224, 190, 154, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

main > section,
main > div {
    position: relative;
}

body[id$="-page"] main > section + section {
    border-top: 1px solid rgba(224, 190, 154, 0.09);
}

body[id$="-page"] main > section.bg-brand-dark {
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.018) 0%, transparent 30%, rgba(224, 190, 154, 0.018) 52%, transparent 76%),
        linear-gradient(180deg, #151516 0%, #101011 100%);
}

body[id$="-page"] main > section.bg-\[\#222\] {
    background:
        linear-gradient(112deg, #19191a 0%, #211f1e 46%, #1b1a1a 68%, #161617 100%);
    box-shadow:
        inset 0 18px 30px rgba(0, 0, 0, 0.16),
        inset 0 -18px 30px rgba(0, 0, 0, 0.18);
}

.stage-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.06) 42%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(112deg, #121213 0%, #201e1d 42%, #191819 68%, #101011 100%);
    border-bottom: 2px solid rgba(224, 190, 154, 0.24);
    box-shadow:
        inset 0 28px 42px rgba(0, 0, 0, 0.44),
        inset 0 -18px 32px rgba(0, 0, 0, 0.22);
}

.stage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 34%, rgba(0, 0, 0, 0.12)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.34));
    z-index: 1;
    pointer-events: none;
}
.stage-hero:has(> img)::before {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 38%, rgba(0, 0, 0, 0.1)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.18));
}
.stage-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12;
    height: 1px;
    background: rgba(224, 190, 154, 0.28);
    pointer-events: none;
}
.stage-hero > img {
    z-index: 0;
}
.stage-hero > .container {
    position: relative;
    z-index: 20;
}
.stage-hero h1,
.stage-hero p {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.home-hero-scrim {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.2)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4));
}

.stage-panel {
    background: rgba(29, 28, 27, 0.98);
    border: 1px solid rgba(224, 190, 154, 0.15);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-warm);
}

.stage-band {
    background:
        linear-gradient(112deg, #19191a 0%, #24211f 48%, #1c1b1a 70%, #171718 100%) !important;
    border-top: 1px solid rgba(224, 190, 154, 0.2) !important;
    border-bottom: 1px solid rgba(224, 190, 154, 0.16);
    box-shadow:
        inset 0 16px 24px rgba(0, 0, 0, 0.14),
        inset 0 -16px 24px rgba(0, 0, 0, 0.16);
}

a.bg-brand-tan,
button.bg-brand-tan {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

a.bg-brand-tan:hover,
button.bg-brand-tan:hover {
    background-color: var(--color-tan-bright);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-tan);
    box-shadow: 0 0 0 3px rgba(224, 190, 154, 0.18);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
NAVIGATION
================================================ */
.site-nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1536px;
    min-height: 76px;
    gap: clamp(1rem, 2vw, 2rem);
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
}
.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 0.25rem;
}
.site-logo {
    width: auto;
    height: 3.5rem;
    max-width: 9rem;
    object-fit: contain;
}
.site-nav-links {
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(0.85rem, 1.35vw, 1.5rem);
}
.nav-link {
    position: relative;
    padding: 0.65rem 0;
    color: #e2e2e2;
    font-size: clamp(0.8rem, 0.85vw, 0.95rem);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.2rem;
    left: 50%;
    background-color: var(--color-tan);
    transition: width 0.2s ease-out;
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-tan);
}
.site-nav-actions {
    align-items: center;
    flex: 0 0 auto;
    gap: 0.65rem;
}
.site-portal-link,
.site-trial-link,
.site-mobile-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 0.85rem;
    border-radius: 0.3rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.site-portal-link {
    color: #e6e6e6;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(224, 190, 154, 0.3);
}
.site-portal-link:hover {
    color: var(--color-tan-bright);
    background: rgba(224, 190, 154, 0.08);
    border-color: rgba(224, 190, 154, 0.62);
}
.site-trial-link {
    color: #171718;
    background: var(--color-tan);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}
.site-trial-link:hover {
    color: #0d0d0e;
    background: var(--color-tan-bright);
    transform: translateY(-1px);
}
.site-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 0.55rem;
    margin-left: auto;
    padding: 0.55rem 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 190, 154, 0.34);
    border-radius: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}
.site-menu-button:hover,
.site-menu-button.is-open {
    color: var(--color-tan-bright);
    background: rgba(224, 190, 154, 0.09);
    border-color: rgba(224, 190, 154, 0.65);
}
.site-mobile-menu {
    max-height: calc(100vh - 76px);
    padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
    overflow-y: auto;
    background: rgba(15, 15, 16, 0.99);
    border-top: 1px solid rgba(224, 190, 154, 0.16);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}
.site-mobile-menu.hidden {
    display: none;
}
.site-mobile-links {
    display: grid;
    max-width: 960px;
    gap: 0.45rem;
    margin: 0 auto;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    color: #e7e7e7;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 0.3rem;
    font-size: 0.92rem;
    font-weight: 600;
}
.mobile-nav-link:hover {
    color: var(--color-tan-bright);
    background: rgba(224, 190, 154, 0.07);
    border-color: rgba(224, 190, 154, 0.25);
}
.mobile-nav-link.active {
    background-color: rgba(224, 190, 154, 0.1);
    color: var(--color-tan);
    border-color: rgba(224, 190, 154, 0.38);
}
.site-mobile-actions {
    display: grid;
    max-width: 960px;
    gap: 0.65rem;
    margin: 0.9rem auto 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(224, 190, 154, 0.12);
}
.site-mobile-portal {
    color: #efefef;
    background: transparent;
    border: 1px solid rgba(224, 190, 154, 0.3);
}
.site-mobile-portal:hover {
    color: var(--color-tan-bright);
    border-color: rgba(224, 190, 154, 0.6);
}
.site-brand:focus-visible,
.nav-link:focus-visible,
.site-portal-link:focus-visible,
.site-trial-link:focus-visible,
.site-menu-button:focus-visible,
.mobile-nav-link:focus-visible,
.site-mobile-portal:focus-visible {
    outline: 3px solid rgba(224, 190, 154, 0.42);
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .site-mobile-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .site-mobile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) and (max-width: 1279px) {
    .site-mobile-links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .site-menu-button,
    .site-mobile-menu {
        display: none;
    }
}


/* ================================================
FACULTY CARDS (Team Page)
================================================ */
.faculty-card {
    background: rgba(30, 29, 28, 0.98);
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid rgba(224, 190, 154, 0.13);
    box-shadow: 0 12px 28px rgba(0,0,0,0.26);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.faculty-card:hover {
    transform: translateY(-8px);
    border-color: rgba(224, 190, 154, 0.55);
    box-shadow: var(--shadow-warm);
}
.faculty-card-img-container {
    width: 100%;
    overflow: hidden;
    background-color: #111;
}
.faculty-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}
.faculty-card:hover .faculty-card-img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.025);
}
.faculty-card-info {
    padding: 1rem;
    text-align: center;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
}

.faculty-card-level {
    margin: 0.3rem 0 0.15rem;
    color: #d8c1aa;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.faculty-modal-level {
    margin: 0.4rem 0 0.3rem;
    color: #f0d2b1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}


/* ================================================
EVENT CARDS (Events Page)
================================================ */
.event-card {
    background: rgba(29, 28, 27, 0.98);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    border: 1px solid rgba(224, 190, 154, 0.16);
    display: flex;
    gap: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.event-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--shadow-warm);
    border-color: var(--color-tan);
}


/* ================================================
MODALS (Team & Events Page)
================================================ */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid rgba(224, 190, 154, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-media-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #111;
    border-radius: 0.375rem;
    overflow: hidden;
}
.modal-media-container iframe {
    width: 100%;
    height: 100%;
}
#modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#modal-bio {
    white-space: pre-line;
}


/* ================================================
LESSONS PAGE STYLES
================================================ */
.switch-label {
    border: 1px solid rgba(224, 190, 154, 0.2);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.02);
}
.switch-label:has(input:checked) {
    background-color: var(--color-tan);
    color: var(--color-dark);
    font-weight: bold;
    border-color: var(--color-tan);
    box-shadow: 0 8px 18px rgba(224, 190, 154, 0.2);
}

/* ================================================
GALLERY STYLES
================================================ */
.gallery-filter {
    padding: 0.625rem 1.5rem;
    background-color: transparent;
    color: var(--color-light-text);
    border: 1px solid #555;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-filter:hover {
    background-color: rgba(224, 190, 154, 0.1);
    border-color: var(--color-tan);
    transform: translateY(-2px);
}
.gallery-filter.active {
    background-color: var(--color-tan);
    color: var(--color-dark);
    border-color: var(--color-tan);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.6s ease-in;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}
.gallery-item.hidden {
    display: none;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.home-section-heading {
    max-width: 46rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.home-section-heading > p {
    margin: 0 0 0.45rem;
    color: var(--color-tan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-section-heading > h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
}

.home-section-heading > span {
    display: block;
    margin-top: 0.75rem;
    color: #c9c6c3;
    font-size: 1rem;
    line-height: 1.65;
}

.home-video-grid {
    display: grid;
    max-width: 72rem;
    gap: 1.5rem;
    margin: 0 auto;
}

.home-video-card {
    overflow: hidden;
    background: rgba(29, 28, 27, 0.98);
    border: 1px solid rgba(224, 190, 154, 0.18);
    border-radius: 0.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.home-video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #080808;
}

.home-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-video-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.home-video-copy h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.home-video-copy a {
    flex: 0 0 auto;
    color: var(--color-tan);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-video-copy a:hover,
.home-video-copy a:focus-visible {
    color: var(--color-tan-bright);
    text-decoration: underline;
}

.home-gallery-grid {
    display: grid;
    max-width: 72rem;
    align-items: stretch;
    gap: 1.35rem;
    margin: 0 auto;
}

.home-gallery-card .gallery-album-copy {
    padding: 0.9rem 0.95rem 0.95rem;
}

.home-gallery-card .gallery-album-title {
    font-size: 1.08rem;
}

.home-gallery-card .gallery-album-description {
    max-height: 2.75em;
    font-size: 0.83rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.home-gallery-card .gallery-story-link {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
}

.home-section-action {
    margin-top: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .home-video-grid,
    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .home-video-copy {
        align-items: flex-start;
        flex-direction: column;
    }
}

.gallery-index-section {
    min-height: 28rem;
    padding: 3.5rem 0 4.5rem;
}

.gallery-album-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.gallery-album-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    background: rgba(29, 28, 27, 0.98);
    border: 1px solid rgba(224, 190, 154, 0.16);
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-album-card:hover,
.gallery-album-card:focus-visible {
    color: inherit;
    border-color: rgba(224, 190, 154, 0.58);
    box-shadow: var(--shadow-warm);
    transform: translateY(-4px);
}

.gallery-album-card:focus-visible {
    outline: 3px solid var(--color-tan);
    outline-offset: 3px;
}

.gallery-album-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #111;
}

.gallery-album-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.25s ease;
}

.gallery-album-card:hover .gallery-album-cover img,
.gallery-album-card:focus-visible .gallery-album-cover img {
    filter: saturate(1.08) contrast(1.04);
}

.gallery-album-sheen {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 34%),
        linear-gradient(0deg, rgba(0,0,0,0.56), transparent 48%);
    pointer-events: none;
}

.gallery-cover-action {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.38rem 0.65rem;
    color: #171718;
    background: rgba(224, 190, 154, 0.96);
    border-radius: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-album-card:hover .gallery-cover-action,
.gallery-album-card:focus-visible .gallery-cover-action {
    opacity: 1;
    transform: translateY(0);
}

.gallery-album-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1.05rem 1.05rem;
}

.gallery-album-date {
    margin: 0 0 0.3rem;
    color: #aaa4a0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gallery-album-title {
    margin: 0;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
}

.gallery-album-description {
    display: -webkit-box;
    max-height: 4.35em;
    margin: 0.65rem 0 0;
    overflow: hidden;
    color: #d2ceca;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.gallery-story-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    color: var(--color-tan);
    border-top: 1px solid rgba(224, 190, 154, 0.13);
    font-size: 0.8rem;
    font-weight: 800;
}

.gallery-story-link > span:last-child {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.gallery-album-card:hover .gallery-story-link > span:last-child,
.gallery-album-card:focus-visible .gallery-story-link > span:last-child {
    transform: translateX(3px);
}

.gallery-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.2rem;
    padding: 0.65rem 0.9rem;
    color: #171718;
    background: var(--color-tan);
    border-radius: 0.25rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.gallery-view-link:hover {
    background: var(--color-tan-bright);
    transform: translateY(-1px);
}

.gallery-story-page {
    min-height: 70vh;
    padding: clamp(3rem, 7vw, 6rem) 1.5rem;
    color: #f5f3f1;
    background:
        radial-gradient(circle at 82% 8%, rgba(224, 190, 154, 0.08), transparent 29rem),
        var(--color-dark);
}

.gallery-story-article {
    max-width: 68rem;
    margin: 0 auto;
}

.gallery-story-back {
    display: inline-flex;
    color: var(--color-tan);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.gallery-story-back:hover,
.gallery-story-back:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.gallery-story-header {
    max-width: 52rem;
    margin: 1.6rem 0 2rem;
}

.gallery-story-date {
    margin: 0 0 0.65rem;
    color: var(--color-tan);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-story-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 6vw, 4.5rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.03;
}

.gallery-story-summary {
    margin: 1.15rem 0 0;
    color: #d9d4cf;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.55;
}

.gallery-story-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 2rem 0 2.6rem;
}

.gallery-story-image-grid-1 {
    grid-template-columns: minmax(0, 1fr);
}

.gallery-story-image-grid-1 .gallery-story-image {
    aspect-ratio: 16 / 9;
}

.gallery-story-image-grid-3 .gallery-story-image:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.gallery-story-image {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(224, 190, 154, 0.16);
}

.gallery-story-image:hover {
    transform: translateY(-3px);
}

.gallery-story-body {
    max-width: 49rem;
    color: #dedad6;
    font-size: clamp(1.02rem, 1.8vw, 1.14rem);
    line-height: 1.85;
}

.gallery-story-album-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.75rem;
    padding: 1.3rem 1.4rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 190, 154, 0.22);
    border-radius: 0.5rem;
}

.gallery-story-album-cta h2 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.gallery-story-album-cta p {
    margin: 0.25rem 0 0;
    color: #aaa4a0;
    font-size: 0.88rem;
}

.gallery-story-album-cta .gallery-view-link {
    flex: none;
    margin-top: 0;
}

.gallery-story-back-bottom {
    margin-top: 2.75rem;
}

@media (max-width: 640px) {
    .gallery-index-section {
        padding: 2.5rem 0 3.5rem;
    }

    .gallery-story-image-grid {
        grid-template-columns: 1fr;
    }

    .gallery-story-image-grid-3 .gallery-story-image:first-child {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-story-album-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 640px) {
    .gallery-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .gallery-album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .gallery-album-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

