/* Noble Builder CMS — additions to the site design for CMS-only features.
   Uses the same tokens as style.css (indigo, paper, serif headings). */

/* page builder: per-section options */
@media (max-width: 860px) { .vis-desktop { display: none !important; } }
@media (min-width: 861px) { .vis-mobile { display: none !important; } }
.pad-compact { padding-block: clamp(48px, 5vw, 80px) !important; }
.pad-large { padding-block: clamp(110px, 12vw, 200px) !important; }
.pad-none { padding-block: 0 !important; }
.align-center, .align-center .hd-block, .align-center .title { text-align: center; }
.align-center .prose, .align-center .title-sub { margin-inline: auto; }
.align-right { text-align: right; }
.align-left .title { text-align: left; align-items: flex-start; }
.has-bg-image { position: relative; isolation: isolate; }
.map-sec { display: block; }

/* header dropdowns and mega menus (built from Menu Management) */
.hdr-dd { position: relative; display: inline-flex; align-items: center; }
.hdr-dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.hdr-dd-menu { position: absolute; top: 100%; left: -18px; min-width: 230px; list-style: none; margin: 0; padding: 12px 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28, 28, 30, .08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 60; }
.hdr-dd:hover .hdr-dd-menu, .hdr-dd:focus-within .hdr-dd-menu, .hdr-dd.is-open .hdr-dd-menu { opacity: 1; visibility: visible; transform: none; }
.hdr-dd-menu a { display: block; padding: 9px 22px; color: var(--ink) !important; font-size: .9rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; text-shadow: none !important; }
.hdr-dd-menu a:hover { color: var(--indigo) !important; background: var(--indigo-tint); }
.hdr-dd-menu ul { list-style: none; margin: 0; padding: 0 0 6px 12px; }
.hdr-dd-menu ul a { font-size: .84rem; color: var(--ink-2) !important; padding-block: 6px; }
.hdr-dd--mega { position: static; }
.hdr-dd--mega .hdr-dd-menu { left: 50%; right: auto; transform: translate(-50%, 6px); width: min(1100px, calc(100vw - 48px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; padding: 26px 28px; }
.hdr-dd--mega:hover .hdr-dd-menu, .hdr-dd--mega:focus-within .hdr-dd-menu, .hdr-dd--mega.is-open .hdr-dd-menu { transform: translate(-50%, 0); }
.hdr-dd--mega .hdr-dd-menu > li > a { font-family: var(--serif); font-size: 1.15rem; color: var(--indigo) !important; padding-inline: 10px; }
.mnav-sub { list-style: none; margin: 6px 0 4px; padding: 0 0 0 16px; }
.mnav-sub a { font-size: 1.05rem !important; opacity: .8; }

/* top bar */
.topbar { background: var(--indigo); color: rgba(255, 255, 255, .88); font-size: .8rem; letter-spacing: .03em; position: relative; z-index: 51; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; margin-left: 18px; }
@media (max-width: 860px) { .topbar-in > span:last-child { display: none; } }

/* preview bar for drafts */
.cms-preview-bar { position: sticky; top: 0; z-index: 300; background: #FEF0C7; color: #7A2E0E; text-align: center; font: 500 .85rem/1.4 var(--sans); padding: 9px 16px; }
.cms-preview-bar a { text-decoration: underline; margin-left: 8px; }

/* counters */
.counters { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); text-align: center; }
.counters b { font: 500 clamp(2.6rem, 2rem + 2vw, 4rem)/1 var(--serif); color: var(--indigo); }
.counters sup { font: 500 1.4rem/1 var(--serif); color: var(--indigo); margin-left: 2px; }
.counters span { display: block; margin-top: 10px; color: var(--ink-2); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.sec--ink .counters b, .sec--ink .counters sup { color: #fff; }
.sec--ink .counters span { color: rgba(255, 255, 255, .7); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .media img { transform: scale(1.04); }
.post-card h3 { font: 500 1.55rem/1.15 var(--serif); color: var(--ink); }
.post-card:hover h3 { color: var(--indigo); }
.post-meta { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--ink); }
.pager a[aria-current] , .pager a:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.prose--article { max-width: 72ch; margin-inline: auto; color: var(--ink); font-size: 1.05rem; gap: 18px; }
.prose--article h2 { font: 500 2rem/1.15 var(--serif); color: var(--ink); margin-top: 18px; }
.prose--article h3 { font: 500 1.5rem/1.2 var(--serif); color: var(--ink); margin-top: 10px; }
.prose--article a { color: var(--indigo); text-decoration: underline; }
.prose--article img { width: 100%; height: auto; margin-block: 10px; }
.prose--article blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--indigo); font: italic 500 1.35rem/1.4 var(--serif); color: var(--indigo); }
.prose--article ul, .prose--article ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose--wide { max-width: none; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 72ch; margin: 36px auto 0; }
.post-tags a { border: 1px solid var(--line); padding: 6px 12px; font-size: .78rem; letter-spacing: .08em; color: var(--ink-2); }
.post-tags a:hover { border-color: var(--indigo); color: var(--indigo); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* careers */
.jobs { list-style: none; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.jobs li { border-bottom: 1px solid var(--line); }
.jobs a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; }
.jobs h3 { font: 500 1.6rem/1.15 var(--serif); color: var(--ink); }
.jobs a:hover h3, .jobs a:hover i { color: var(--indigo); }
.jobs i { font-style: normal; font-size: 1.3rem; color: var(--ink-2); transition: transform .3s ease; }
.jobs a:hover i { transform: translateX(6px); }
.facts--compact { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 28px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); grid-column: 1 / -1; }
.form-consent input { margin-top: 4px; accent-color: var(--indigo); }

/* testimonials */
.tst-row { margin-top: clamp(40px, 5vw, 72px); }
.tst-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(460px, 86%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.tst-track::-webkit-scrollbar { display: none; }
.tst { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.sec--paper .tst { background: #fff; }
.tst blockquote { margin: 0; font: italic 500 1.3rem/1.45 var(--serif); color: var(--ink); }
.tst figcaption { display: flex; align-items: center; gap: 14px; }
.tst figcaption small { display: block; color: var(--ink-2); font-size: .8rem; }
.tst-pic { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; }
.tst-pic img { width: 100%; height: 100%; object-fit: cover; }
.tst-stars { margin-left: auto; color: var(--indigo); letter-spacing: 2px; }

/* video gallery */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.vid { display: flex; flex-direction: column; gap: 12px; }
.vid video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vid figcaption { font: 500 1.25rem/1.2 var(--serif); }

/* image gallery columns */
.gal--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.gal--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 860px) { .gal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .gal--2, .gal--4 { grid-template-columns: minmax(0, 1fr) !important; } }

/* logos */
.logos--static { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 4vw, 64px); list-style: none; margin-top: clamp(40px, 5vw, 64px); }
.logos--static img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos--static a:hover img, .logos--static li:hover img { filter: none; opacity: 1; }

/* image panel reversed (photo on the right) */
.panel--rev > .media { order: 2; }
@media (max-width: 860px) { .panel--rev > .media { order: 0; } }

/* map embedded */
.map-box--inline iframe { width: 100%; height: 100%; border: 0; display: block; }

/* coming-soon tile */
.media--soon { display: grid; place-items: center; background: var(--indigo-tint); color: var(--indigo); font: italic 500 1.6rem/1 var(--serif); aspect-ratio: 4 / 3; }

/* cookie bar */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px; margin-inline: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(28, 28, 30, .14); padding: 18px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--ink-2); }
.cookie a { color: var(--indigo); text-decoration: underline; }
.cookie > div { display: flex; gap: 14px; align-items: center; flex: none; }
.cookie .text-link { background: none; border: 0; cursor: pointer; padding: 0; }
@media (max-width: 860px) { .cookie { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; } }

/* form messages from the server */
.form-status.is-error { color: #B42318; }
.form-status.is-ok { color: #067647; }

/* Header colour scheme: one combination on every page and every state.
   Light frosted bar, and the logo, menu links, Enquire and the menu icon all in the brand indigo. */
.hdr, .hdr.is-solid, .hdr:not(.is-scrolled) { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); box-shadow: 0 1px 0 rgba(41, 38, 102, .08); }
.hdr.is-scrolled, .menu-open .hdr { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(41, 38, 102, .12); }
.hdr::before { display: none !important; }
.hdr .hdr-nav a, .hdr.is-solid .hdr-nav a, .menu-open .hdr-nav a { color: var(--indigo); text-shadow: none; }
.hdr .hdr-nav a:hover, .hdr .hdr-nav a[aria-current="page"] { border-bottom-color: var(--indigo); }
.hdr .hdr-enq, .hdr.is-solid .hdr-enq, .hdr:not(.is-scrolled) .hdr-enq, .menu-open .hdr .hdr-enq { color: var(--indigo); border-color: var(--indigo); text-shadow: none; }
.hdr .hdr-enq:hover, .hdr.is-solid .hdr-enq:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.hdr .hdr-menu, .hdr.is-solid .hdr-menu, .hdr:not(.is-scrolled) .hdr-menu, .menu-open .hdr .hdr-menu { color: var(--indigo); text-shadow: none; }
.hdr .hdr-menu svg, .hdr .hdr-logo img { filter: none !important; }
@media (max-width: 860px) {
  .hdr .hdr-enq, .hdr:not(.is-scrolled) .hdr-enq { border: 0; background: transparent; }
  .hdr .hdr-enq:hover { background: transparent; color: var(--indigo); }
  .hdr .hdr-menu { border: 0; }
}

/* Footer on phones: one tidy grid. Brand block, then two equal link columns,
   then Noble Group in two columns, then contact — each group on its own ruled row,
   social icons in the brand indigo, and the copyright clear of the back-to-top button. */
.soc a { background: var(--indigo); }
.soc a:hover { background: var(--ink); }
@media (max-width: 860px) {
  .ftr { padding-block: 44px 28px; }
  .ftr-top { gap: 18px; padding-bottom: 28px; }
  .ftr-id { gap: 14px; }
  .ftr-id img { height: 60px; }
  .ftr-id p { max-width: 34ch; line-height: 1.6; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding-block: 0; }
  .ftr-cols > div { padding-block: 24px; }
  .ftr-cols > div:nth-child(1), .ftr-cols > div:nth-child(2) { grid-column: auto; order: 0; }
  .ftr-cols > div:nth-child(4) { grid-column: auto; order: 1; border-top: 1px solid var(--line); }
  .ftr-cols > div:nth-child(3) { grid-column: auto; order: 2; border-top: 1px solid var(--line); }
  .ftr-cols address, .ftr-cols address a { overflow-wrap: break-word; }
  .ftr-cols h2 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; }
  .ftr-cols ul, .ftr-cols address { gap: 7px; line-height: 1.45; }
  .ftr-cols address > * { margin: 0; }
  .ftr-cols > div:nth-child(1), .ftr-cols > div:nth-child(2) { padding-top: 26px; }
  .ftr-bot { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 20px; padding-bottom: 0; }
}

/* Header on phones: Facebook and Instagram in place of the Enquire button
   Enquiry forms stay on the contact and project pages. */
.hdr-soc { display: none; }
@media (max-width: 860px) {
  .hdr .hdr-enq { display: none; }
  .hdr-soc { display: inline-flex; align-items: center; gap: 2px; }
  .hdr-soc a { width: 38px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--indigo); }
  .hdr-soc svg { width: 19px; height: 19px; }
  .hdr-soc a:active { opacity: .6; }
}
@media (max-width: 430px) {
  .ftr-cols { gap: 0 16px; }
  .ftr-cols address { font-size: .8rem; }
}

/* Hero slider: a heading per slide, crossfading with the photo */
.hero-copies { display: grid; width: 100%; justify-items: center; }
.hero-copy { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 26px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease, visibility .9s; }
.hero-copy.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-text .hero-h { margin: 0; color: inherit; font: 500 clamp(2.1rem, 1.1rem + 3.4vw, 4.4rem)/1.08 var(--serif); letter-spacing: .06em; text-transform: uppercase; max-width: 24ch; text-shadow: 0 2px 28px rgba(0,0,0,.35); }
@media (max-aspect-ratio: 5/4) { .hero-copy { gap: 18px; } }
@media (max-width: 860px) {
  .hero-copy { gap: 16px; }
  .hero-text .hero-h { font-size: clamp(1.6rem, 1rem + 3.4vw, 2.8rem); max-width: none; letter-spacing: .04em; }
  .hero-text .hero-h span { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hero-copy { transition: none; transform: none; } }

/* Leadership on phones: full-width portraits instead of small centred ones */
@media (max-width: 860px) {
  .leader .leader-pic, .leader:nth-child(even) .leader-pic { width: 100%; max-width: 440px; }
  .leader, .leader:nth-child(even) { gap: 22px; padding-block: 36px; }
}

/* Hero text at the bottom of the photo: project name, then its tagline, over a soft shade */
.hero--bottom::before { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(16, 15, 34, .72) 0%, rgba(16, 15, 34, .38) 45%, rgba(16, 15, 34, 0) 100%); transition: opacity .8s ease; }
.hero--bottom::after { background: rgba(20, 20, 30, .08); }
.hero--bottom.is-video::before { opacity: 0; }
.hero--bottom .hero-text { justify-content: flex-end; align-items: flex-start; text-align: left; padding-top: 0; padding-bottom: clamp(48px, 8vh, 96px); gap: 28px; padding-left: max(var(--gut), calc((100% - 1240px) / 2)); padding-right: max(var(--gut-r), calc((100% - 1240px) / 2)); }
.hero--bottom .hero-copies { justify-items: start; }
.hero--bottom .hero-copy { align-items: flex-start; gap: 14px; }
.hero--bottom .hero-text p { letter-spacing: .3em; font-size: .74rem; opacity: .92; }
.hero--bottom .hero-text .hero-h, .hero--bottom .hero-text h1 { text-transform: none; letter-spacing: .005em; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1.1; max-width: 26ch; text-shadow: 0 2px 22px rgba(0, 0, 0, .35); }
.hero--bottom .hero-text .btn { margin: 0; }
@media (max-aspect-ratio: 5/4) { .hero--bottom .hero-text { padding-bottom: clamp(40px, 7vh, 80px); } .hero--bottom .hero-text .btn { margin: 0; } }
@media (max-width: 860px) {
  .hero--bottom .hero-text { justify-content: flex-end; padding-bottom: 36px; gap: 0; }
  .hero--bottom .hero-copy { gap: 10px; }
  .hero--bottom .hero-text p { font-size: .66rem; letter-spacing: .24em; }
  .hero--bottom .hero-text .hero-h, .hero--bottom .hero-text h1 { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.2rem); max-width: 18ch; }
  .hero--bottom .hero-text .hero-h span { display: inline; }
}

/* Hero text: bottom of the photo, centred, with room so nothing is cut */
.hero--bottom .hero-text { align-items: center; text-align: center; padding-bottom: clamp(56px, 9vh, 104px); }
.hero--bottom .hero-copies { justify-items: center; }
.hero--bottom .hero-copy { align-items: center; }
.hero--bottom .hero-text .hero-h, .hero--bottom .hero-text h1 { line-height: 1.2; padding-bottom: .08em; text-wrap: balance; margin-inline: auto; }
@media (max-width: 860px) {
  .hero--bottom .hero-text { padding-bottom: calc(56px + max(0px, 614px - 100svh) + env(safe-area-inset-bottom, 0px)); padding-left: 20px; padding-right: 20px; }
  .hero--bottom .hero-text .hero-h, .hero--bottom .hero-text h1 { max-width: 22ch; }
  .hero--bottom::before { height: 70%; }
}

/* Closing banner: photo always fills the whole band (works for <img> as well as <picture>) */
.aclose > img, .aclose > picture, .aclose > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.aclose::after { background: linear-gradient(180deg, rgba(20,20,40,.45) 0%, rgba(20,20,40,.62) 100%); }

/* About cards: a plain <img> (single-size photo) fills the card like a <picture> does,
   so the number stays at the top and the text sits at the bottom with proper space. */
.acard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acard-n { margin-bottom: 18px; }

/* Our Story photo below the text: keep the photo's own shape (no forced crop/upscale);
   on phones give a wide photo a little more height so it doesn't become a thin strip. */
.story-fig .media { aspect-ratio: auto; }
.story-fig img { height: auto; }
@media (max-width: 860px) {
  .story-fig .media { aspect-ratio: 2 / 1; }
  .story-fig img { height: 100%; object-fit: cover; object-position: 50% 50%; }
}
/* Who We Are cards: all three on a background photo, darker towards the text so it always reads clearly */
.acard:not(.acard--ink)::after { background: linear-gradient(to top, rgba(16, 15, 34, .88) 0%, rgba(16, 15, 34, .55) 45%, rgba(16, 15, 34, .22) 100%); }

/* ---------- Responsive polish (all pages) ---------- */
/* Specifications: between tablet and small laptop the two-column list got cramped; stack label over text there */
@media (min-width: 861px) and (max-width: 1100px) {
  .specs div { grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; }
}
.specs dt, .specs dd, .hl li { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  /* Small uppercase labels: keep them readable on phones (min ~11px) */
  .tm span { font-size: .7rem; letter-spacing: .08em; }
  .sv-meta p { font-size: .66rem; letter-spacing: .1em; }
  .vg-name small { font-size: .68rem; }
  .lp-card p { font-size: .72rem; }
}

@media (max-width: 860px) {
  /* Bigger touch areas for links without changing the layout */
  .ftr ul a, .ftr address a, .cinfo a, .text-link { padding-block: 8px; margin-block: -8px; }
  .ftr ul a, .ftr address a { display: inline-block; }
  .ptab { padding-top: 10px; min-height: 44px; }
}
@media (max-width: 600px) {
  .sv-meta p { font-size: .7rem; }
  .gstats span, .gstat span { font-size: .72rem; }
}
@media (max-width: 860px) {
  .crumbs a, main a[href^="tel:"], main a[href^="mailto:"], .text-link { display: inline-block; padding-block: 8px; margin-block: -8px; }
}
@media (max-width: 860px) { .specs div { align-content: start; } }

/* Projects page: Commercial / Residential / Lifestyle bands sit closer together (admin "Spacing" still overrides) */
.sec--cat { padding-block: clamp(48px, 5.5vw, 84px); }

/* Section spacing: a little tighter everywhere so pages don't feel empty between sections */
:root { --sec: clamp(64px, 6.6vw, 104px); }
@media (max-width: 600px) { :root { --sec: 56px; } }

/* CSR banner: only the foundation photos, edge to edge under the header, shown uncropped at close to their
   real size (the originals are only ~290px wide, so a tall stretched banner made them blurry and cut). */
.csr-hero { height: auto; background: none; padding-top: 66px; overflow: hidden; }
.csr-hero .cm { position: relative; inset: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; gap: 3px; }
.csr-hero .cm-cell { aspect-ratio: 8 / 5; }
.csr-hero .cm-cell img { object-fit: cover; }
.csr-hero { position: relative; color: #fff; }
/* Title sits on the photos, at the bottom, over a soft dark fade so it reads clearly */
.csr-hero::after { display: block; top: 66px; background: linear-gradient(to top, rgba(16, 15, 34, .78) 0%, rgba(16, 15, 34, .35) 45%, rgba(16, 15, 34, 0) 80%); }
.csr-hero-text { position: absolute; inset: 66px 0 0 0; padding-bottom: clamp(18px, 2.4vw, 30px); display: flex; align-items: flex-end; }
.csr-hero-text .wrap { gap: 8px; }
.csr-hero h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.csr-hero p { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.csr-hero .crumbs, .csr-hero .crumbs a { color: rgba(255, 255, 255, .88); }
.csr-hero .crumbs [aria-current] { color: #fff; background: none; }
@media (max-width: 860px) {
  .csr-hero .cm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .csr-hero { padding-top: 62px; }
  .csr-hero::after { top: 62px; }
  .csr-hero-text { top: 62px; }
}

/* "Fit" page banners (e.g. Projects): on phones and tablets the wide photo sits right under the header in a
   moderately tall frame (little enlargement, so it stays sharp) and the title is set on the photo. */
@media (max-width: 860px) {
  .phero-fit { padding-top: 66px; }
  .phero-fit .phero { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
  .phero-fit .phero .media img { object-position: 50% 50% !important; }
  .phero-fit .phero::after { background: linear-gradient(to top, rgba(16, 15, 34, .8) 0%, rgba(16, 15, 34, .38) 50%, rgba(16, 15, 34, .05) 100%); }
  .phero-fit .phero-text { padding-bottom: 20px; }
  .phero-fit .phero-text .wrap { gap: 8px; }
  .phero-fit .phero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.4rem); }
  .phero-fit .phero .kicker { font-size: .66rem; }
  /* text near the bottom edge must not wait for a scroll animation that never fires */
  .phero-fit .phero-text .sr-up { opacity: 1 !important; transform: none !important; }
  .phero-fit .phero-meta { font-size: .66rem; letter-spacing: .14em; }
}
@media (max-width: 600px) { .phero-fit { padding-top: 62px; } .phero-fit .phero { aspect-ratio: 16 / 10; } }

/* CSR gallery: a card that holds several photos (album) */
.jd .media { position: relative; }
.jd-count { position: absolute; right: 8px; bottom: 8px; padding: 5px 9px; font: 500 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #fff; background: rgba(20, 20, 40, .72); }
.jd-cap--name { font-size: 1.1rem; line-height: 1.25; text-transform: none; }
@media (max-width: 600px) { .jd-cap--name { font-size: .98rem; } }

/* Photo pop-up: solid dark background so the page behind does not show through */
.lightbox { background: #121216; }

/* Page banners: a soft dark fade behind the title (bottom-left) so white text reads on light photos too */
.phero::after { background: linear-gradient(to top, rgba(16, 15, 34, .72) 0%, rgba(16, 15, 34, .3) 45%, rgba(16, 15, 34, .08) 75%), linear-gradient(to right, rgba(16, 15, 34, .35) 0%, rgba(16, 15, 34, 0) 55%); }

/* Light page banner (Contact): bright photo, title in the brand indigo on the calm right-hand side */
.phero.phero--light::after { background: linear-gradient(to right, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .25) 40%, rgba(255, 255, 255, 0) 60%); }
.phero--light .phero-text .wrap { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.phero--light, .phero--light h1, .phero--light .kicker, .phero--light .phero-meta, .phero--light .crumbs, .phero--light .crumbs a { color: var(--indigo, #292666); text-shadow: none; }
.phero--light h1 em { color: var(--indigo, #292666); }
.phero--light .crumbs [aria-current] { color: var(--ink, #1C1C1E); }
@media (max-width: 860px) {
  .phero.phero--light::after { background: linear-gradient(to top, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 38%, rgba(255, 255, 255, 0) 65%); }
  .phero--light .phero-text .wrap { align-items: flex-start; text-align: left; }
  .phero--light .media img { object-position: 78% 50% !important; }
}

/* ==========================================================================
   Founder / Executive Section Typography Refinement
   Premium, elegant corporate look with refined serif headings & name,
   clean modern sans-serif designation & description, and #2A296A brand accents.
   ========================================================================== */
.msg {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.msg--rev .msg-pic { order: 2; }
.msg-pic .media { aspect-ratio: 4 / 5; }
.msg-text {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 26px);
}

/* Kicker & Main Heading */
.msg .kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.02rem + 0.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink, #1C1C1E);
}
.msg .kicker b {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: italic 600 clamp(1.1rem, 0.98rem + 0.35vw, 1.35rem)/1 var(--serif);
  letter-spacing: 0.02em;
  color: #2A296A;
}
.msg .kicker b::after {
  content: "";
  width: 32px;
  height: 1.5px;
  background: #2A296A;
  opacity: 0.5;
}
.msg .hd {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink, #1C1C1E);
}

/* Description: clean, modern sans-serif with high readability */
.msg blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.98rem, 0.93rem + 0.22vw, 1.1rem);
  line-height: 1.8;
  letter-spacing: -0.005em;
  color: #333338;
  padding: 4px 0 4px clamp(20px, 2.5vw, 28px);
  border-left: 3px solid #2A296A;
}
.msg blockquote p {
  margin: 0;
}
.msg blockquote em,
.msg .prose em {
  font-style: normal;
  color: #2A296A;
  font-weight: 500;
}
.msg blockquote strong,
.msg .prose strong {
  font-weight: 600;
  color: var(--ink, #1C1C1E);
}
.msg .prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.98rem, 0.93rem + 0.22vw, 1.1rem);
  line-height: 1.8;
  letter-spacing: -0.005em;
  color: #333338;
}

/* Founder / Leader Attribution */
.msg-by {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-left: clamp(20px, 2.5vw, 28px);
  border-left: 3px solid transparent;
}
.msg-by strong {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink, #1C1C1E);
  -webkit-font-smoothing: antialiased;
}
.msg-by span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(0.76rem, 0.7rem + 0.15vw, 0.86rem);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2A296A;
}

/* Responsive refinements for Chairman and Managing Director sections */
@media (max-width: 860px) {
  .msg,
  .msg--rev {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    width: 100%;
    gap: clamp(24px, 4.5vw, 36px);
    align-items: stretch;
  }
  .msg-pic,
  .msg--rev .msg-pic {
    order: 1;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }
  .msg-pic .media {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: #E9E8E3;
  }
  .msg-pic .media picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .msg-pic .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .msg-text,
  .msg--rev .msg-text {
    order: 2;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .msg blockquote {
    padding-left: 18px;
    border-left-width: 2.5px;
    line-height: 1.72;
  }
  .msg-by {
    padding-left: 18px;
    border-left-width: 2.5px;
  }
}

@media (max-width: 600px) {
  .msg,
  .msg--rev {
    gap: clamp(20px, 4vw, 28px);
  }
  .msg-pic,
  .msg--rev .msg-pic {
    max-width: 100%;
    margin-inline: 0;
  }
  .msg-pic .media {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: min(72svh, 480px);
  }
  .msg-text,
  .msg--rev .msg-text {
    gap: 16px;
  }
  .msg .kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.92rem, 0.85rem + 0.35vw, 1.15rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  .msg .kicker b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.15rem);
  }
  .msg .kicker b::after {
    width: 20px;
    height: 1.5px;
  }
  .msg .hd {
    font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.15rem);
    line-height: 1.16;
    letter-spacing: -0.015em;
  }
  .msg blockquote {
    padding-left: 14px;
    border-left-width: 2.5px;
    font-size: clamp(0.92rem, 0.88rem + 0.2vw, 0.98rem);
    line-height: 1.72;
    gap: 14px;
  }
  .msg .prose {
    font-size: clamp(0.92rem, 0.88rem + 0.2vw, 0.98rem);
    line-height: 1.72;
    gap: 14px;
  }
  .msg-by {
    padding-left: 14px;
    border-left-width: 2.5px;
    gap: 4px;
    margin-top: 4px;
  }
  .msg-by strong {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
  }
  .msg-by span {
    font-size: clamp(0.68rem, 0.64rem + 0.15vw, 0.78rem);
    line-height: 1.4;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 400px) {
  .msg,
  .msg--rev {
    gap: 18px;
  }
  .msg-text,
  .msg--rev .msg-text {
    gap: 14px;
  }
  .msg blockquote {
    padding-left: 12px;
    border-left-width: 2px;
    font-size: 0.92rem;
    line-height: 1.68;
    gap: 12px;
  }
  .msg .prose {
    font-size: 0.92rem;
    line-height: 1.68;
    gap: 12px;
  }
  .msg-by {
    padding-left: 12px;
    border-left-width: 2px;
  }
  .msg-by strong {
    font-size: 1.35rem;
  }
  .msg-by span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .msg .hd {
    font-size: 1.6rem;
  }
  .msg .kicker {
    font-size: 0.92rem;
    gap: 8px;
  }
  .msg .kicker b::after {
    width: 16px;
  }
}

/* ==========================================================================
   Page Intro with Background Image & Overlay
   Dynamic background image, #2A296A brand overlay with variable opacity,
   and responsive positioning for desktop, tablet, and mobile.
   ========================================================================== */
.pintro {
  position: relative;
}
.pintro--has-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: none;
  color: #FFFFFF;
  background-color: #1E1C4F;
}
.pintro--has-bg .pintro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  transition: background-position 0.3s ease, background-size 0.3s ease;
  pointer-events: none;
}
.pintro--has-bg .pintro-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}
.pintro--has-bg .wrap {
  position: relative;
  z-index: 2;
}
.pintro--has-bg .crumbs ol {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.pintro--has-bg .crumbs a {
  color: #FFFFFF;
}
.pintro--has-bg .crumbs a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.pintro--has-bg .kicker {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.pintro--has-bg .kicker b {
  color: #FFFFFF;
}
.pintro--has-bg h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.pintro--has-bg h1 em {
  color: #D6D4FF;
  font-style: italic;
}
.pintro--has-bg .muted {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Background sizing */
.pintro-size-cover .pintro-bg {
  background-size: cover !important;
}
.pintro-size-contain .pintro-bg {
  background-size: contain !important;
}

/* Responsive background positioning for desktop, tablet, and mobile */
.pintro-pos-center .pintro-bg {
  background-position: center center !important;
}
.pintro-pos-left .pintro-bg {
  background-position: left center !important;
}
.pintro-pos-right .pintro-bg {
  background-position: right center !important;
}

@media (max-width: 1024px) {
  .pintro-pos-left .pintro-bg {
    background-position: 20% center !important;
  }
  .pintro-pos-right .pintro-bg {
    background-position: 80% center !important;
  }
}
@media (max-width: 860px) {
  .pintro--has-bg {
    padding-top: calc(120px + env(safe-area-inset-top, 0px));
    padding-bottom: clamp(48px, 6vw, 72px);
  }
  .pintro-pos-left .pintro-bg {
    background-position: 30% center !important;
  }
  .pintro-pos-right .pintro-bg {
    background-position: 70% center !important;
  }
}
@media (max-width: 480px) {
  .pintro--has-bg {
    padding-top: calc(105px + env(safe-area-inset-top, 0px));
    padding-bottom: 42px;
  }
}


/* ==========================================================================
   CSR Activities Gallery Redesign & Lightbox
   Clean 3-column grid on desktop, 2-column on tablet, 1-column on mobile.
   Album-wise modal lightbox with counters, captions, navigation & swipe.
   ========================================================================== */

.csr-gallery-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(48px, 6vw, 76px);
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line, #E3E2DE);
}
.csr-gallery-intro-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.csr-gallery-intro-desc {
  font-size: 0.96rem;
  max-width: 65ch;
  line-height: 1.6;
}

/* 3-Column Desktop Grid - Large 4:3 Image Display */
.csr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 2.6vw, 36px);
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

/* Album Card */
.csr-album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line, #E3E2DE);
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 20, 40, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  appearance: none;
  -webkit-appearance: none;
}
.csr-album-card:focus-visible {
  outline: 2px solid var(--indigo, #292666);
  outline-offset: 4px;
}
.csr-album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(41, 38, 102, 0.12);
  border-color: rgba(41, 38, 102, 0.35);
}

/* Card Media: Consistent 4:3 Aspect Ratio & Clear Proportions */
.csr-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 230px;
  background: #ECEBF3;
  overflow: hidden;
}
.csr-card-media picture,
.csr-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.csr-album-card:hover .csr-card-media img {
  transform: scale(1.06);
}

/* Hover Overlay */
.csr-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 45, 0.72) 0%, rgba(20, 19, 45, 0.15) 55%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.csr-album-card:hover .csr-card-overlay {
  opacity: 1;
}
.csr-card-view-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--indigo, #292666);
  padding: 10px 20px;
  border-radius: 999px;
  font: 600 0.72rem/1 var(--sans, "Manrope");
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transform: translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.csr-album-card:hover .csr-card-view-pill {
  transform: translateY(0);
}

/* Card Badges (Count & Year) on the image */
.csr-card-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(20, 19, 45, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font: 600 0.68rem/1 var(--sans, "Manrope");
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 3;
  pointer-events: none;
}
.csr-card-count svg {
  color: #ECEBF3;
}
.csr-card-year {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--indigo, #292666);
  color: #FFFFFF;
  font: 600 0.72rem/1 var(--sans, "Manrope");
  letter-spacing: 0.08em;
  border-radius: 3px;
  z-index: 3;
  pointer-events: none;
}

/* Card Body directly below the image */
.csr-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 22px 22px;
  background: #FFFFFF;
  gap: 9px;
}
.csr-card-kicker {
  font: 600 0.68rem/1 var(--sans, "Manrope");
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo, #292666);
}
/* Album Title - Clearly visible by default */
.csr-card-title {
  font-family: var(--serif, "Cormorant Garamond");
  font-size: clamp(1.28rem, 1.15rem + 0.35vw, 1.52rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink, #1C1C1E);
  margin: 0;
  transition: color 0.25s ease;
  display: block;
  visibility: visible;
}
.csr-album-card:hover .csr-card-title {
  color: var(--indigo, #292666);
}
.csr-card-desc {
  font: 400 0.88rem/1.55 var(--sans, "Manrope");
  color: var(--ink-2, #5C5C62);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.csr-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line, #E3E2DE);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 0.74rem/1 var(--sans, "Manrope");
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo, #292666);
}
.csr-card-action i {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}
.csr-album-card:hover .csr-card-action i {
  transform: translateX(4px);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .csr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}
@media (max-width: 680px) {
  .csr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .csr-card-body {
    padding: 16px 16px 18px;
  }
  .csr-card-title {
    font-size: 1.15rem;
  }
}
@media (max-width: 540px) {
  .csr-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .csr-card-body {
    padding: 18px 20px 20px;
  }
}

/* ==========================================================================
   Premium Lightbox Modal Improvements
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 13, 26, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  color: #FFFFFF;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.lightbox-top [data-lightbox-caption] {
  font-family: var(--serif, "Cormorant Garamond");
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 60%;
}
.lightbox-top [data-lightbox-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--sans, "Manrope");
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 14px;
}
.lightbox-top [data-lightbox-close] {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}
.lightbox-top [data-lightbox-close]:hover {
  background: #FFFFFF;
  color: #14132D;
  transform: scale(1.08);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.lightbox-stage img {
  max-height: min(78vh, 880px);
  max-width: min(92vw, 1340px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .lightbox-nav {
    position: static;
  }
  .lightbox-nav [data-lightbox-prev],
  .lightbox-nav [data-lightbox-next] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(20, 19, 45, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
  }
  .lightbox-nav [data-lightbox-prev] {
    left: clamp(16px, 3.2vw, 44px);
  }
  .lightbox-nav [data-lightbox-next] {
    right: clamp(16px, 3.2vw, 44px);
  }
  .lightbox-nav [data-lightbox-prev]:hover,
  .lightbox-nav [data-lightbox-next]:hover {
    background: var(--indigo, #292666);
    border-color: var(--indigo, #292666);
    transform: translateY(-50%) scale(1.1);
  }
}

@media (max-width: 767px) {
  .lightbox {
    padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(14px, env(safe-area-inset-bottom, 0px)) 16px;
    gap: 8px;
  }
  .lightbox-top {
    min-height: 42px;
    padding-bottom: 8px;
  }
  .lightbox-top [data-lightbox-caption] {
    font-size: 0.98rem;
    max-width: 50%;
  }
  .lightbox-top [data-lightbox-count] {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-right: 8px;
  }
  .lightbox-top [data-lightbox-close] {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .lightbox-stage img {
    max-height: calc(72vh - 50px);
    max-width: 96vw;
  }
  .lightbox-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 6px;
  }
  .lightbox-nav [data-lightbox-prev],
  .lightbox-nav [data-lightbox-next] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}
