/* Photo gallery: visual storytelling with an ivory field and restrained wedding-red accents. */
body:not(.admin) .gallery-page {
    --gallery-red: #941823;
    --gallery-red-dark: #69111b;
    --gallery-ivory: #fffaf1;
    --gallery-cream: #f8eedc;
    --gallery-gold: #d4a06a;
    --gallery-line: #ead7ba;
    --gallery-ink: #302421;
    overflow: hidden;
    color: var(--gallery-ink);
    background: var(--gallery-ivory);
}
body:not(.admin) .gallery-page :is(h1, h2, h3, p) { margin-top: 0; }
body:not(.admin) .gallery-page :is(h1, h2, h3) { font-family: var(--font-display) !important; font-weight: 600 !important; }
body:not(.admin) .gallery-page p { max-width: 65ch; }
.gallery-page a { color: inherit; }
.gallery-page img { display: block; max-width: 100%; }
.gallery-eyebrow { display: inline-block; color: #98512b; font: 600 14px/1.5 var(--font-body), sans-serif; letter-spacing: .16em; }

.gallery-hero { position: relative; display: grid; min-height: 290px; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 25px; align-items: center; padding: 18px max(32px, calc((100% - 1160px) / 2)); overflow: hidden; background: #fbf4e9; }
.gallery-hero::before,.gallery-hero::after { position: absolute; top: 5px; bottom: -12px; width: 125px; background: url("/assets/heritage-flourish.svg") center / contain no-repeat; opacity: .16; content: ""; pointer-events: none; }
.gallery-hero::before { left: -71px; }
.gallery-hero::after { right: -71px; transform: scaleX(-1); }
.gallery-hero-copy { position: relative; z-index: 1; max-width: 450px; }
.gallery-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: #635952; font: 400 14px/1.5 var(--font-body), sans-serif; }
.gallery-breadcrumb a { color: inherit; text-decoration: none; }
.gallery-breadcrumb a:hover { color: var(--gallery-red); }
.gallery-breadcrumb [aria-hidden="true"] { color: var(--gallery-gold); }
.gallery-hero-copy .gallery-eyebrow { margin-bottom: 5px; }
body:not(.admin) .gallery-page .gallery-hero h1 { max-width: 11ch; margin: 0 0 8px; color: var(--gallery-red) !important; font-size: clamp(38px, 4.2vw, 55px) !important; line-height: 1.15 !important; letter-spacing: -.025em !important; }
.gallery-hero h1 span { display: block; }
body:not(.admin) .gallery-page .gallery-hero-copy > p { max-width: 42ch; margin: 0; color: #625850 !important; font-size: 16px !important; line-height: 1.7 !important; }
.gallery-hero-photos { position: relative; z-index: 1; display: grid; min-width: 0; height: 225px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery-hero-photos figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 3px; background: #eadbc3; }
.gallery-hero-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-hero-photos figure:hover img { transform: scale(1.035); }
.gallery-route .navlinks .nav-group .nav-drop.active { position: relative; color: var(--gallery-red) !important; }
.gallery-route .navlinks .nav-group .nav-drop.active::after { position: absolute; right: 13px; bottom: 1px; left: 13px; height: 2px; background: var(--gallery-red); content: ""; }

.gallery-promotional,.gallery-collection { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.gallery-promotional { padding: 20px 0 22px; }
.gallery-section-heading { margin-bottom: 11px; }
.gallery-section-heading h2 { margin: 0 0 2px; color: var(--gallery-red) !important; font: 600 clamp(26px, 2.8vw, 36px)/1.08 var(--font-display), Georgia, serif !important; letter-spacing: -.018em; }
body:not(.admin) .gallery-page .gallery-section-heading p { margin: 0; color: #655b55 !important; font-size: 16px !important; line-height: 1.7 !important; }
.gallery-promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-promo-card { min-width: 0; overflow: hidden; border: 1px solid #eadbc4; border-radius: 4px; background: #fffdf8; }
.gallery-promo-image { position: relative; display: block; width: 100%; height: clamp(170px, 20vw, 235px); padding: 8px; overflow: hidden; border: 0; background: #f2e4ce; cursor: zoom-in; }
.gallery-promo-card:first-child .gallery-promo-image img { object-fit: contain; }
.gallery-promo-card:nth-child(2) .gallery-promo-image img { object-fit: cover; object-position: center 47%; }
.gallery-promo-image img { width: 100%; height: 100%; }
.gallery-promo-card > div { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; }
.gallery-promo-card > div strong { display: block; color: var(--gallery-red); font: 600 17px/1.15 var(--font-display), Georgia, serif; }
.gallery-promo-card > div small { display: block; margin-top: 1px; color: #6a6059; font: 400 14px/1.4 var(--font-body), sans-serif; }
.gallery-view-button { display: inline-flex; min-height: 31px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #cfa27a; border-radius: 3px; color: var(--gallery-red); background: #fffdf9; cursor: pointer; font: 600 14px/1.4 var(--font-body), sans-serif; }
.gallery-view-button:hover { color: #fffaf1; background: var(--gallery-red); border-color: var(--gallery-red); }

.gallery-collection { padding: 6px 0 24px; }
.gallery-collection .gallery-section-heading { margin-bottom: 10px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.gallery-filters button { min-height: 30px; padding: 6px 13px; border: 1px solid #e4d7c6; border-radius: 999px; color: #4c413b; background: #fffdf8; cursor: pointer; font: 500 14px/1.35 var(--font-body), sans-serif; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.gallery-filters button:hover { border-color: #b55a50; color: var(--gallery-red); }
.gallery-filters button.active { border-color: var(--gallery-red); color: #fffaf1; background: var(--gallery-red); }
.gallery-grid { display: grid; grid-auto-rows: 150px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery-item { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 4px; background: #6f4b3c; }
.gallery-item[hidden] { display: none !important; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 3; }
.gallery-item > button { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-item > button::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(35 17 14 / 69%)); content: ""; pointer-events: none; }
.gallery-caption { position: absolute; z-index: 1; right: 30px; bottom: 11px; left: 11px; color: #fffaf1; text-shadow: 0 1px 4px rgb(0 0 0 / 45%); font: 600 14px/1.4 var(--font-body), sans-serif; }
.gallery-expand { position: absolute; z-index: 1; right: 9px; bottom: 9px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: rgb(40 20 16 / 46%); font: 500 14px/1 var(--font-body), sans-serif; }
.gallery-item button:focus-visible,.gallery-promo-image:focus-visible,.gallery-view-button:focus-visible,.gallery-filters button:focus-visible,.gallery-load-more:focus-visible { outline: 3px solid #cc9e68; outline-offset: 2px; }
.gallery-empty { padding: 22px 14px; margin: 0 0 12px !important; border: 1px solid var(--gallery-line); color: #655b55 !important; text-align: center; font-size: 14px !important; }
.gallery-empty[hidden] { display: none !important; }
.gallery-load-more { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; margin: 12px auto 0; border: 1px solid #b83c42; border-radius: 3px; color: var(--gallery-red); background: transparent; cursor: pointer; font: 600 14px/1.4 var(--font-body), sans-serif; }
.gallery-load-more:hover { color: #fffaf1; background: var(--gallery-red); }
.gallery-load-more[hidden] { display: none !important; }

.gallery-next { position: relative; display: grid; min-height: 110px; grid-template-columns: 150px minmax(0, 1fr) 105px; gap: 24px; align-items: center; padding: 14px max(32px, calc((100% - 1160px) / 2)); overflow: hidden; background: #fbf1e2; }
.gallery-next::before,.gallery-next::after { position: absolute; top: -80px; bottom: -90px; width: 180px; background: url("/assets/heritage-flourish.svg") center / contain no-repeat; opacity: .15; content: ""; pointer-events: none; }
.gallery-next::before { left: -75px; }
.gallery-next::after { right: -75px; transform: scaleX(-1); }
.gallery-camera-mark,.gallery-bird-mark { position: relative; z-index: 1; display: grid; place-items: center; color: #c58451; }
.gallery-camera-mark svg { width: 96px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.gallery-next > div { position: relative; z-index: 1; }
.gallery-next h2 { margin: 0 0 3px; color: var(--gallery-red) !important; font: 600 clamp(22px, 2.4vw, 31px)/1.08 var(--font-display), Georgia, serif !important; }
body:not(.admin) .gallery-page .gallery-next p { margin: 0 0 4px; color: #655b55 !important; font-size: 16px !important; line-height: 1.7 !important; }
.gallery-next a { display: inline-flex; align-items: center; gap: 6px; color: var(--gallery-red) !important; text-decoration: none; font: 600 14px/1.4 var(--font-body), sans-serif; }
.gallery-next a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gallery-bird-mark { width: 74px; height: 74px; border: 1px solid #dca978; border-radius: 48% 52% 45% 55%; color: #c4834f; font-size: 36px; transform: rotate(-20deg); }

.gallery-media-cta { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 12px max(32px, calc((100% - 1160px) / 2)); color: #fff8ed; background: linear-gradient(105deg, #68101a, #82131f 55%, #5e1019); }
.gallery-mail-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #dcb47d; border-radius: 50%; color: #f3d59f; }
.gallery-mail-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.gallery-media-cta h2 { margin: 0 0 2px; color: #fff8ed !important; font: 600 32px/1.15 var(--font-display), Georgia, serif !important; }
body:not(.admin) .gallery-page .gallery-media-cta p { margin: 0; color: #f2e0d4 !important; font-size: 16px !important; line-height: 1.7 !important; }
.gallery-dark-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px; border: 1px solid #e0c395; border-radius: 3px; color: #fff8ed !important; background: transparent; text-decoration: none; font: 600 14px/1.4 var(--font-body), sans-serif; transition: color .2s ease, background-color .2s ease; }
.gallery-dark-button:hover { color: var(--gallery-red) !important; background: #fff8ed; }

.gallery-register-cta { display: grid; min-height: 95px; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px max(32px, calc((100% - 1160px) / 2)); background: #fffaf1; }
.gallery-family-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #e2bf94; border-radius: 50%; color: var(--gallery-red); font: 500 36px/1 var(--font-display), Georgia, serif; }
.gallery-register-cta h2 { margin: 0 0 2px; color: var(--gallery-red) !important; font: 600 32px/1.08 var(--font-display), Georgia, serif !important; }
body:not(.admin) .gallery-page .gallery-register-cta p { margin: 0; color: #655b55 !important; font-size: 16px !important; line-height: 1.7 !important; }
.gallery-register-cta .gallery-dark-button { border-color: var(--gallery-red); color: #fffaf1 !important; background: var(--gallery-red); }
.gallery-register-cta .gallery-dark-button:hover { color: var(--gallery-red) !important; background: transparent; }

.gallery-closing { width: min(1160px, calc(100% - 64px)); margin: 14px auto 34px; display: grid; gap: 14px; }
.gallery-next {
    min-height: 260px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 0;
    padding: 0;
    border: 1px solid #ead7ba;
    border-radius: 10px;
    background: #fbf1e2;
    box-shadow: 0 12px 30px rgb(73 41 29 / 8%);
}
.gallery-next::before { left: -75px; }
.gallery-next::after { display: none; }
.gallery-next-copy { position: relative; z-index: 1; align-self: center; padding: 30px clamp(22px, 4vw, 48px); }
.gallery-next-copy .gallery-eyebrow { margin-bottom: 10px; font-size: 11px; }
.gallery-next h2 { max-width: 19ch; margin-bottom: 10px; font-size: clamp(24px, 2.5vw, 34px) !important; line-height: 1.2 !important; }
body:not(.admin) .gallery-page .gallery-next p { margin-bottom: 16px; font-size: 15px !important; }
.gallery-next-copy .gallery-dark-button { min-height: 40px; border-color: var(--gallery-red); color: #fffaf1 !important; background: var(--gallery-red); }
.gallery-next-copy .gallery-dark-button:hover { color: var(--gallery-red) !important; background: transparent; }
.gallery-next-photo { min-width: 0; min-height: 260px; margin: 0; overflow: hidden; background: #e6d4b8; }
.gallery-next-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center 43%; }
.gallery-closing-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-closing-ctas .gallery-media-cta,
.gallery-closing-ctas .gallery-register-cta {
    min-width: 0;
    min-height: 150px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px 14px;
    align-content: center;
    padding: 20px;
    border: 1px solid #ead7ba;
    border-radius: 8px;
}
.gallery-closing-ctas .gallery-media-cta { background: linear-gradient(125deg, #68101a, #82131f 65%, #5e1019); }
.gallery-closing-ctas .gallery-register-cta { background: #fffaf1; }
.gallery-closing-ctas .gallery-mail-icon,
.gallery-closing-ctas .gallery-family-mark { grid-row: 1 / 3; align-self: start; }
.gallery-closing-ctas .gallery-mail-icon { width: 40px; height: 40px; }
.gallery-closing-ctas .gallery-family-mark { width: 42px; height: 42px; font-size: 30px; }
.gallery-closing-ctas .gallery-media-cta h2,
.gallery-closing-ctas .gallery-register-cta h2 { font-size: clamp(19px, 1.8vw, 24px) !important; line-height: 1.25 !important; }
body:not(.admin) .gallery-page .gallery-closing-ctas p { font-size: 14px !important; line-height: 1.55 !important; }
.gallery-closing-ctas .gallery-dark-button { grid-column: 2; justify-self: start; }

.gallery-lightbox { position: fixed; width: min(92vw, 1050px); max-width: none; max-height: 90vh; padding: 16px; overflow: visible; border: 1px solid #d7bd9c; border-radius: 5px; color: #fffaf1; background: #20171a; box-shadow: 0 24px 90px rgb(0 0 0 / 50%); }
.gallery-lightbox::backdrop { background: rgb(19 11 13 / 82%); backdrop-filter: blur(3px); }
.gallery-lightbox img { display: block; width: 100%; max-height: calc(90vh - 70px); object-fit: contain; }
.gallery-lightbox p { max-width: none !important; margin: 9px 0 0 !important; color: #f6e9d9 !important; font-size: 16px !important; line-height: 1.7 !important; }
.gallery-lightbox-close { position: absolute; top: -13px; right: -13px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #ead3b0; border-radius: 50%; color: #fffaf1; background: var(--gallery-red); cursor: pointer; font: 400 24px/1 var(--font-body), sans-serif; }

html[lang="hi"] body:not(.admin) .gallery-page :is(h1, h2, h3, strong) { font-family: var(--font-hindi-display) !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
html[lang="hi"] body:not(.admin) .gallery-page :is(p, small, a, button, figcaption, .gallery-eyebrow) { font-family: var(--font-hindi-body) !important; letter-spacing: 0 !important; }
html[lang="hi"] body:not(.admin) .gallery-page p { line-height: 1.8 !important; }

@media (max-width: 900px) {
    .gallery-hero { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 18px; }
    .gallery-hero-photos { height: 195px; gap: 6px; }
    .gallery-promotional,.gallery-collection { width: calc(100% - 52px); }
    .gallery-grid { grid-auto-rows: 135px; }
    .gallery-closing { width: calc(100% - 52px); }
}

@media (max-width: 700px) {
    .gallery-hero { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .gallery-hero-copy { max-width: 620px; width: 100%; justify-self: center; }
    .gallery-breadcrumb { margin-bottom: 12px; }
    body:not(.admin) .gallery-page .gallery-hero h1 { max-width: 15ch; font-size: clamp(38px, 8vw, 47px) !important; }
    body:not(.admin) .gallery-page .gallery-hero-copy > p { max-width: 52ch; font-size: 16px !important; }
    .gallery-hero-photos { height: clamp(145px, 42vw, 220px); }
    .gallery-promotional,.gallery-collection { width: min(calc(100% - 36px), 620px); }
    .gallery-promotional { padding: 19px 0; }
    .gallery-section-heading h2 { font-size: 32px !important; }
    .gallery-promo-grid { grid-template-columns: 1fr; gap: 10px; }
    .gallery-promo-image { height: clamp(170px, 47vw, 260px); }
    .gallery-collection { padding: 2px 0 22px; }
    .gallery-filters { gap: 6px; }
    .gallery-filters button { padding-inline: 11px; }
    .gallery-grid { grid-auto-rows: 145px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .gallery-item-tall { grid-row: span 1; }
    .gallery-item-wide { grid-column: span 2; }
    .gallery-closing { width: min(calc(100% - 36px), 620px); }
    .gallery-next { grid-template-columns: 1fr; }
    .gallery-next-copy { padding: 24px 20px; }
    .gallery-next-photo { min-height: 190px; }
    .gallery-next-photo img { min-height: 190px; max-height: 230px; }
    .gallery-closing-ctas { grid-template-columns: 1fr; gap: 10px; }
    .gallery-closing-ctas .gallery-media-cta,
    .gallery-closing-ctas .gallery-register-cta { min-height: 130px; padding: 16px; }
    .gallery-closing-ctas .gallery-media-cta h2,
    .gallery-closing-ctas .gallery-register-cta h2 { font-size: 22px !important; }
    .gallery-lightbox { width: 94vw; padding: 10px; }
}

@media (max-width: 430px) {
    .gallery-hero { padding: 16px 15px; }
    body:not(.admin) .gallery-page .gallery-hero h1 { font-size: 38px !important; }
    .gallery-hero-photos { height: 145px; gap: 5px; }
    .gallery-promotional,.gallery-collection { width: calc(100% - 30px); }
    .gallery-promo-card > div { padding: 7px 8px; }
    .gallery-promo-card > div strong { font-size: 16px; }
    .gallery-view-button { padding-inline: 8px; }
    .gallery-filters { gap: 5px; }
    .gallery-filters button { min-height: 29px; padding: 6px 9px; font-size: 14px; }
    .gallery-grid { grid-auto-rows: 125px; gap: 6px; }
    .gallery-caption { right: 25px; bottom: 8px; left: 8px; font-size: 14px; }
    .gallery-expand { right: 6px; bottom: 6px; width: 19px; height: 19px; font-size: 14px; }
    .gallery-closing { width: calc(100% - 30px); margin-top: 10px; }
    .gallery-next-copy { padding: 20px 15px; }
    .gallery-closing-ctas .gallery-media-cta,
    .gallery-closing-ctas .gallery-register-cta { grid-template-columns: 35px minmax(0, 1fr); gap: 9px; padding-inline: 13px; }
    .gallery-closing-ctas .gallery-mail-icon { width: 34px; height: 34px; }
    .gallery-closing-ctas .gallery-family-mark { width: 34px; height: 34px; font-size: 26px; }
    .gallery-dark-button { max-width: 100%; }
}
