/* =========================================================
   Gallery page — Dr. Shailesh Darji
   Uses theme variables: --primary, --primary-dark, --primary-light, --secondary,
   --lavender, --lavender-soft, --pearl, --pearl-dark, --bg, --black, --white,
   --text-light, --radius-md, --shadow-sm, --shadow-md, --font-heading, --font-body
   Colours: purple shades, black, white and pearl only.
   ========================================================= */


/* ---------- SHARED ---------- */
.gallery-darhi-gallerypage__container { width: min(1350px, calc(100% - 40px)); margin: 0 auto; }
.gallery-darhi-gallerypage__section { padding: 90px 0; background: var(--bg); }
.gallery-darhi-gallerypage__section--pearl { background: var(--bg); }
.gallery-darhi-gallerypage__section--soft { background: var(--bg); }
.gallery-darhi-gallerypage__heading { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.gallery-darhi-gallerypage__heading p { margin: 16px 0 0; color: var(--text-light); font-size: 15px; line-height: 1.7; }
.gallery-darhi-gallerypage__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.gallery-darhi-gallerypage__title { margin: 0; color: var(--black); font-family: var(--font-heading); font-size: clamp(30px, 3.2vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -0.5px; }
.gallery-darhi-gallerypage__title strong { color: var(--primary); font-weight: 700; }
.gallery-darhi-gallerypage__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.gallery-darhi-gallerypage a:focus-visible,
.gallery-darhi-gallerypage button:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }

/* ---------- 2 · INTRO + FILTER ---------- */
.gallery-darhi-gallerypage { padding: 70px 0 50px; background: var(--bg); }
.gallery-darhi-gallerypage__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gallery-darhi-gallerypage__chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 22px; border: 1.5px solid var(--pearl-dark); border-radius: 999px; background: var(--white); color: var(--black); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: all .25s ease; }
.gallery-darhi-gallerypage__chip span { display: inline-flex; min-width: 24px; height: 24px; align-items: center; justify-content: center; padding: 0 7px; border-radius: 999px; background: var(--lavender-soft); color: var(--primary); font-size: 12px; font-weight: 700; transition: all .25s ease; }
.gallery-darhi-gallerypage__chip:hover { border-color: var(--primary); color: var(--primary); }
.gallery-darhi-gallerypage__chip.is-active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.gallery-darhi-gallerypage__chip.is-active span { background: var(--white); color: var(--primary); }

/* ---------- 3 · PHOTO GRID ---------- */
.gallery-darhi-gallerypage__photos { padding: 20px 0 40px; }
.gallery-darhi-gallerypage__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 20px; }
.gallery-darhi-gallerypage__item { position: relative; display: block; overflow: hidden; border-radius: 22px; background: linear-gradient(145deg, var(--lavender-soft), var(--primary-light)); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery-darhi-gallerypage__item[hidden] { display: none; }
.gallery-darhi-gallerypage__item--wide { grid-column: span 2; }
.gallery-darhi-gallerypage__item--tall { grid-row: span 2; }
.gallery-darhi-gallerypage__grid.is-filtered .gallery-darhi-gallerypage__item--wide { grid-column: auto; }
.gallery-darhi-gallerypage__grid.is-filtered .gallery-darhi-gallerypage__item--tall { grid-row: auto; }
.gallery-darhi-gallerypage__item:hover .gallery-darhi-gallerypage__image,
.gallery-darhi-gallerypage__item:focus-visible .gallery-darhi-gallerypage__image { transform: scale(1.07); }
.gallery-darhi-gallerypage__item::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 33, 69, 0) 45%, rgba(43, 33, 69, .82) 100%); opacity: 0; transition: opacity .3s ease; content: ""; }
.gallery-darhi-gallerypage__item:hover::after,
.gallery-darhi-gallerypage__item:focus-visible::after { opacity: 1; }
.gallery-darhi-gallerypage__zoom { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--white); color: var(--primary); font-size: 15px; opacity: 0; transform: scale(.8); transition: all .3s ease; }
.gallery-darhi-gallerypage__item:hover .gallery-darhi-gallerypage__zoom,
.gallery-darhi-gallerypage__item:focus-visible .gallery-darhi-gallerypage__zoom { opacity: 1; transform: scale(1); }
.gallery-darhi-gallerypage__caption { position: absolute; right: 20px; bottom: 18px; left: 20px; z-index: 2; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(10px); transition: all .3s ease; }
.gallery-darhi-gallerypage__item:hover .gallery-darhi-gallerypage__caption,
.gallery-darhi-gallerypage__item:focus-visible .gallery-darhi-gallerypage__caption { opacity: 1; transform: translateY(0); }
.gallery-darhi-gallerypage__caption small { color: var(--lavender); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.gallery-darhi-gallerypage__caption strong { color: var(--white); font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.3; }

/* ---------- 4 · VIDEOS ---------- */
.gallery-darhi-gallerypage__videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-darhi-gallerypage__video h3 { margin: 18px 0 6px; color: var(--black); font-family: var(--font-heading); font-size: 21px; font-weight: 600; line-height: 1.3; }
.gallery-darhi-gallerypage__video p { margin: 0; color: var(--text-light); font-size: 14.5px; line-height: 1.65; }
.gallery-darhi-gallerypage__video-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: linear-gradient(150deg, var(--primary-dark), var(--secondary)); }
.gallery-darhi-gallerypage__video-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 33, 69, .1), rgba(43, 33, 69, .55)); content: ""; }
.gallery-darhi-gallerypage__play { position: absolute; top: 50%; left: 50%; z-index: 2; display: flex; width: 62px; height: 62px; align-items: center; justify-content: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); color: var(--primary); font-size: 20px; box-shadow: 0 0 0 9px rgba(255, 255, 255, .35); transition: transform .25s ease; }
.gallery-darhi-gallerypage__play i { margin-left: 3px; }
.gallery-darhi-gallerypage__video-media:hover .gallery-darhi-gallerypage__play { transform: translate(-50%, -50%) scale(1.1); }
.gallery-darhi-gallerypage__video-media:hover .gallery-darhi-gallerypage__image { transform: scale(1.05); }

/* ---------- 5 · PRIVACY NOTE + SOCIAL ---------- */
.gallery-darhi-gallerypage__follow { padding: 30px 0; }
.gallery-darhi-gallerypage__follow-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.gallery-darhi-gallerypage__notice { display: flex; align-items: flex-start; gap: 20px; padding: 32px 34px; border: 2px solid var(--black);  border-radius: 16px; background: var(--white); }
.gallery-darhi-gallerypage__notice > i { margin-top: 4px; color: var(--black); font-size: 28px; }
.gallery-darhi-gallerypage__notice h3 { margin: 0 0 8px; color: var(--black); font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.gallery-darhi-gallerypage__notice p { margin: 0; color: var(--text-light); font-size: 15px; line-height: 1.7; }
.gallery-darhi-gallerypage__social-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 30px; border-radius: 16px; background: var(--secondary); text-align: center; }
.gallery-darhi-gallerypage__social-box h3 { margin: 0; color: var(--white); font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.gallery-darhi-gallerypage__social { display: flex; gap: 12px; }
.gallery-darhi-gallerypage__social a { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 50%; color: var(--white); font-size: 17px; text-decoration: none; transition: all .25s ease; }
.gallery-darhi-gallerypage__social a:hover { border-color: var(--lavender); background: var(--lavender); color: var(--black); }

/* ---------- 6 · CTA ---------- */
.gallery-darhi-gallerypage__cta { padding: 90px 0; background: var(--bg); }
.gallery-darhi-gallerypage__cta-box { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; padding: 56px 60px; border-radius: 36px; background: linear-gradient(120deg, var(--secondary) 0%, var(--primary-dark) 100%); }
.gallery-darhi-gallerypage__cta-copy, .gallery-darhi-gallerypage__cta-buttons { position: relative; z-index: 1; }
.gallery-darhi-gallerypage__cta-copy h2 { margin: 0 0 8px; color: var(--white); font-family: var(--font-heading); font-size: 36px; font-weight: 700; }
.gallery-darhi-gallerypage__cta-copy p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.7; }
.gallery-darhi-gallerypage__cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.gallery-darhi-gallerypage__cta-call { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.gallery-darhi-gallerypage__cta-call:hover { border-color: var(--white); background: var(--white); color: var(--secondary); }

/* ---------- LIGHTBOX ---------- */
.gallery-darhi-gallerypage__lightbox { width: min(1180px, 96vw); max-width: 96vw; max-height: 94vh; padding: 0; border: 0; border-radius: 24px; background: var(--black); color: var(--white); overflow: hidden; }
.gallery-darhi-gallerypage__lightbox::backdrop { background: rgba(17, 16, 24, .88); }
.gallery-darhi-gallerypage__lightbox-inner { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 74px 24px; }
.gallery-darhi-gallerypage__lb-figure { margin: 0; text-align: center; }
.gallery-darhi-gallerypage__lb-figure img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 14px; object-fit: contain; }
.gallery-darhi-gallerypage__lb-figure figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 18px; }
.gallery-darhi-gallerypage__lb-figure figcaption span { color: var(--lavender); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.gallery-darhi-gallerypage__lb-figure figcaption strong { color: var(--white); font-family: var(--font-heading); font-size: 20px; font-weight: 600; }
.gallery-darhi-gallerypage__lb-figure figcaption em { color: rgba(255, 255, 255, .65); font-size: 13px; font-style: normal; }
.gallery-darhi-gallerypage__lb-btn { position: absolute; z-index: 3; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: 16px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.gallery-darhi-gallerypage__lb-btn:hover { background: var(--lavender); color: var(--black); }
.gallery-darhi-gallerypage__lb-close { top: 14px; right: 14px; }
.gallery-darhi-gallerypage__lb-prev { top: 50%; left: 14px; transform: translateY(-60%); }
.gallery-darhi-gallerypage__lb-next { top: 50%; right: 14px; transform: translateY(-60%); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .gallery-darhi-gallerypage__section { padding: 70px 0; }
    .gallery-darhi-gallerypage { padding: 52px 0 36px; }
    .gallery-darhi-gallerypage__photos { padding: 52px 0 60px; }
    .gallery-darhi-gallerypage__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
    .gallery-darhi-gallerypage__videos-grid { grid-template-columns: 1fr 1fr; }
    .gallery-darhi-gallerypage__follow-grid { grid-template-columns: 1fr; }
    .gallery-darhi-gallerypage__cta { padding: 70px 0; }
}
@media (max-width: 768px) {
    .gallery-darhi-gallerypage__section { padding: 52px 0; }
    .gallery-darhi-gallerypage { padding: 40px 0 28px; }
    .gallery-darhi-gallerypage__heading { margin-bottom: 30px; }
    .gallery-darhi-gallerypage__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
    .gallery-darhi-gallerypage__chip { flex: none; white-space: nowrap; }
    .gallery-darhi-gallerypage__photos { padding: 36px 0 48px; }
    .gallery-darhi-gallerypage__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
    .gallery-darhi-gallerypage__item { border-radius: 16px; }
    /* touch screens have no hover, so always show the caption */
    .gallery-darhi-gallerypage__item::after { opacity: 1; }
    .gallery-darhi-gallerypage__caption { right: 12px; bottom: 10px; left: 12px; opacity: 1; transform: none; }
    .gallery-darhi-gallerypage__caption small { font-size: 9px; }
    .gallery-darhi-gallerypage__caption strong { font-size: 14px; }
    .gallery-darhi-gallerypage__zoom { display: none; }
    .gallery-darhi-gallerypage__videos-grid { grid-template-columns: 1fr; }
    .gallery-darhi-gallerypage__follow { padding: 52px 0; }
    .gallery-darhi-gallerypage__notice { padding: 24px 20px; }
    .gallery-darhi-gallerypage__cta { padding: 40px 0 52px; }
    .gallery-darhi-gallerypage__cta-box { padding: 38px 26px; border-radius: 26px; }
    .gallery-darhi-gallerypage__cta-copy h2 { font-size: 28px; }
    .gallery-darhi-gallerypage__lightbox { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
    .gallery-darhi-gallerypage__lightbox-inner { height: 100vh; padding: 64px 14px 24px; }
    .gallery-darhi-gallerypage__lb-figure img { max-height: 62vh; }
    .gallery-darhi-gallerypage__lb-prev, .gallery-darhi-gallerypage__lb-next { top: auto; bottom: 18px; transform: none; }
    .gallery-darhi-gallerypage__lb-prev { left: 18px; }
    .gallery-darhi-gallerypage__lb-next { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-darhi-gallerypage *, .gallery-darhi-gallerypage__item * { transition: none !important; }
}