/* BSS Gurugram Gallery: styles scoped to the shortcode, independent of the existing theme. */
.bss-gallery{--bss-ink:#26211c;--bss-accent:#9b3b26;--bss-gold:#a6652e;box-sizing:border-box;position:relative;left:50%;transform:translateX(-50%);width:min(1240px,calc(100vw - 36px));max-width:none!important;margin:38px 0 72px;color:var(--bss-ink);font-family:inherit}
.bss-gallery *, .bss-gallery *::before,.bss-gallery *::after{box-sizing:border-box}
.bss-gallery-header{text-align:center;padding:24px 12px 20px}
.bss-gallery-eyebrow{display:block;letter-spacing:.18em;font-size:11px;font-weight:700;color:var(--bss-gold);margin-bottom:12px}
.bss-gallery-header h1{font-family:Georgia,serif;font-size:clamp(32px,4vw,55px);font-weight:500;color:#2b211a;line-height:1.15;margin:0 0 14px}
.bss-gallery-header p{font-size:clamp(14px,1.4vw,16px);color:#6c625a;margin:0}
.bss-gallery-filters{display:flex;align-items:center;gap:9px;overflow-x:auto;max-width:100%;padding:18px 2px 20px;scrollbar-width:thin;border-bottom:1px solid #e8dfd5;white-space:nowrap;-webkit-overflow-scrolling:touch}
.bss-gallery-filter{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto!important;padding:10px 16px;border:1px solid #dacdc0;border-radius:30px!important;color:#66442d!important;background:#fff!important;text-decoration:none!important;font-size:14px;font-weight:600;line-height:1.2;box-shadow:none!important;transition:background .2s,color .2s,border-color .2s}
.bss-gallery-filter:hover,.bss-gallery-filter:focus-visible{background:#f5ede4!important;border-color:#a6652e!important}
.bss-gallery-filter.is-active{background:#9b3b26!important;border-color:#9b3b26!important;color:#fff!important}
.bss-gallery-star{color:#c88428}.bss-gallery-filter.is-active .bss-gallery-star{color:#ffe9aa}
.bss-gallery-album-intro:empty{display:none}
.bss-gallery-album-intro{padding:18px 2px 10px}
.bss-gallery-album-intro h2{font-family:Georgia,serif;font-size:24px;font-weight:500;margin:0 0 7px;color:#36281e}
.bss-gallery-album-intro p{font-size:14px;color:#75685e;margin:0;max-width:840px}
.bss-gallery-grid{column-count:3;column-gap:16px;min-height:50px;padding:18px 0 6px}
.bss-gallery-photo{display:block!important;width:100%;position:relative;overflow:hidden;background:#eee6dd;border-radius:9px;margin:0 0 16px;break-inside:avoid;page-break-inside:avoid;line-height:0!important;box-shadow:0 2px 10px rgba(55,34,15,.075);text-decoration:none!important}
.bss-gallery-photo .bss-gallery-img{display:block;width:100%;height:auto;max-width:100%;border:0;border-radius:0;transition:transform .34s ease}
.bss-gallery-photo:hover .bss-gallery-img{transform:scale(1.028)}
.bss-gallery-photo:focus-visible{outline:3px solid #9b3b26;outline-offset:3px}
.bss-gallery-zoom{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(20,15,12,.72);color:white;font-size:24px;line-height:1;opacity:0;transition:opacity .2s}
.bss-gallery-photo:hover .bss-gallery-zoom,.bss-gallery-photo:focus-visible .bss-gallery-zoom{opacity:1}
.bss-gallery-more-wrap{text-align:center;padding:15px}
.bss-gallery-more{border:1px solid var(--bss-accent)!important;background:transparent!important;color:var(--bss-accent)!important;border-radius:30px!important;padding:13px 28px!important;font-size:15px!important;line-height:1.2!important;cursor:pointer;font-weight:600}
.bss-gallery-more:hover{background:#faf0e9!important}
.bss-gallery-more[hidden],.bss-gallery-empty[hidden],.bss-gallery-viewer[hidden]{display:none!important}
.bss-gallery-empty{padding:45px 10px;color:#777;text-align:center}
.bss-gallery-loading .bss-gallery-grid{opacity:.45}
body.bss-gallery-viewer-open{overflow:hidden!important}
.bss-gallery-viewer{position:fixed!important;z-index:2147483000!important;inset:0!important;background:#0b0a0a!important;color:white!important;display:flex!important;align-items:center;justify-content:center;width:100vw;height:100dvh;padding:0!important;margin:0!important;isolation:isolate;font-family:Arial,Helvetica,sans-serif}
.bss-gallery-viewer button{cursor:pointer;background:rgba(30,30,30,.70)!important;border:1px solid rgba(255,255,255,.25)!important;color:#fff!important;box-shadow:none!important;font-family:inherit;font-weight:500;line-height:1;border-radius:6px;padding:12px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.bss-gallery-viewer button:hover{background:rgba(100,100,100,.60)!important}
.bss-gallery-viewer-top{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(15px,env(safe-area-inset-right)) 12px max(15px,env(safe-area-inset-left));background:linear-gradient(to bottom,rgba(0,0,0,.75),transparent)}
.bss-gallery-counter{font-size:14px;color:#e5e5e5}
.bss-gallery-actions{display:flex;gap:9px}
.bss-gallery-viewer .bss-gallery-close{font-size:19px;min-width:44px;min-height:44px}
.bss-gallery-viewer-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}
.bss-gallery-viewer-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none}
.bss-gallery-viewer .bss-gallery-prev,.bss-gallery-viewer .bss-gallery-next{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:54px;padding:0!important;font-size:35px;border-radius:5px}
.bss-gallery-prev{left:12px}.bss-gallery-next{right:12px}
.bss-gallery-viewer-bottom{position:absolute;bottom:0;left:0;right:0;z-index:4;text-align:center;background:linear-gradient(to top,rgba(0,0,0,.8),transparent);padding:32px 18px 9px;pointer-events:none}
.bss-gallery-viewer-caption{margin:0 0 5px!important;font-size:14px;color:#fff!important;line-height:1.35}
.bss-gallery-hint{margin:0!important;font-size:11px;color:#bbb!important}
.bss-gallery-viewer.is-cinema .bss-gallery-viewer-stage{height:100%}
.bss-gallery-viewer.is-cinema .bss-gallery-viewer-image{max-height:100%;max-width:100%}
/* Orientation-lock fallback: rotate the entire viewer to make a landscape viewport even on portrait-locked browsers. */
.bss-gallery-viewer.is-landscape-fallback{inset:auto!important;top:0!important;left:0!important;width:100dvh!important;height:100vw!important;transform-origin:top left!important;transform:translateX(100vw) rotate(90deg)!important;transition:transform .25s ease}
@media(max-width:800px){.bss-gallery-grid{column-count:2;column-gap:10px}.bss-gallery-photo{margin-bottom:10px;border-radius:6px}.bss-gallery-header{padding-top:12px}.bss-gallery-zoom{opacity:1;width:26px;height:26px;font-size:19px;right:8px;bottom:8px}}
@media(max-width:450px){.bss-gallery{width:calc(100vw - 22px);margin-top:16px}.bss-gallery-filters{gap:7px;padding:14px 1px}.bss-gallery-filter{font-size:12px;padding:10px 13px}.bss-gallery-grid{column-gap:8px}.bss-gallery-photo{margin-bottom:8px}.bss-gallery-viewer .bss-gallery-prev,.bss-gallery-viewer .bss-gallery-next{width:30px;height:48px;font-size:29px;border-color:transparent!important;background:rgba(0,0,0,.22)!important}.bss-gallery-prev{left:1px}.bss-gallery-next{right:1px}.bss-gallery-viewer-top{padding:8px}.bss-gallery-viewer .bss-gallery-cinema{padding:10px!important}.bss-gallery-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){.bss-gallery-photo .bss-gallery-img,.bss-gallery-viewer{transition:none!important}}

/* v1.1: Google Photos-style, user-initiated slideshow controls. */
.bss-gallery-play-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 2px 1px}
.bss-gallery-play-all{display:inline-flex;align-items:center;gap:9px;background:#943c2a!important;color:#fff!important;border:1px solid #943c2a!important;border-radius:24px!important;padding:11px 19px!important;font-size:14px!important;font-weight:700!important;line-height:1.2!important;cursor:pointer}
.bss-gallery-play-all:hover{background:#70291c!important}
.bss-gallery-play-all:disabled{opacity:.45;cursor:default}
.bss-gallery-play-help{font-size:12px;color:#77675d}
.bss-gallery-viewer-stage{position:relative}
.bss-gallery-viewer-image{position:absolute!important;inset:0;margin:auto!important;opacity:0;transition:opacity .55s ease,transform 4.8s linear;transform:scale(1);pointer-events:none}
.bss-gallery-viewer-image.is-visible{opacity:1;z-index:1}
.bss-gallery-viewer.is-playing .bss-gallery-viewer-image.is-visible{transform:scale(1.025)}
.bss-gallery-viewer .bss-gallery-autoplay{min-width:78px;min-height:44px}
.bss-gallery-progress{position:absolute;left:0;bottom:0;height:3px;background:#e7a660;width:0;z-index:8;pointer-events:none}
.bss-gallery-viewer:not(.is-playing) .bss-gallery-progress{width:0!important;animation:none!important}
@keyframes bss-gallery-progress{from{width:0}to{width:100%}}
@media(max-width:450px){.bss-gallery-play-help{display:none}.bss-gallery-play-tools{padding-top:10px}.bss-gallery-play-all{font-size:13px!important;padding:10px 15px!important}.bss-gallery-viewer .bss-gallery-autoplay{min-width:64px;padding:10px!important}.bss-gallery-viewer .bss-gallery-autoplay span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.bss-gallery-viewer-image{transition:none!important;transform:none!important}.bss-gallery-viewer.is-playing .bss-gallery-viewer-image.is-visible{transform:none!important}}

/* ========================================================================
   BSS GURUGRAM — DEDICATED PHOTO GALLERY PAGE
   One gallery.css: gallery UI + theme page layout. No Astra custom CSS.
   Shared BSS navigation is loaded from the existing theme assets.
   ======================================================================== */
body.bss-gallery-template {
    background: #faf6ee;
    color: #34271f;
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}
body.bss-gallery-template #masthead {
    display: none !important; /* Replace Astra masthead with approved BSS nav. */
}
body.bss-gallery-template #content,
body.bss-gallery-template #content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
body.bss-gallery-template .site-nav.bss-shared-inner-nav {
    position: fixed !important;
    transform: none !important;
    inset: 0 0 auto !important;
    z-index: 800;
    background: rgba(223, 166, 94, .985);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}
body.bss-gallery-template .site-nav .brand-mark {
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}
body.bss-gallery-template .site-nav .brand-mark img { object-fit: contain; }
body.admin-bar.bss-gallery-template .site-nav.bss-shared-inner-nav { top: 32px !important; }
body.bss-gallery-template .bss-gallery-main {
    display: block;
    width: 100%;
    min-height: 42vh;
    padding: 105px 0 55px; /* 84px fixed nav + narrow intro margin */
    margin: 0;
    background: #faf6ee;
}
body.admin-bar.bss-gallery-template .bss-gallery-main { padding-top: 137px; }
body.bss-gallery-template .bss-gallery-page-shell {
    width: min(1240px, calc(100% - 52px));
    margin: 0 auto;
}
body.bss-gallery-template .bss-gallery-page-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 4px;
    margin: 0 0 15px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5d6c3;
}
body.bss-gallery-template .bss-gallery-page-eyebrow {
    margin: 0 !important;
    color: #976038;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: normal;
}
body.bss-gallery-template .bss-gallery-page-heading h1 {
    margin: 0 !important;
    color: #342820;
    font: 400 clamp(26px, 3vw, 37px)/1.1 Forum, Georgia, serif;
    letter-spacing: -.025em;
}
body.bss-gallery-template .bss-gallery-page-heading h1 span {
    color: #9d5833;
    font-style: italic;
}
body.bss-gallery-template .bss-gallery-notice {
    padding: 24px 0;
    color: #795d4d;
}
/* The plugin creates its own hidden H1 for fallback shortcode pages; never
   allow it to occupy space or appear as a second visible heading. */
.bss-gallery-screenreader {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
}
body.bss-gallery-template .bss-gallery {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: 14px;
    row-gap: 0;
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100% !important;
    margin: 0 0 28px;
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}
body.bss-gallery-template .bss-gallery-filters {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: center;
    padding: 0 0 10px;
    margin: 0;
    gap: 8px;
    border: 0;
}
body.bss-gallery-template .bss-gallery-filter {
    padding: 9px 14px;
    font-size: 12px;
}
body.bss-gallery-template .bss-gallery-play-tools {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-content: flex-end;
    padding: 0 0 10px;
    margin: 0;
}
body.bss-gallery-template .bss-gallery-play-all {
    padding: 10px 17px !important;
    font-size: 13px !important;
    white-space: nowrap;
}
body.bss-gallery-template .bss-gallery-play-help { display: none; }
body.bss-gallery-template .bss-gallery-album-intro {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0;
}
body.bss-gallery-template .bss-gallery-album-intro:empty { display: none; }
body.bss-gallery-template .bss-gallery-album-intro:not(:empty) {
    padding: 8px 0 10px;
}
body.bss-gallery-template .bss-gallery-album-intro h2 {
    margin-bottom: 4px;
    font: 400 24px/1.25 Forum, Georgia, serif;
}
body.bss-gallery-template .bss-gallery-grid {
    grid-column: 1 / -1;
    grid-row: 3;
    direction: ltr;
    column-count: 3;
    column-gap: 12px;
    padding: 5px 0 0;
}
body.bss-gallery-template .bss-gallery-photo {
    direction: ltr;
    margin: 0 0 12px;
    border-radius: 8px;
}
body.bss-gallery-template .bss-gallery-featured-photo { min-height: 0; }
body.bss-gallery-template .bss-gallery-featured-photo .bss-gallery-img {
    min-height: 0;
    max-height: none;
    height: auto;
    object-fit: initial;
}
/* Remove the plugin v1.2.x heading over a random first photograph. */
body.bss-gallery-template .bss-gallery-photo-title { display: none !important; }
body.bss-gallery-template .bss-gallery-empty,
body.bss-gallery-template .bss-gallery-more-wrap {
    grid-column: 1 / -1;
}
body.bss-gallery-template .bss-gallery-zoom { z-index: 2; }
body.bss-gallery-template .bss-gallery-viewer {
    /* Keep the plugin's existing viewer and cinema handling unchanged. */
    z-index: 2147483000 !important;
}
@media (max-width: 1024px) {
    body.bss-gallery-template .bss-gallery-play-help { display: none; }
    body.bss-gallery-template .bss-gallery-page-shell { width: calc(100% - 38px); }
}
@media (max-width: 767px) {
    body.bss-gallery-template .bss-gallery-main { padding-top: 86px; padding-bottom: 28px; }
    body.admin-bar.bss-gallery-template .bss-gallery-main { padding-top: 132px; }
    body.bss-gallery-template .bss-gallery-page-shell { width: calc(100% - 24px); }
    body.bss-gallery-template .bss-gallery-page-heading {
        display: block;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    body.bss-gallery-template .bss-gallery-page-eyebrow {
        margin-bottom: 4px !important;
        font-size: 9px;
        letter-spacing: .04em;
    }
    body.bss-gallery-template .bss-gallery-page-heading h1 {
        font-size: clamp(23px, 6.8vw, 31px);
    }
    body.bss-gallery-template .bss-gallery {
        display: grid;
        grid-template-columns: minmax(0,1fr);
        row-gap: 0;
        margin: 0 0 20px;
        width: 100%;
    }
    body.bss-gallery-template .bss-gallery-filters {
        grid-column: 1;
        grid-row: 1;
        padding: 0 0 7px;
        gap: 7px;
    }
    body.bss-gallery-template .bss-gallery-filter { padding: 9px 12px; font-size: 12px; }
    body.bss-gallery-template .bss-gallery-play-tools {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        padding: 0 0 8px;
    }
    body.bss-gallery-template .bss-gallery-play-all { padding: 8px 14px !important; }
    body.bss-gallery-template .bss-gallery-album-intro { grid-column: 1; grid-row: 3; }
    body.bss-gallery-template .bss-gallery-grid {
        grid-column: 1;
        grid-row: 4;
        column-count: 2;
        column-gap: 8px;
        padding-top: 0;
    }
    body.bss-gallery-template .bss-gallery-photo { margin-bottom: 8px; border-radius: 6px; }
    body.bss-gallery-template .bss-gallery-empty,
    body.bss-gallery-template .bss-gallery-more-wrap { grid-column: 1; }
}
@media (max-width: 782px) {
    body.admin-bar.bss-gallery-template .site-nav.bss-shared-inner-nav { top: 46px !important; }
}
