.tabib-gallery-page {
  --gallery-deep: #063f42;
  --gallery-teal: #087b77;
  --gallery-aqua: #65cfc2;
  --gallery-muted: #5b7978;
  min-height: 100vh;
  margin: 0;
  color: var(--gallery-deep);
  background: radial-gradient(circle at 12% 7%, rgba(201, 241, 223, .87), transparent 26rem), radial-gradient(circle at 89% 22%, rgba(239, 234, 178, .5), transparent 26rem), #f5fbf8;
}

.tabib-gallery-page * { box-sizing: border-box; }
.gallery-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(18px, 5vw, 78px); border-bottom: 1px solid rgba(18, 126, 119, .14); background: rgba(248, 255, 252, .86); box-shadow: 0 10px 25px rgba(6, 78, 73, .06); backdrop-filter: blur(18px); }
.gallery-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--gallery-deep); text-decoration: none; }
.gallery-brand-logo { display: grid; place-items: center; width: 48px; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(22, 136, 132, .25); border-radius: 50%; background: linear-gradient(145deg, #fff, #d5f3ed); box-shadow: inset 0 1px rgba(255,255,255,.95), 0 8px 18px rgba(8,87,83,.12); }
.gallery-brand-logo img { width: 43px; height: 43px; object-fit: contain; }
.gallery-brand > span:last-child { display: grid; gap: 1px; line-height: 1.35; }
.gallery-brand strong { font-size: .9rem; }
.gallery-brand small { color: var(--gallery-muted); font-size: .67rem; }
.gallery-nav { display: flex; align-items: center; gap: 5px; }
.gallery-nav a { padding: 8px 11px; border-radius: 10px; color: #356363; font-size: .8rem; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.gallery-nav a:hover { background: #e5f6f1; color: var(--gallery-teal); transform: translateY(-1px); }
.gallery-nav-cta { border: 1px solid var(--gallery-teal); background: var(--gallery-teal); color: #fff !important; box-shadow: 0 8px 18px rgba(11,104,103,.16); }

.gallery-main { width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: clamp(34px, 6vw, 72px) 0 80px; }
.gallery-hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 7vw, 95px); overflow: hidden; padding: clamp(34px, 6vw, 74px); border-radius: 36px; background: linear-gradient(128deg, #063f42, #0b6e6c 62%, #168d82); color: #fff; box-shadow: 0 25px 52px rgba(4,72,71,.2); }
.gallery-hero::before { position: absolute; right: -110px; top: -170px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(192,232,139,.3), transparent 68%); content: ""; }
.gallery-hero-copy { position: relative; z-index: 1; }
.gallery-eyebrow { color: #c4f0e5; font-size: .78rem; font-weight: 800; }
.gallery-eyebrow-dark { color: var(--gallery-teal); }
.gallery-hero h1 { margin: 14px 0 17px; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.35; letter-spacing: -.035em; }
.gallery-hero h1 em { color: #c8e995; font-style: normal; }
.gallery-hero p { max-width: 640px; margin: 0; color: #dbf4ed; font-size: clamp(.89rem, 1.2vw, 1.05rem); line-height: 2; }
.gallery-hero-mark { position: relative; display: grid; place-items: center; min-height: 290px; }
.gallery-hero-mark span { position: absolute; width: 280px; height: 280px; border: 1px solid rgba(219,255,246,.3); border-radius: 50%; transform: rotate(-22deg) scaleX(1.14); }
.gallery-hero-mark::before { position: absolute; width: 365px; height: 165px; border: 1px solid rgba(219,255,246,.18); border-radius: 50%; content: ""; transform: rotate(-38deg); }
.gallery-hero-mark img { position: relative; z-index: 1; width: min(215px, 70%); padding: 18px; border: 1px solid rgba(232,255,249,.65); border-radius: 50%; background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.82), rgba(185,247,237,.2) 42%, rgba(3,67,70,.47)); box-shadow: inset 0 2px rgba(255,255,255,.76), 0 20px 35px rgba(0,38,40,.25); }

.gallery-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 8vw, 100px); align-items: end; padding: clamp(52px, 8vw, 92px) clamp(8px, 3vw, 38px) 32px; }
.gallery-intro h2 { max-width: 520px; margin: 9px 0 0; color: var(--gallery-deep); font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.55; }
.gallery-intro p { max-width: 600px; margin: 0; color: var(--gallery-muted); font-size: .95rem; line-height: 2.05; }
.gallery-grid { display: grid; grid-template-columns: 1.22fr .78fr; grid-auto-rows: minmax(215px, 255px); gap: 17px; }
.gallery-card { position: relative; overflow: hidden; min-height: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: #0a3839; box-shadow: 0 15px 30px rgba(13,84,77,.11); }
.gallery-card-large { grid-row: span 2; }
.gallery-card-wide { grid-column: span 2; }
.gallery-image-button { display: block; width: 100%; height: 100%; min-height: 100%; padding: 0; border: 0; background: #0a3839; color: #fff; cursor: zoom-in; }
.gallery-image-button img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; opacity: .9; transition: transform .5s ease, opacity .3s ease; }
.gallery-image-button::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,37,38,.86), rgba(0,47,49,.04) 66%); content: ""; pointer-events: none; }
.gallery-image-button:hover img, .gallery-image-button:focus-visible img { opacity: 1; transform: scale(1.055); }
.gallery-image-button:focus-visible { outline: 3px solid #bff6d3; outline-offset: -3px; }
.gallery-zoom { position: absolute; top: 15px; left: 15px; z-index: 2; padding: 7px 10px; border: 1px solid rgba(255,255,255,.48); border-radius: 10px; background: rgba(6,57,58,.55); color: #fff; font-size: .68rem; font-weight: 800; opacity: 0; transform: translateY(-4px); transition: opacity .22s, transform .22s; }
.gallery-zoom b { margin-inline-start: 4px; font-size: .9rem; }
.gallery-image-button:hover .gallery-zoom, .gallery-image-button:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-card-copy { position: absolute; right: 22px; left: 22px; bottom: 18px; z-index: 2; color: #fff; pointer-events: none; }
.gallery-card-copy span { color: #d9ffeb; font-size: .68rem; font-weight: 800; }
.gallery-card-copy h3 { max-width: 560px; margin: 5px 0 0; font-size: clamp(.92rem, 1.55vw, 1.42rem); line-height: 1.65; }
.gallery-callout { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: clamp(48px, 7vw, 84px); padding: clamp(26px, 5vw, 50px); border-radius: 28px; background: linear-gradient(125deg, #e6f7f0, #e4f2d5); box-shadow: 0 17px 35px rgba(11,91,83,.1); }
.gallery-callout h2 { margin: 8px 0 7px; color: var(--gallery-deep); font-size: clamp(1.3rem, 2.5vw, 2rem); }
.gallery-callout p { max-width: 670px; margin: 0; color: var(--gallery-muted); font-size: .86rem; line-height: 1.9; }
.gallery-callout a { display: inline-flex; align-items: center; gap: 15px; flex: 0 0 auto; padding: 13px 16px; border-radius: 13px; background: var(--gallery-teal); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 800; box-shadow: 0 11px 22px rgba(8,96,91,.18); }
.gallery-callout a span { font-size: 1.2rem; }
.gallery-footer { display: flex; justify-content: space-between; gap: 18px; width: min(1200px, calc(100% - 36px)); margin: 0 auto; padding: 0 0 30px; color: var(--gallery-muted); font-size: .72rem; }
.gallery-footer a { color: var(--gallery-teal); text-decoration: none; }

.gallery-lightbox { width: min(940px, calc(100% - 28px)); max-width: none; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: #062f31; color: #fff; box-shadow: 0 32px 90px rgba(0,0,0,.45); }
.gallery-lightbox::backdrop { background: rgba(0,37,39,.77); backdrop-filter: blur(5px); }
.gallery-lightbox figure { display: grid; grid-template-rows: minmax(180px, 68vh) auto; margin: 0; }
.gallery-lightbox figure > img { width: 100%; height: 100%; max-height: 68vh; object-fit: contain; background: #031d1e; }
.gallery-lightbox figcaption { display: grid; gap: 5px; padding: 17px 22px 20px; }
.gallery-lightbox figcaption strong { color: #f6fff9; font-size: 1rem; }
.gallery-lightbox figcaption span { color: #bde4dc; font-size: .78rem; line-height: 1.8; }
.gallery-lightbox-close { position: absolute; z-index: 1; top: 12px; left: 12px; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; background: rgba(1,36,38,.66); color: #fff; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.gallery-lightbox-close:hover, .gallery-lightbox-close:focus-visible { background: #0d827d; outline: 2px solid #d5fff5; }

@media (max-width: 860px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-hero-mark { min-height: 210px; }
  .gallery-intro { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .gallery-card-large { grid-row: span 1; }
}
@media (max-width: 620px) {
  .gallery-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .gallery-nav { width: 100%; justify-content: space-between; gap: 2px; }
  .gallery-nav a { padding-inline: 7px; font-size: .7rem; }
  .gallery-main { width: min(100% - 24px, 540px); padding-top: 20px; }
  .gallery-hero { padding: 30px 22px; border-radius: 26px; }
  .gallery-hero-mark { min-height: 190px; }
  .gallery-hero-mark span { width: 205px; height: 205px; }
  .gallery-hero-mark::before { width: 275px; height: 128px; }
  .gallery-hero-mark img { width: 165px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-card-wide { grid-column: auto; }
  .gallery-card-copy h3 { font-size: 1rem; }
  .gallery-zoom { opacity: 1; transform: none; }
  .gallery-callout { display: block; }
  .gallery-callout a { margin-top: 20px; }
  .gallery-footer { width: min(100% - 24px, 540px); }
}
