/* ============================================================
 * EncryptingOurLove — stylesheet
 *
 * Dark green base, warm gold accents, three-font hierarchy:
 *   Cinzel             → brand, H1, section titles
 *   Cormorant Garamond → tagline, italic accents, blockquotes
 *   Lato               → body, nav, UI
 * ============================================================ */

:root {
    /* ----- Palette ----- */
    --color-bg:          #0a1f15;
    --color-surface:     #143d29;
    --color-surface-2:   #1a4d33;
    --color-surface-3:   #205b3e;
    --color-text:        #f5f1e8;
    --color-text-muted:  rgba(245, 241, 232, 0.72);
    --color-text-dim:    rgba(245, 241, 232, 0.5);
    --color-gold:        #d4a84b;
    --color-gold-bright: #e5bc5f;
    --color-gold-dim:    rgba(212, 168, 75, 0.4);
    --color-shadow:      rgba(0, 0, 0, 0.5);

    /* ----- Typography ----- */
    --font-display: "Cinzel", Georgia, serif;
    --font-accent:  "Cormorant Garamond", Georgia, serif;
    --font-body:    "Lato", system-ui, -apple-system, sans-serif;

    /* ----- Layout ----- */
    --container:        min(1200px, 92vw);
    --header-height:    88px;
    --section-padding:  5rem 0;
}

/* ============================================================
 * Base
 * ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-gold-bright); }
::selection { background: var(--color-gold); color: var(--color-bg); }

.container { width: var(--container); margin: 0 auto; }

/* ============================================================
 * Typography helpers
 * ============================================================ */
.section-title,
.page-title,
h1, h2 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: var(--color-text);
}
h1, .page-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.5rem; }
h2, .section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 2rem; }
h3 { font-family: var(--font-accent); font-weight: 500; font-size: 1.4rem; margin: 0 0 .75rem; }

.section-title { text-align: center; position: relative; padding-bottom: 1rem; }
.section-title::after {
    content: ''; display: block;
    width: 60px; height: 1px;
    background: var(--color-gold);
    margin: 1rem auto 0;
}

/* Prose blocks (markdown output) */
.prose { font-size: 1.05rem; }
.prose p { margin: 0 0 1.25rem; }
.prose blockquote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    border-left: 2px solid var(--color-gold);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
}
.prose hr {
    border: 0;
    border-top: 1px solid var(--color-gold-dim);
    margin: 2.5rem auto;
    width: 60%;
}
.prose code {
    background: var(--color-surface);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}
.prose ul, .prose ol { padding-left: 1.5rem; }

/* ============================================================
 * Header
 * ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 1rem;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}
/* Off-home pages: header solid from the start */
body:not(.page-home) .site-header,
.site-header.scrolled {
    background: rgba(10, 31, 21, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--color-gold-dim);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-gold);
}
.brand-tagline {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.top-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0; padding: 0;
}
.top-nav a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text);
    position: relative;
    padding-bottom: 4px;
}
.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px;
    background: var(--color-gold);
    transition: width .25s ease, left .25s ease;
}
.top-nav a:hover { color: var(--color-gold); }
.top-nav a:hover::after { width: 100%; left: 0; }

@media (max-width: 850px) {
    .top-nav { display: none; }
}

.hamburger-toggle {
    background: none; border: 0; cursor: pointer;
    width: 36px; height: 36px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 8px 4px;
}
.hamburger-toggle span {
    display: block; height: 2px;
    background: var(--color-gold);
    border-radius: 1px;
    transition: background .2s;
}
.hamburger-toggle:hover span { background: var(--color-gold-bright); }

/* ============================================================
 * Hamburger menu (fly-out)
 * ============================================================ */
.hamburger {
    position: fixed; top: 0; right: 0;
    width: min(360px, 85vw); height: 100vh;
    background: var(--color-bg);
    border-left: 1px solid var(--color-gold-dim);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform .35s ease;
    padding: 4.5rem 2rem 2rem;
    overflow-y: auto;
    z-index: 200;
}
.hamburger.open { transform: translateX(0); }
.hamburger-close {
    position: absolute; top: 1rem; right: 1.25rem;
    background: none; border: 0;
    font-family: var(--font-body);
    font-size: 2rem; line-height: 1;
    color: var(--color-gold);
    cursor: pointer; padding: .5rem;
    transition: color .2s;
}
.hamburger-close:hover { color: var(--color-gold-bright); }
.hamburger-list { list-style: none; margin: 0; padding: 0; }
.hamburger-group { margin-bottom: 1.75rem; }
.hamburger-parent {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-gold-dim);
}
.hamburger-parent:hover { color: var(--color-gold-bright); }
.hamburger-children { list-style: none; padding-left: 0.5rem; margin: 0.5rem 0 0; }
.hamburger-children a {
    display: block;
    padding: 0.35rem 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-family: var(--font-accent);
}
.hamburger-children a:hover { color: var(--color-text); }

/* Subtle backdrop dim when hamburger is open */
body.hamburger-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
 * Main / page offsets
 * ============================================================ */
.site-main { min-height: 60vh; }
body:not(.page-home) .site-main { padding-top: var(--header-height); }

/* ============================================================
 * Hero (home page)
 * ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    background-color: var(--color-surface);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* CSS variables driven by JS for scale+fade */
    transform: scale(var(--hero-scale, 1));
    opacity: var(--hero-opacity, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}
/* Dark gradient at the top so the header text stays readable
   over a bright hero image. */
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(10,31,21,0.75) 0%,
            rgba(10,31,21,0.25) 25%,
            rgba(10,31,21,0)    50%,
            rgba(10,31,21,0.4)  100%);
    pointer-events: none;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    animation: bob 2.5s ease-in-out infinite;
}
.hero-scroll-label {
    display: block;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.05em;
}
.hero-scroll-arrow {
    display: block;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-top: 0.25rem;
}
@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 10px); }
}

/* ============================================================
 * Home sections
 * ============================================================ */
.home-intro {
    padding: var(--section-padding);
    background: var(--color-surface);
    border-top: 1px solid var(--color-gold-dim);
    border-bottom: 1px solid var(--color-gold-dim);
    text-align: center;
}
.home-intro .prose {
    font-family: var(--font-accent);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}
.home-section {
    padding: var(--section-padding);
}
.home-videos { background: var(--color-bg); }
.home-galleries { background: var(--color-surface); }

/* ============================================================
 * Carousel
 * ============================================================ */
.carousel-wrap {
    position: relative;
    margin: 0 -1rem;
}
.carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0 1.5rem;
}
.carousel-item {
    flex: 0 0 300px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-gold-dim);
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.carousel-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.carousel-item-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.06em;
    padding: 1rem;
    color: var(--color-gold);
}

.video-thumb-wrap, .gallery-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.gallery-thumb-wrap { aspect-ratio: 4 / 3; }
.carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.carousel-item:hover img { transform: scale(1.05); }

.video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(10, 31, 21, 0.85);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    padding-left: 4px;
    transition: background .2s, transform .2s;
}
.carousel-item:hover .video-play {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: calc(50% - 1rem);
    transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(10, 31, 21, 0.85);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: background .2s, color .2s, opacity .2s, transform .2s;
    opacity: 0.75;
}
.carousel-arrow:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    opacity: 1;
}
.carousel-arrow:disabled,
.carousel-arrow[data-disabled="true"] {
    opacity: 0.2;
    cursor: default;
}
.carousel-arrow:disabled:hover,
.carousel-arrow[data-disabled="true"]:hover {
    background: rgba(10, 31, 21, 0.85);
    color: var(--color-gold);
}
.carousel-arrow-prev { left: -8px; }
.carousel-arrow-next { right: -8px; }
@media (max-width: 600px) {
    .carousel-arrow { display: none; }
}

/* ============================================================
 * Galleries listing + single gallery page
 * ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-thumb {
    background: none; border: 1px solid var(--color-gold-dim);
    padding: 0; cursor: pointer; overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 1;
    position: relative;
    transition: border-color .2s, transform .2s;
}
.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-thumb:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
}
.gallery-thumb:hover img { transform: scale(1.06); }

/* Video gallery items get a play badge overlay so visitors know
   it's a clip, not a still. */
.gallery-thumb[data-type="video"]::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(10, 31, 21, 0.78);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.95rem;
    padding-left: 3px;     /* nudges the glyph optical-centre right */
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transition: background .2s, color .2s, transform .2s;
}
.gallery-thumb[data-type="video"]:hover::after {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translate(-50%, -50%) scale(1.08);
}

.galleries-index .gallery-card {
    display: block;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-gold-dim);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .25s, border-color .25s;
}
.galleries-index .gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
}
.galleries-index .gallery-card h2 {
    font-size: 1.25rem;
    margin: 1rem 1rem 0.5rem;
    color: var(--color-gold);
}
.galleries-index .gallery-card-desc {
    padding: 0 1rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.galleries-index .gallery-card img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
}

.gallery-desc {
    max-width: 720px;
    margin: 0 0 2rem;
    color: var(--color-text-muted);
}

/* ============================================================
 * Generic content pages
 * ============================================================ */
.content-page,
.gallery-page,
.galleries-index,
.videos-page,
.playlists-page,
.vendors-page,
.error-page {
    padding: 3rem 0 5rem;
}
.vendors-intro {
    color: var(--color-text-muted);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    max-width: 720px;
}

/* ============================================================
 * Videos page
 * ============================================================ */
.video-entry {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-gold-dim);
}
.video-entry:last-child { border-bottom: 0; }
.video-entry h2 {
    margin-bottom: 1rem;
    color: var(--color-gold);
}
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--color-gold-dim);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.video-embed iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}

/* ============================================================
 * Playlists
 * ============================================================ */
.playlist-entry {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-gold-dim);
}
.playlist-entry:last-child { border-bottom: 0; }
.playlist-entry h2 { color: var(--color-gold); }
.playlist-embed {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-gold-dim);
}
.playlist-embed iframe {
    width: 100%; height: 380px; border: 0; display: block;
}

/* ============================================================
 * Vendors
 * ============================================================ */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.vendor-card {
    background: var(--color-surface);
    border: 1px solid var(--color-gold-dim);
    border-radius: 4px;
    padding: 1.75rem;
    transition: border-color .25s;
}
.vendor-card:hover { border-color: var(--color-gold); }
.vendor-name {
    margin: 0;
    color: var(--color-gold);
    font-size: 1.5rem;
}
.vendor-role {
    color: var(--color-text-muted);
    font-family: var(--font-accent);
    font-style: italic;
    margin: 0.25rem 0 1rem;
}
.vendor-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}
.vendor-images img {
    aspect-ratio: 1; object-fit: cover; border-radius: 3px;
}
.vendor-desc { color: var(--color-text-muted); }
.vendor-contact {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gold-dim);
    font-size: 0.95rem;
}
.vendor-contact dt {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-top: 0.5rem;
}
.vendor-contact dd { margin: 0 0 0.5rem; color: var(--color-text); }

/* ============================================================
 * Footer
 * ============================================================ */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-dim);
    border-top: 1px solid var(--color-gold-dim);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 0.95rem;
}

/* ============================================================
 * Lightbox (shared video + gallery)
 * ============================================================ */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn .25s ease;
}
.lightbox[aria-hidden="false"] { display: flex; }

.lightbox-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    background: rgba(10, 31, 21, 0.7);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1.75rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: background .2s, color .2s;
}
.lightbox-close:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* Gallery-specific toolbar (close + download) */
.lightbox-toolbar {
    position: absolute;
    top: 1rem; right: 1rem;
    display: flex; gap: 0.75rem;
    z-index: 10;
}
.lightbox-toolbar .lightbox-close { position: static; }
.lightbox-download {
    width: 44px; height: 44px;
    background: rgba(10, 31, 21, 0.7);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.lightbox-download:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px;
    background: rgba(10, 31, 21, 0.6);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 2rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: background .2s, color .2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-figure {
    margin: 0;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 80vh;
}
.lightbox-item {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--color-gold-dim);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    display: block;
}
.lightbox-video {
    background: #000;   /* fills letterbox area before the frame loads */
}
.lightbox-counter {
    color: var(--color-text-muted);
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1rem;
}

/* Video lightbox uses a 16:9 frame, not a figure */
.lightbox-video-frame {
    width: min(1100px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--color-gold-dim);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-video-frame iframe {
    width: 100%; height: 100%; border: 0;
}

@media (max-width: 700px) {
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.5rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* No-scroll while a lightbox or hamburger is open */
body.lightbox-open,
body.hamburger-open { overflow: hidden; }

/* ============================================================
 * Error page
 * ============================================================ */
.error-page {
    text-align: center;
    padding: 6rem 0;
}
.error-page h1 { color: var(--color-gold); }

/* ============================================================
 * Social rail (right-edge vertical strip)
 *
 * Always visible across all pages, vertically centered on the right
 * edge. Sits below the hamburger fly-out (z 200) and below the
 * lightboxes (z 500), but above page content.
 * Auto-hides when any lightbox or the hamburger is open.
 * ============================================================ */
.social-rail {
    position: fixed;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 40;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.social-rail ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.social-rail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--color-gold);
    background: rgba(10, 31, 21, 0.65);
    border: 1px solid var(--color-gold-dim);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.social-rail-link svg {
    width: 22px; height: 22px;
    display: block;
}
.social-rail-link:hover {
    color: var(--color-bg);
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.08);
}

/* Hide whenever a lightbox is open OR the hamburger fly-out is open.
   Using opacity + visibility so the transition stays smooth and the
   element doesn't intercept clicks while hidden. */
body.lightbox-open .social-rail,
body.hamburger-open .social-rail {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    pointer-events: none;
}

/* On narrow screens the rail moves down a touch and sits closer to
   the edge so it doesn't crowd content. */
@media (max-width: 700px) {
    .social-rail { right: 0.5rem; }
    .social-rail-link { width: 38px; height: 38px; }
    .social-rail-link svg { width: 18px; height: 18px; }
}
