@font-face {
  font-family: "Alberta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/roboto-regular-e3baed31.ttf") format("truetype");
}

@font-face {
  font-family: "Alberta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/roboto-bold-f2803d24.ttf") format("truetype");
}

@font-face {
  font-family: "Alberta Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/caveat-regular-c0a762f8.ttf") format("truetype");
}

:root {
  --color-ink: #082f38;
  --color-text: #284650;
  --color-muted: #53616a;
  --color-green: #19794e;
  --color-green-dark: #075b40;
  --color-aqua: #d3f0eb;
  --color-yellow: #ffe17d;
  --color-soft: #edf8f3;
  --color-surface: #ffffff;
  --radius: 18px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--color-text); background: #fff; font-family: "Alberta Sans", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #247b96; outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--color-ink); line-height: 1.15; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.3rem, 3.3vw, 3.05rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.85rem, 2.7vw, 2.5rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }
.container { width: min(100% - 96px, var(--max-width)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 50; padding: 0.8rem 1rem; color: #fff; background: var(--color-green-dark); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
#main-content:focus { outline: none; }
.site-header { position: relative; z-index: 10; background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 118px; }
.site-header__actions { display: flex; align-items: center; flex-shrink: 0; gap: 1rem; }
.site-header__cta { white-space: nowrap; }
.site-header__provider-logo { width: 88px; height: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; color: #06483e; text-decoration: none; }
.brand__mark { width: 54px; height: 66px; object-fit: contain; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.065em; }
.brand__tagline { font-size: 0.6rem; letter-spacing: -0.02em; margin-top: 0.3rem; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 2rem; font-size: 0.9rem; font-weight: 650; }
.site-nav a { position: relative; padding: 0.6rem 0; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--color-green-dark); }
.site-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--color-green); content: ""; }
.site-nav a:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: 0.4rem; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 50px; padding: 0.8rem 1.9rem; border: 1.5px solid transparent; border-radius: 100px; font-size: 1rem; font-weight: 650; line-height: 1.1; text-decoration: none; transition: background 160ms ease, box-shadow 160ms ease; }
.button span { font-size: 1.3rem; line-height: 1; }
.button--primary { color: #fff; background: linear-gradient(115deg, #21875a, #137047); }
.button--primary:hover { background: #085b3b; box-shadow: 0 5px 15px #075b401a; }
.button--secondary { color: var(--color-green-dark); background: #ffffffa6; border-color: var(--color-green); }
.button--secondary:hover { background: #e3f4e9; }
.button--yellow { color: #182c24; background: linear-gradient(120deg, #ffe58c, #ffdb65); font-size: 0.9rem; padding-inline: 1.7rem; }
.button--yellow:hover { background: #ffcf48; }
.button--small { min-height: 44px; padding: 0.6rem 1.7rem; }
.eyebrow { color: var(--color-green-dark); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 0.7rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 510px; background: #fff; }
.hero::before { position: absolute; z-index: -1; top: -155px; left: 49%; width: 300px; height: 210px; background: #d8eddd; border-radius: 50%; transform: rotate(-28deg); content: ""; }
.hero::after { position: absolute; z-index: -1; left: -110px; bottom: -165px; width: 600px; height: 230px; border-radius: 50%; transform: rotate(16deg); background: linear-gradient(105deg, #9fd9ab 0 25%, #d9edbd 25% 34%, #edf8e9 34%); content: ""; }
.hero__inner { min-height: 510px; display: flex; align-items: center; padding-block: 1.3rem 4rem; }
.hero__content { width: 46%; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 3.05vw, 2.85rem); line-height: 1.13; }
.hero__description { max-width: 490px; font-size: 1rem; line-height: 1.5; }
.hero__media { position: absolute; top: 0; bottom: 0; right: 0; width: 53%; overflow: hidden; border-radius: 45% 0 0 45% / 28% 0 0 54%; }
.hero__media::after { position: absolute; inset: 0; background: linear-gradient(90deg, #fff9, transparent 27%); content: ""; pointer-events: none; }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.hero__note { position: absolute; bottom: -45px; right: -30px; width: 295px; height: 205px; z-index: 1; padding: 55px 30px 10px 60px; background: linear-gradient(135deg, #fff8cc, #ffe58c); border-radius: 100% 0 0 0; transform: rotate(-10deg); }
.handwritten { color: #075046; font-family: "Alberta Hand", "Segoe Print", "Bradley Hand", cursive; font-size: 1.65rem; line-height: 1.1; font-weight: 400; }
.hero__note p { text-align: center; transform: rotate(3deg); }
.hero__note::after { position: absolute; top: 44px; right: 54px; width: 4px; height: 18px; border-radius: 4px; background: #f69542; box-shadow: 15px 12px #f69542; transform: rotate(35deg); content: ""; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.3rem; }
.hero__attributes { display: flex; list-style: none; padding: 0; margin: 1.7rem 0 0; gap: 0; font-size: 0.76rem; line-height: 1.3; }
.hero__attributes li { display: flex; align-items: center; gap: 0.8rem; padding-inline: 1.2rem; border-left: 1px solid #deebe6; }
.hero__attributes li:first-child { padding-left: 0; border-left: 0; }
.icon { display: inline-block; width: 32px; height: 32px; flex-shrink: 0; }
.hero__attributes .icon { color: #4b9c54; }
.intro-band { background: linear-gradient(115deg, #eff9f1, #ecf9f6); padding-block: 2.5rem; }
.intro-band__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.intro-band__copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.25rem); }
.intro-band__copy p:not(.eyebrow) { font-size: 0.98rem; line-height: 1.45; margin-bottom: 0.8rem; }
.intro-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.2rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { text-align: center; padding: 0 1.3rem; position: relative; }
.value-item + .value-item::before { position: absolute; top: 10px; bottom: 0; left: 0; width: 1px; background: #d3e6df; content: ""; }
.value-item h3 { margin-top: 0.8rem; font-size: 1.1rem; letter-spacing: -0.025em; }
.value-item p { font-size: 0.9rem; color: #3c5760; margin-bottom: 0; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; color: #278149; }
.icon-badge .icon { width: 42px; height: 42px; }
.icon-badge--mint { background: #d7f0d5; }
.icon-badge--aqua { background: #cbefeb; color: #1b9488; }
.icon-badge--yellow { background: #fff2b5; color: #578b43; }
.icon-badge--green { background: #248451; color: #fff; }
.section { padding-block: 4rem; }
.section--soft { background: var(--color-soft); }
.home-services { padding-block: 2rem 1.4rem; }
.section-heading { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.section-heading--row { max-width: none; margin-bottom: 1.25rem; text-align: left; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading--row .eyebrow { color: #0b4c4c; }
.section-heading--row .text-link { flex-shrink: 0; margin-bottom: 0.4rem; border-bottom: 1px solid #89b9a3; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; color: var(--color-green-dark); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.text-link span { font-size: 1.3rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-grid, .two-column, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.two-column, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sil-upcoming-locations { margin-top: 2rem; }
.service-card, .value-panel, .contact-card, .program-list article { padding: 1.8rem; background: #fff; border: 1px solid #e0e8e4; border-radius: var(--radius); }
.service-card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card__image { width: 100%; height: 165px; object-fit: cover; }
.service-card__body { position: relative; padding: 1.3rem 1.5rem 1.15rem; display: flex; flex-direction: column; flex-grow: 1; background: #fff; border-radius: 16px 16px 0 0; margin-top: -12px; }
.service-card__body h3 { font-size: 1.16rem; margin-bottom: 0.6rem; }
.service-card__body p { font-size: 0.97rem; color: var(--color-muted); line-height: 1.45; margin-bottom: 0.7rem; }
.service-card__body .text-link { margin-top: auto; align-self: start; }
.service-card__badge { width: 68px; height: 68px; border: 5px solid #fff; position: relative; margin-top: -73px; margin-bottom: 0.6rem; }
.service-card__badge .icon { width: 32px; height: 32px; }
.service-card__badge.icon-badge--aqua { background: #79c9c7; color: #fff; }
.service-card__badge.icon-badge--yellow { background: #ffe388; color: #125767; }
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: 2.6rem; background: #edf8f3; border-radius: 50% 50% 0 0 / 12% 12% 0 0; }
.cta-band::before { position: absolute; z-index: -1; left: -85px; top: 0; width: 210px; height: 260px; background: linear-gradient(30deg, #a6dcb6 40%, #d5efcf 40% 65%, #e8f6e3 65%); border-radius: 0 100% 0 0; transform: rotate(-15deg); content: ""; }
.cta-band::after { position: absolute; left: 85px; bottom: -10px; width: 45px; height: 105px; border-radius: 90% 0 90% 0; transform: rotate(-35deg); background: #83c998; content: ""; z-index: -1; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-left: 6.3rem; }
.cta-band h2 { color: #094e45; font-size: 1.8rem; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.cta-band p:not(.handwritten) { font-size: 0.95rem; margin-bottom: 0; }
.cta-band .button { flex-shrink: 0; }
.cta-band__slogan { position: relative; flex-shrink: 0; margin: 0; transform: rotate(-10deg); text-align: center; }
.cta-band__slogan::after { display: block; height: 8px; margin-top: 0.3rem; border-top: 3px solid #f9c917; border-radius: 50%; content: ""; }
.site-footer { padding: 2.4rem 0 1.3rem; color: #fff; background: linear-gradient(110deg, #194f41, #10483d); }
.site-footer__grid { display: grid; grid-template-columns: 0.9fr 1.2fr 1.25fr; align-items: center; gap: 2rem; }
.site-footer .brand { color: #fff; }
.footer-contact { font-size: 0.8rem; }
.footer-contact p { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.footer-contact .icon { width: 16px; height: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.4rem; border-left: 1px solid #80a99b; padding: 1rem 0 1rem 2rem; font-size: 0.8rem; }
.footer-nav a { text-decoration: none; }
.site-footer__bottom { margin-top: 1.7rem; font-size: 0.7rem; color: #e2eee8; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 4rem; background: linear-gradient(110deg, #f1f9ee, #ecf8f5); }
.page-hero::after { position: absolute; z-index: -1; right: -90px; bottom: -180px; width: 490px; height: 340px; border-radius: 50%; transform: rotate(-25deg); background: linear-gradient(0deg, #cdebd8 50%, #e0f0ce 50% 75%, #fff2b5 75%); content: ""; }
.page-hero__inner { max-width: 850px; margin-left: 0; }
.page-hero .container { margin-inline: auto; max-width: var(--max-width); }
.page-hero h1 { max-width: 850px; }
.lead { max-width: 800px; font-size: 1.15rem; line-height: 1.6; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.image-frame img { width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 22px 80px 22px 22px; }
.split--reverse .image-frame img { border-radius: 80px 22px 22px 22px; }
.program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.program-list p, .value-panel p, .service-card > p { margin-bottom: 0; }
.program-group-heading { margin-bottom: 1.5rem; }
.check-list, .number-list { padding-left: 0; margin: 0; list-style: none; }
.check-list li, .number-list li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; }
.check-list li:last-child, .number-list li:last-child { margin-bottom: 0; }
.check-list li::before { position: absolute; left: 0; color: var(--color-green); content: "✓"; font-weight: 800; }
.number-list { counter-reset: process; }
.number-list li { counter-increment: process; }
.number-list li::before { position: absolute; left: 0; color: var(--color-green); content: counter(process) "."; font-weight: 700; }
.contact-card dl { display: grid; gap: 1.5rem; margin: 0; }
.contact-card dt { color: var(--color-green-dark); font-weight: 650; }
.contact-card dd { margin: 0.2rem 0 0; }
.contact-card--accent { background: #edf8f3; }

@media (min-width: 1500px) {
  .hero__media { width: 50%; }
}
@media (max-width: 1150px) {
  .container { width: calc(100% - 64px); }
  .site-header__inner { gap: 1.4rem; }
  .site-nav { gap: 1.4rem; }
  .hero__content { width: 46%; }
  .hero__attributes li { padding-inline: 0.8rem; gap: 0.5rem; }
  .intro-band__inner { gap: 1.8rem; }
  .value-item { padding-inline: 0.8rem; }
  .cta-band__inner { padding-left: 4.5rem; gap: 1.4rem; }
  .cta-band__slogan { font-size: 1.4rem; }
  .site-footer__grid { gap: 1.4rem; }
  .footer-nav { gap: 1rem; padding-left: 1.4rem; }
}
@media (max-width: 980px) {
  .site-header__inner { flex-wrap: wrap; min-height: 100px; gap: 1rem; padding-block: 1rem; }
  .brand__mark { width: 44px; height: 54px; }
  .brand__name { font-size: 2.2rem; }
  .brand__tagline { font-size: 0.53rem; }
  .navigation-ready .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 44px; margin-left: auto; padding: 0.5rem 1rem; border: 1px solid #8db9a6; border-radius: 100px; color: var(--color-green-dark); background: #fff; font-size: 0.9rem; font-weight: 650; }
  .site-header__cta { min-height: 44px; }
  .site-nav { order: 4; width: 100%; justify-content: space-between; border-top: 1px solid #e1eee7; padding-top: 0.8rem; }
  .site-nav[hidden] { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { order: 0; min-height: auto; padding-block: 2rem 2.5rem; }
  .hero__content { width: 100%; max-width: 650px; }
  .hero__media { position: relative; order: 1; width: 100%; height: 400px; border-radius: 35% 0 0 0 / 22% 0 0 0; }
  .hero__media::after { display: none; }
  .hero__media > img { object-position: center 45%; }
  .hero::after { bottom: 350px; }
  .hero h1 { font-size: 2.15rem; }
  .hero__attributes { flex-wrap: wrap; row-gap: 0.8rem; }
  .hero__attributes li { padding-inline: 0.6rem; }
  .hero__attributes .icon { width: 25px; height: 25px; }
  .hero__note { width: 245px; height: 175px; right: -15px; padding: 45px 20px 10px 45px; }
  .hero__note .handwritten { font-size: 1.35rem; }
  .intro-band__inner { grid-template-columns: 1fr; gap: 2rem; }
  .intro-band__copy { max-width: 650px; }
  .desktop-break { display: none; }
  .values-grid { padding-block: 0.5rem; }
  .section-heading--row { align-items: start; flex-direction: column; gap: 0.8rem; }
  .card-grid { gap: 1rem; }
  .service-card__body { padding-inline: 1rem; }
  .service-card__body h3 { font-size: 1.1rem; }
  .service-card__body p { font-size: 0.9rem; }
  .cta-band__inner { padding-left: 4rem; flex-wrap: wrap; }
  .cta-band__inner > div { flex: 1 1 320px; }
  .cta-band__slogan { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1.4fr; }
  .footer-nav { grid-column: 1 / -1; justify-content: start; border-left: 0; border-top: 1px solid #80a99b; padding: 1rem 0 0; }
  .split { gap: 2rem; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  body { font-size: 16px; }
  .site-header__inner { gap: 0.75rem; min-height: 88px; }
  .site-header__actions { width: 100%; justify-content: flex-end; gap: 0.75rem; }
  .site-header__provider-logo { width: 72px; }
  .site-header__cta { padding-inline: 1rem; font-size: 0.8rem; }
  .navigation-ready .menu-toggle { padding-inline: 0.8rem; font-size: 0.8rem; }
  .brand__mark { width: 36px; height: 46px; }
  .brand__name { font-size: 1.85rem; }
  .brand__tagline { font-size: 0.45rem; }
  .site-nav { flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: start; }
  .navigation-ready .site-nav { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.7rem 0; }
  .site-nav a[aria-current="page"]::after { right: auto; width: 30px; }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { order: 0; min-height: auto; padding-block: 2rem 2.5rem; }
  .hero__content { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 6.7vw, 2.8rem); max-width: 580px; }
  .hero__description { max-width: 550px; }
  .hero__media { position: relative; order: 1; width: 100%; height: 335px; border-radius: 35% 0 0 0 / 22% 0 0 0; }
  .hero__media::after { display: none; }
  .hero__media > img { object-position: center 45%; }
  .hero__note { width: 230px; bottom: -35px; right: -15px; }
  .hero__attributes { font-size: 0.7rem; flex-wrap: nowrap; margin-top: 1.5rem; justify-content: space-between; }
  .hero__attributes li { gap: 0.5rem; padding-inline: 0.65rem; }
  .hero::before { left: 65%; opacity: 0.7; }
  .hero::after { bottom: 290px; }
  .intro-band { padding-block: 2.2rem; }
  .intro-band__copy h2 { font-size: 1.9rem; }
  .value-item { padding-inline: 0.5rem; }
  .value-item .icon-badge { width: 64px; height: 64px; }
  .value-item .icon { width: 32px; height: 32px; }
  .value-item h3 { font-size: 1rem; }
  .value-item p { font-size: 0.8rem; }
  .section { padding-block: 2.8rem; }
  .home-services { padding-block: 2.4rem; }
  .card-grid, .two-column, .contact-grid, .split, .program-list { grid-template-columns: 1fr; }
  .card-grid { gap: 1.4rem; }
  .service-card__image { height: 210px; }
  .service-card__body { padding: 1.3rem 1.4rem; }
  .service-card__body h3 { font-size: 1.25rem; }
  .service-card__body p { font-size: 1rem; }
  .cta-band { padding-block: 2.4rem; }
  .cta-band__inner { padding-left: 1rem; gap: 1.3rem; }
  .cta-band h2 { font-size: 1.65rem; }
  .cta-band::before { opacity: 0.5; }
  .cta-band::after { opacity: 0.4; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer .brand__mark { width: 46px; height: 58px; }
  .site-footer .brand__name { font-size: 2.3rem; }
  .site-footer .brand__tagline { font-size: 0.55rem; }
  .footer-contact { font-size: 0.85rem; }
  .footer-nav { gap: 1.5rem; }
  .site-footer__bottom { margin-top: 1.4rem; }
  .page-hero { padding-block: 2.8rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .lead { font-size: 1.05rem; }
  .split--reverse .image-frame { order: 1; }
  .service-card, .value-panel, .contact-card, .program-list article { padding: 1.5rem; }
  .service-card--photo { padding: 0; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .hero__attributes { flex-wrap: wrap; justify-content: start; gap: 0.8rem 0; }
  .hero__attributes li { border: 0; }
  .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .value-item + .value-item::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.gallery__hint {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e0e8e4;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.gallery-card__link {
  display: block;
  position: relative;
}

.gallery-card__link:focus-visible {
  outline-offset: -5px;
}

.gallery-card img {
  width: 100%;
  height: auto;
}

.gallery-card__expand {
  display: grid;
  place-items: center;
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-green-dark);
  font-size: 1.3rem;
  box-shadow: 0 2px 12px #082f3826;
}

.gallery-card__link:hover .gallery-card__expand {
  background: var(--color-yellow);
}

.gallery-card figcaption {
  padding: 1rem 1.2rem;
  color: var(--color-ink);
  font-weight: 650;
  line-height: 1.4;
}

html.gallery-open {
  overflow: hidden;
}

.gallery-viewer {
  width: min(1100px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 1rem;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: #103b35;
}

.gallery-viewer::backdrop {
  background: #061f23e6;
}

.gallery-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.gallery-viewer__count {
  margin: 0;
  padding-left: 0.5rem;
  font-size: 0.9rem;
}

.gallery-viewer button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #b4d6ca;
  border-radius: 100px;
  color: #fff;
  background: #174e42;
  cursor: pointer;
}

.gallery-viewer button:hover {
  background: #25634f;
}

.gallery-viewer button:focus-visible {
  outline-color: var(--color-yellow);
}

.gallery-viewer__close {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.gallery-viewer__close span {
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-viewer__stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.8rem;
}

.gallery-viewer__image {
  width: 100%;
  height: min(65dvh, 660px);
  object-fit: contain;
}

.gallery-viewer__previous,
.gallery-viewer__next {
  font-size: 1.4rem;
}

.gallery-viewer__caption {
  margin: 0.8rem 0 0.2rem;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
}

@media (max-width: 1150px) and (min-width: 981px) {
  .site-nav { gap: 1.1rem; }
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery__hint { flex-shrink: 1; }
  .gallery-viewer { width: calc(100% - 24px); padding: 0.75rem; }
  .gallery-viewer__stage { grid-template-columns: 1fr 1fr; }
  .gallery-viewer__image { grid-row: 1; grid-column: 1 / -1; height: auto; max-height: 55dvh; aspect-ratio: 3 / 2; }
  .gallery-viewer__previous { justify-self: start; }
  .gallery-viewer__next { justify-self: end; }
}
