:root {
  --paper: #f7faf9;
  --white: #ffffff;
  --navy: #142433;
  --navy-2: #1d3547;
  --text: #536674;
  --green: #17876f;
  --green-dark: #0f6654;
  --green-soft: #e6f3ee;
  --coral: #ff7a59;
  --coral-dark: #e85f3d;
  --coral-soft: #fff0eb;
  --line: rgba(20, 36, 51, 0.12);
  --font-display: 'Space Grotesk', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -32px rgba(20, 36, 51, 0.35);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: none; }
p { margin: 0 0 1rem; color: var(--text); }
h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5.8vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); letter-spacing: -.035em; }
h3 { font-size: 1.35rem; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; left: -9999px; top: 10px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--green-dark);
  font: 600 .75rem/1.2 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--coral); border-radius: 99px; }
.eyebrow-light { color: #bce8da; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 25px;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 .94rem/1 var(--font-body);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn .btn-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: scale(0);
  pointer-events: none;
  animation: btn-ripple .55s ease-out;
}
.btn-outline .btn-ripple, .btn-ghost .btn-ripple { background: rgba(23,135,111,.25); }
@keyframes btn-ripple { to { transform: scale(16); opacity: 0; } }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 14px 30px -15px rgba(232,95,61,.8); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { color: var(--navy); background: #fff; border-color: var(--line); box-shadow: 0 12px 28px -22px rgba(20,36,51,.45); }
.btn-ghost:hover { color: var(--green-dark); border-color: var(--green); }
.btn-outline { width: 100%; color: var(--green-dark); background: #fff; border-color: var(--green); }
.btn-outline:hover { color: #fff; background: var(--green); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0; background: rgba(247,250,249,.86); backdrop-filter: blur(14px); transition: padding .25s ease, box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { padding: 9px 0; background: rgba(247,250,249,.97); box-shadow: 0 14px 34px -26px rgba(20,36,51,.55); }
.main-nav a { position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--coral); border-radius: 99px; transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--green-dark); }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px 12px 10px 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 15px 42px -30px rgba(20,36,51,.65);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: flex; width: 43px; height: 43px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-title { color: var(--navy); font: 700 1.08rem var(--font-display); }
.brand-sub { color: var(--text); font-size: .66rem; }
.main-nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: .89rem; }
.main-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.call-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 .78rem var(--font-mono); white-space: nowrap; }
.call-pill:hover { background: var(--green-dark); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 2px; margin: 4px auto; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 20%, rgba(23,135,111,.12), transparent 34%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero::after { content: ''; position: absolute; right: -120px; top: 70px; width: 360px; height: 360px; border: 70px solid rgba(255,122,89,.06); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: var(--wrap); padding-top: clamp(64px, 8vw, 110px); }
.hero-inner > h1 { max-width: 920px; }
.hero em { color: var(--coral-dark); font-style: normal; }
.hero-lead { max-width: 760px; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font: 500 .8rem var(--font-mono); }
.hero-pulse { margin-top: 34px; }
.hero-pulse svg { display: block; width: 100%; height: 115px; }
.hero-band { position: relative; z-index: 2; background: var(--navy); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; color: #fff; font-weight: 600; }
.band-phones a { color: #fff; font: 600 .9rem var(--font-mono); }

/* Sections */
.about, .doctors, .timings, .contact { padding: clamp(72px, 9vw, 110px) 0; }
.about-inner { max-width: var(--wrap); }
.about-lead, .section-lead { max-width: 790px; font-size: 1.05rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.about-item { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.about-num { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font: 700 .78rem var(--font-mono); }
.about-item p { margin-bottom: 0; }

/* Doctors */
.doctors { background: #fff; }
.doctor-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 42px; }
.doctor-profile { --dept-accent: var(--green); --dept-soft: var(--green-soft); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.doctor-profile:hover { box-shadow: 0 30px 70px -30px rgba(20,36,51,.4); }
.doctor-profile.doctor-gyno { --dept-accent: var(--coral); --dept-soft: var(--coral-soft); }
.doctor-profile.doctor-physician { --dept-accent: var(--green); --dept-soft: var(--green-soft); }
.doctor-photo-wrap { position: relative; height: 330px; overflow: hidden; background: linear-gradient(145deg, var(--dept-soft), #fff); }
.doctor-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-photo-placeholder { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--dept-accent); }
.doctor-photo-placeholder span { display: grid; place-items: center; width: 104px; height: 104px; border: 3px solid var(--dept-accent); border-radius: 50%; background: #fff; font: 700 2.2rem var(--font-display); }
.doctor-photo-placeholder small { font-weight: 700; }
.doctor-content { padding: 31px; border-top: 5px solid var(--dept-accent); }
.department-label, .department-kicker { display: inline-block; margin-bottom: 11px; color: var(--dept-accent); font: 700 .73rem var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.doctor-credentials { margin-bottom: 3px; color: var(--navy); font-weight: 700; }
.doctor-specialty { margin-bottom: 17px; color: var(--dept-accent); font: 600 .79rem/1.5 var(--font-mono); }
.doctor-intro { margin: 0 0 22px; }
.doctor-services h4 { margin-bottom: 9px; font-size: 1rem; }
.doctor-services ul, .department-card ul { margin: 0 0 23px; padding-left: 20px; }
.doctor-services li, .department-card li { margin-bottom: 7px; }
.doctor-services li::marker, .department-card li::marker { color: var(--dept-accent); }
.doctor-timings { display: grid; gap: 8px; margin: 0 0 18px; padding: 16px 17px; border-radius: 14px; background: var(--dept-soft); }
.doctor-timings div { display: flex; justify-content: space-between; gap: 15px; }
.doctor-timings dt { color: var(--text); font-size: .86rem; }
.doctor-timings dd { margin: 0; color: var(--navy); font: 600 .82rem var(--font-mono); text-align: right; }

/* Services */
.services {
  position: relative;
  padding: clamp(74px, 9vw, 110px) 0;
  overflow: hidden;
  background: linear-gradient(135deg, #142433 0%, #1d3547 100%);
}
.services::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: -230px;
  right: -120px;
  border-radius: 50%;
  background: rgba(23,135,111,.12);
}
.services .wrap { position: relative; z-index: 1; }
.services-heading { max-width: 720px; margin-bottom: 40px; }
.services-heading h2 { color: #fff; }
.services-heading > p:last-child { color: rgba(255,255,255,.72); font-size: 1.03rem; }
.service-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.service-list-card {
  --service-accent: var(--green);
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(0,0,0,.17);
}
.service-list-card.service-gyno { --service-accent: var(--coral); }
.service-list-heading { display: flex; gap: 17px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.service-number { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; background: color-mix(in srgb, var(--service-accent) 14%, white); color: var(--service-accent); font: 700 .82rem var(--font-mono); }
.service-list-heading p { margin: 1px 0 5px; color: var(--service-accent); font: 700 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.service-list-heading h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.simple-service-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 24px; margin: 23px 0 0; padding: 0; list-style: none; }
.simple-service-list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; line-height: 1.45; }
.simple-service-list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--service-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--service-accent) 13%, white); }

/* Testimonials */
.testimonials { padding: clamp(74px, 9vw, 110px) 0; background: #fff; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-heading-row > div { max-width: 720px; }
.section-side-copy { max-width: 400px; margin: 0 0 8px; font-size: .92rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.testimonial-card { display: flex; flex-direction: column; min-height: 300px; padding: 29px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); transition: background .4s ease, border-color .4s ease, transform .4s ease; }
.testimonial-card.testimonial-featured { background: var(--navy); border-color: var(--navy); transform: translateY(-12px); }
.testimonial-card blockquote, .testimonial-author strong, .testimonial-author small { transition: color .4s ease; }
.testimonial-stars { margin-bottom: 22px; color: var(--coral); letter-spacing: .16em; }
.testimonial-card blockquote { flex: 1; margin: 0 0 28px; color: var(--navy); font: 600 1.04rem/1.75 var(--font-display); }
.testimonial-featured blockquote { color: #fff; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font: 700 .76rem var(--font-mono); }
.testimonial-author div { display: flex; flex-direction: column; }
.testimonial-author strong { color: var(--navy); font-size: .91rem; }
.testimonial-author small { color: var(--text); }
.testimonial-featured .testimonial-author strong { color: #fff; }
.testimonial-featured .testimonial-author small { color: rgba(255,255,255,.62); }

/* Gallery */
.gallery { padding: clamp(74px, 9vw, 110px) 0; background: linear-gradient(180deg, var(--paper), #edf5f2); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item { position: relative; grid-column: span 4; min-height: 270px; margin: 0; overflow: hidden; border-radius: 20px; background: #dce9e4; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption { position: absolute; left: 18px; bottom: 18px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(20,36,51,.78); backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: .82rem; }

/* Timings */
.timings-table { overflow: hidden; margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.t-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; align-items: center; min-height: 64px; padding: 15px 26px; border-bottom: 1px solid var(--line); }
.t-row:last-child { border-bottom: 0; }
.t-head { min-height: 52px; background: var(--green); color: #fff; font: 600 .75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.t-row:not(.t-head) span:first-child { font-weight: 700; }
.timings-closed { margin-top: 18px; color: var(--coral-dark); font: 600 .82rem var(--font-mono); }

/* Contact */
.contact { background: linear-gradient(135deg, var(--green-soft), #f8fcfa 65%); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,6vw,72px); align-items: start; }
.contact-lead { max-width: 520px; }
.contact-list { display: grid; gap: 17px; margin: 28px 0; padding: 0; list-style: none; }
.contact-list li { color: var(--navy); }
.contact-label { display: block; margin-bottom: 3px; color: var(--green-dark); font: 700 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.footer-link { font-weight: 700; }
.contact-form { padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.form-row label { color: var(--navy); font-size: .85rem; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--navy); font: 500 .94rem var(--font-body); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23,135,111,.1); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.3em; margin: 10px 0 0; font-size: .88rem; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: var(--coral-dark); }

/* Footer */
.site-footer { padding: 70px 0 92px; background: #0f1d28; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-brand .brand-sub { margin-bottom: 6px; }
.footer-note { color: rgba(255,255,255,.48); font-size: .78rem; }
.gallery-heading-row { margin-bottom: 40px; }
.site-footer .brand-title { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.62); }
.footer-tagline, .footer-col p { color: rgba(255,255,255,.67); }
.footer-social { display: flex; gap: 10px; margin-top: 17px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; }
.footer-social a:hover { background: var(--coral); border-color: var(--coral); }
.footer-col h3 { color: #78d1ba; font: 700 .76rem var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.48); font-size: .78rem; }

.mobile-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; gap: 8px; padding: 9px; border-radius: 999px; background: var(--navy); box-shadow: 0 18px 45px -18px rgba(20,36,51,.75); }
.mobile-cta a { flex: 1; min-height: 44px; padding: 11px 12px; font-size: .82rem; }
.mobile-cta .btn-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: .82rem; }
  .call-pill { padding-inline: 13px; }
  .call-pill svg { display: none; }
}

@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-inner { border-radius: 20px; }
  .main-nav { position: absolute; left: 0; right: 0; top: calc(100% + 9px); overflow: hidden; max-height: 0; border: 1px solid transparent; border-radius: 18px; background: #fff; box-shadow: 0 20px 45px -28px rgba(20,36,51,.55); transition: max-height .25s ease, border-color .25s ease; }
  .main-nav.is-open { max-height: 330px; border-color: var(--line); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; }
  .main-nav a { display: block; padding: 11px 13px; border-radius: 10px; font-size: .92rem; }
  .main-nav a:hover { background: var(--green-soft); }
  .nav-toggle { display: block; }
  .call-pill { display: none; }
  .about-grid, .doctor-profile-grid, .service-list-grid, .contact-inner, .footer-inner { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card.testimonial-featured { transform: none; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(4) { grid-column: span 6; }
  .doctor-photo-wrap { height: 300px; }
  .contact-inner { gap: 38px; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 115px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-header { padding: 9px 0; }
  .brand-sub { max-width: 165px; }
  .hero-inner { padding-top: 52px; }
  .hero-pulse svg { height: 78px; }
  .band-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 14px; }
  .doctor-content { padding: 24px; }
  .service-list-card { padding: 24px; }
  .simple-service-list { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: 1 / -1; min-height: 230px; }
  .doctor-photo-wrap { height: 260px; }
  .doctor-timings div { flex-direction: column; gap: 2px; }
  .doctor-timings dd { text-align: left; }
  .t-head { display: none; }
  .t-row { grid-template-columns: 1fr; gap: 6px; padding: 17px 20px; }
  .t-row span[data-label]::before { content: attr(data-label) ': '; color: var(--text); font: 600 .68rem var(--font-mono); text-transform: uppercase; }
  .footer-bottom { flex-direction: column; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); }
.back-to-top svg { width: 18px; height: 18px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(20, 36, 51, .92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  background: #fff;
  transform: scale(.96);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-caption { margin-top: 18px; color: #fff; font: 600 .95rem var(--font-mono); letter-spacing: .04em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close { top: 14px; right: 14px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
