/* Galeri SMAMATA — all selectors are scoped to protect the active theme. */
.smg-gallery {
    --smg-green:#0b695d; --smg-ink:#182c28; --smg-muted:#727b76;
    --smg-line:#dfe5dd; --smg-surface:#f7f8f4;
    width:100%; max-width:1240px; margin:0 auto; color:var(--smg-ink);
    font:400 15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    text-align:left;
}
.smg-gallery *, .smg-gallery *::before, .smg-gallery *::after { box-sizing:border-box; }
.smg-gallery a { color:inherit; text-decoration:none; }
.smg-gallery img { display:block; max-width:100%; }
.smg-gallery h1,.smg-gallery h2,.smg-gallery h3,.smg-gallery p,.smg-gallery figure { margin:0; padding:0; }
.smg-gallery button,.smg-gallery input { font:inherit; }
.smg-gallery a,.smg-gallery button { -webkit-tap-highlight-color:transparent; transition:background .25s,color .25s,transform .25s,border-color .25s,box-shadow .25s; }
.smg-gallery a:focus-visible,.smg-gallery button:focus-visible,.smg-search input:focus-visible { outline:3px solid #69ac91; outline-offset:5px; }
.smg-gallery .smg-icon { width:18px; height:18px; display:inline-block; vertical-align:middle; flex-shrink:0; }
.smg-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.smg-hero { position:relative; overflow:hidden; padding:75px 0 0; border-bottom:1px solid var(--smg-line); }
.smg-hero::after { content:""; position:absolute; width:410px; height:410px; right:-150px; top:15px; border-radius:50%; border:1px solid #e2e8de; box-shadow:0 0 0 50px rgba(226,232,222,.25),0 0 0 100px rgba(226,232,222,.14); pointer-events:none; z-index:0; }
.smg-eyebrow { font-size:10px; font-weight:600; letter-spacing:.16em; color:var(--smg-green); text-transform:uppercase; display:flex; align-items:center; gap:10px; position:relative; z-index:1; }
.smg-eyebrow>span { width:6px; height:6px; background:#0b695d; border-radius:50%; }
.smg-hero h1 { position:relative; z-index:1; font:400 clamp(42px,6.5vw,78px)/1.06 Georgia,"Times New Roman",serif; letter-spacing:-.045em; max-width:940px; margin-top:26px; }
.smg-hero h1 em { font-weight:400; color:#0b695d; }
.smg-hero>p { position:relative; z-index:1; color:var(--smg-muted); font-size:14px; max-width:460px; margin-top:25px; line-height:1.8; }
.smg-hero-foot { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; margin-top:38px; padding:0 0 27px; }
.smg-hero-label { color:#8b958d; letter-spacing:.13em; font-size:9px; }
.smg-small-mark { font-size:46px; font-weight:300; line-height:1; color:#8faa93; }
.smg-collection { padding:47px 0 80px; }
.smg-collection-top { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.smg-kicker { font-size:9px; font-weight:500; letter-spacing:.16em; color:#89918a; }
.smg-collection h2 { font-weight:500; font-size:26px; letter-spacing:-.045em; line-height:1.3; margin-top:7px; display:flex; align-items:center; gap:12px; }
.smg-collection h2>span { padding:4px 8px; min-width:25px; border-radius:6px; background:#e8eee6; font-size:11px; color:#607862; font-weight:500; letter-spacing:0; text-align:center; }
.smg-search { display:flex; align-items:center; width:300px; border:1px solid #dce3d9; border-radius:10px; background:#fff; overflow:hidden; padding-right:4px; margin:0; }
.smg-search input[type=search] { width:100%; min-width:0; padding:13px 16px; border:0; outline:none; background:transparent; font-size:12px; color:#263b32; box-shadow:none; border-radius:0; }
.smg-search input::placeholder { color:#a0a89f; }
.smg-search:focus-within { border-color:#73a48c; box-shadow:0 0 0 3px rgba(11,105,93,.07); }
.smg-search button { width:38px; height:38px; flex:none; border:0; border-radius:7px; background:transparent; color:#0b695d; cursor:pointer; display:grid; place-items:center; padding:0; }
.smg-search button:hover { background:#eef4ea; }
.smg-filters { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 31px; }
.smg-filters a { display:inline-flex; align-items:center; padding:9px 16px; border-radius:999px; border:1px solid #dfe5dc; color:#727d71; background:transparent; font-size:11px; white-space:nowrap; }
.smg-filters a:hover { background:#e9efe5; color:#0b695d; }
.smg-filters a.is-active { border-color:#0b695d; background:#0b695d; color:#fff; }
.smg-album-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:29px 25px; }
.smg-album-card { min-width:0; }
.smg-album-link { display:block; height:100%; background:#fff; border:1px solid #e3e8df; border-radius:15px; overflow:hidden; }
.smg-album-link:hover { box-shadow:0 14px 35px rgba(27,55,33,.07); transform:translateY(-5px); border-color:#c2d3c3; }
.smg-cover { position:relative; aspect-ratio:4/3; overflow:hidden; background:#e7ede4; }
.smg-cover>img { height:100%; width:100%; object-fit:cover; transition:transform .7s cubic-bezier(.2,.8,.2,1); }
.smg-album-link:hover .smg-cover>img { transform:scale(1.045); }
.smg-cover-empty { display:flex; flex-direction:column; gap:10px; align-items:center; justify-content:center; height:100%; background:radial-gradient(circle at 70% 10%,#e2ebdc,transparent 70%),linear-gradient(140deg,#edf2e8,#dbe5d6); color:#8da48b; }
.smg-cover-empty .smg-icon { width:50px; height:50px; stroke-width:1; }
.smg-cover-empty span { font-size:10px; letter-spacing:.04em; }
.smg-photo-count { position:absolute; left:13px; bottom:13px; background:rgba(255,255,255,.92); color:#36513d; font-size:10px; display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:7px; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.smg-photo-count .smg-icon { width:12px; height:12px; }
.smg-cover-arrow { position:absolute; top:13px; right:13px; height:30px; width:30px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.35); border-radius:50%; background:rgba(0,0,0,.15); color:white; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; transform:translate(-3px,3px); transition:opacity .3s,transform .3s; }
.smg-album-link:hover .smg-cover-arrow,.smg-album-link:focus-visible .smg-cover-arrow { opacity:1; transform:translate(0); }
.smg-card-info { padding:22px 21px 18px; }
.smg-category { display:block; font-size:8px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#5c886a; overflow-wrap:anywhere; }
.smg-card-info h3 { color:#243e30; font-size:17px; font-weight:500; letter-spacing:-.02em; line-height:1.45; margin-top:9px; overflow-wrap:anywhere; }
.smg-card-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #edf0e9; margin-top:21px; padding-top:14px; font-size:10px; color:#8f988c; }
.smg-card-meta>span:last-child { color:#64816a; white-space:nowrap; }
.smg-empty { padding:85px 24px; background:#eef2e9; border:1px dashed #ced9c6; border-radius:17px; text-align:center; margin-bottom:28px; }
.smg-empty>.smg-icon { width:43px; height:43px; color:#809c7d; margin-bottom:15px; }
.smg-empty h3,.smg-empty h1 { font-size:23px; font-weight:500; letter-spacing:-.025em; color:#234031; }
.smg-empty p { color:#7d8978; max-width:450px; margin:15px auto 24px; font-size:13px; }
.smg-gallery .smg-button { display:inline-flex; align-items:center; padding:10px 19px; border-radius:999px; background:#0b695d; color:white; font-size:12px; border:1px solid transparent; }
.smg-gallery .smg-button:hover { background:#075347; }
.smg-pagination { display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap; margin:43px 0 0; font-size:11px; color:#84907e; }
.smg-page-arrow { border:1px solid #d6e0d0; border-radius:999px; padding:10px 15px; background:#fff; color:#38644c!important; }
.smg-page-arrow:hover { border-color:#85a992; background:#eaf2e7; }
.smg-album-hero { padding:47px 0 35px; margin-bottom:28px; border-bottom:1px solid var(--smg-line); }
.smg-back { color:#67806a!important; font-size:12px; display:inline-flex; margin-bottom:29px; }
.smg-back:hover { color:#0b695d!important; transform:translateX(-3px); }
.smg-album-hero h1 { font:400 clamp(35px,5vw,59px)/1.15 Georgia,"Times New Roman",serif; letter-spacing:-.04em; margin-top:15px; max-width:960px; overflow-wrap:anywhere; }
.smg-album-details { display:flex; align-items:center; gap:23px; flex-wrap:wrap; margin-top:23px; color:#829078; font-size:11px; }
.smg-album-details>span { display:inline-flex; align-items:center; gap:7px; }
.smg-album-details .smg-icon { width:14px; height:14px; }
.smg-album-description { margin-top:21px!important; font-size:13px; color:#778370; max-width:760px; line-height:1.9; overflow-wrap:anywhere; }
.smg-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding-bottom:30px; }
.smg-photo { min-width:0; }
.smg-photo-open { display:block; position:relative; aspect-ratio:4/3; border-radius:12px; overflow:hidden; background:#e5ede0; }
.smg-photo-open>img { width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.smg-photo-open:hover>img { transform:scale(1.04); }
.smg-zoom { position:absolute; bottom:12px; right:12px; width:32px; height:32px; display:grid; place-items:center; background:rgba(255,255,255,.85); color:#3e6141; border-radius:8px; opacity:0; transition:opacity .3s; }
.smg-photo-open:hover .smg-zoom,.smg-photo-open:focus-visible .smg-zoom { opacity:1; }
.smg-photo figcaption { font-size:11px; color:#778772; margin-top:10px; line-height:1.75; padding:0 4px; overflow-wrap:anywhere; }
.smg-gallery:has(.smg-photo-grid) { padding-bottom:65px; }
/* Native dialog supports keyboard focus, Escape and an inert background. */
.smg-lightbox { max-width:none; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); width:min(1180px,calc(100vw - 48px)); height:auto; padding:20px; border:1px solid rgba(255,255,255,.12); border-radius:17px; background:#101813; color:#fff; box-shadow:0 25px 100px rgba(0,0,0,.5); overflow:auto; }
.smg-lightbox:not([open]) { display:none; }
.smg-lightbox::backdrop { background:rgba(3,14,7,.88); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.smg-lightbox-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.smg-lightbox-counter { font-size:11px; color:#a4b5a5; }
.smg-lightbox button { display:grid; place-items:center; cursor:pointer; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.16); color:#fff; width:38px; height:38px; border-radius:50%; padding:0; font-size:19px; line-height:1; }
.smg-lightbox button:hover:not(:disabled) { background:rgba(255,255,255,.14); }
.smg-lightbox button:disabled { opacity:.2; cursor:default; }
.smg-lightbox .smg-close { font-size:27px; font-weight:300; }
.smg-lightbox-stage { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; align-items:center; gap:17px; margin:18px 0; }
.smg-lightbox-image { max-height:calc(100vh - 235px); max-height:calc(100dvh - 235px); width:auto; height:auto; max-width:100%; justify-self:center; object-fit:contain; border-radius:5px; }
.smg-lightbox-caption { color:#ced8ce; text-align:center; font-size:12px; margin-top:15px!important; overflow-wrap:anywhere; }
.smg-lightbox-help { color:#6d806e; text-align:center; font-size:10px; margin-top:7px!important; }
/* Standalone page wrapper */
body.smg-standalone { margin:0!important; padding:0!important; background:#f7f8f4; color:#182c28; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
.smg-shell { max-width:1320px; width:calc(100% - 80px); margin:0 auto; box-sizing:border-box; }
.smg-site-header { padding:25px 0; border-bottom:1px solid #e2e7dd; }
.smg-site-header>.smg-shell { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.smg-brand { display:inline-flex; align-items:center; gap:12px; text-decoration:none!important; color:#213c2e!important; }
.smg-brand strong { display:block; font-size:16px; font-weight:600; line-height:1.3; letter-spacing:.02em; max-width:260px; overflow-wrap:anywhere; }
.smg-brand small { display:block; font-size:8px; font-weight:400; letter-spacing:.16em; margin-top:5px; color:#839080; }
.smg-brand-icon { display:grid; place-items:center; width:38px; height:42px; background:#0b695d; border-radius:10px; color:#fff; }
.smg-brand-icon .smg-icon { width:22px; height:22px; }
.smg-school-logo { width:42px!important; height:48px!important; object-fit:contain; display:block; }
.smg-site-nav { display:flex; gap:28px; align-items:center; font-size:11px; }
.smg-site-nav a { color:#7a8978; text-decoration:none; transition:color .25s; }
.smg-site-nav a:hover,.smg-site-nav a.is-active { color:#0b695d; }
.smg-site-nav a.is-active { display:flex; align-items:center; gap:6px; }
.smg-site-nav a.is-active::before { content:""; width:4px; height:4px; border-radius:50%; background:#0b695d; }
.smg-site-footer { border-top:1px solid #dfe5da; padding:30px 0; }
.smg-site-footer>.smg-shell { display:flex; align-items:center; justify-content:space-between; gap:25px; }
.smg-site-footer strong { font-weight:500; letter-spacing:.02em; font-size:13px; color:#57745a; }
.smg-site-footer p { margin:6px 0 0; font-size:10px; color:#96a08e; line-height:1.8; }
.smg-site-header a:focus-visible,.smg-site-footer a:focus-visible { outline:3px solid #69ac91; outline-offset:5px; border-radius:5px; }
.smg-skip { position:absolute; top:10px; left:10px; transform:translateY(-200%); z-index:999999; background:#fff; color:#0b695d; border:1px solid #0b695d; padding:10px 15px; border-radius:10px; font-size:12px; text-decoration:none; }
.smg-skip:focus { transform:translateY(0); }
@media(max-width:1000px) {
    .smg-shell { width:calc(100% - 48px); }
    .smg-album-grid,.smg-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:23px; }
    .smg-hero { padding-top:55px; }
    .smg-hero::after { width:350px; height:350px; right:-240px; }
    .smg-hero h1 { font-size:clamp(47px,7vw,65px); }
}
@media(max-width:600px) {
    .smg-shell { width:calc(100% - 32px); }
    .smg-site-header { padding:18px 0; }
    .smg-site-header>.smg-shell { gap:12px; }
    .smg-brand { gap:8px; }
    .smg-brand strong { font-size:13px; max-width:150px; }
    .smg-brand small { font-size:6px; letter-spacing:.1em; }
    .smg-brand-icon { width:31px; height:35px; border-radius:8px; flex:none; }
    .smg-school-logo { width:30px!important; height:37px!important; }
    .smg-site-nav { flex-direction:column; align-items:flex-end; gap:7px; font-size:9px; flex:none; }
    .smg-eyebrow { font-size:8px; letter-spacing:.12em; }
    .smg-hero { padding-top:43px; }
    .smg-hero::after { right:-295px; top:50px; }
    .smg-hero h1 { font-size:clamp(38px,9.5vw,55px); margin-top:21px; line-height:1.13; }
    .smg-hero>p { font-size:12px; margin-top:20px; max-width:315px; }
    .smg-hero-foot { margin-top:31px; padding-bottom:19px; }
    .smg-hero-label { font-size:7px; letter-spacing:.08em; }
    .smg-small-mark { font-size:34px; }
    .smg-collection { padding:32px 0 48px; }
    .smg-collection-top { flex-direction:column; align-items:stretch; gap:20px; }
    .smg-collection h2 { font-size:25px; }
    .smg-search { width:100%; }
    .smg-filters { flex-wrap:nowrap; overflow-x:auto; padding:2px 3px 9px; margin:19px -3px 18px; scrollbar-width:thin; }
    .smg-filters a { padding:8px 13px; font-size:10px; }
    .smg-album-grid,.smg-photo-grid { grid-template-columns:1fr; gap:22px; }
    .smg-cover { aspect-ratio:4/3; }
    .smg-card-info { padding:21px 20px 18px; }
    .smg-card-info h3 { font-size:19px; }
    .smg-category { font-size:9px; }
    .smg-cover-arrow,.smg-zoom { opacity:1; transform:none; }
    .smg-empty { padding:55px 19px; }
    .smg-empty h3,.smg-empty h1 { font-size:22px; }
    .smg-empty p { font-size:12px; }
    .smg-pagination { gap:10px; font-size:10px; }
    .smg-page-arrow { padding:9px 11px; }
    .smg-album-hero { padding-top:30px; padding-bottom:27px; margin-bottom:24px; }
    .smg-back { font-size:11px; margin-bottom:23px; }
    .smg-album-hero h1 { font-size:37px; }
    .smg-album-description { font-size:12px; }
    .smg-album-details { margin-top:20px; font-size:10px; }
    .smg-photo-grid { padding-bottom:8px; }
    .smg-photo figcaption { font-size:11px; }
    .smg-lightbox { width:calc(100vw - 16px); padding:14px 10px; border-radius:13px; }
    .smg-lightbox-stage { position:relative; display:flex; justify-content:center; margin:17px 0; padding-bottom:46px; }
    .smg-lightbox-stage>button { position:absolute; bottom:0; width:34px; height:34px; }
    .smg-lightbox-stage .smg-prev { left:calc(50% - 45px); }
    .smg-lightbox-stage .smg-next { right:calc(50% - 45px); }
    .smg-lightbox-image { max-height:calc(100vh - 285px); }
    .smg-lightbox-caption { font-size:11px; }
    .smg-lightbox-help { font-size:8px; }
    .smg-site-footer { padding:25px 0; }
    .smg-site-footer>.smg-shell { flex-direction:column; align-items:flex-start; gap:13px; }
}
@media(prefers-reduced-motion:reduce) {
    .smg-gallery *, .smg-gallery *::before, .smg-gallery *::after { transition:none!important; animation:none!important; }
}
