.retg-gallery{--retg-ink:#112e3a;--retg-muted:#52656e;--retg-accent:#ffb344;color:var(--retg-ink);margin:16px 0 40px}.retg-preview{padding:56px 0 12px;border-top:1px solid #d7dedc}.retg-heading{display:flex;justify-content:space-between;align-items:end;gap:32px;margin-bottom:28px}.retg-heading h2{margin:0;font-size:clamp(30px,4vw,46px);line-height:1.1;letter-spacing:-.04em}.retg-heading>p{color:var(--retg-muted);margin:0;max-width:320px}.retg-eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;margin:0 0 12px;color:var(--retg-muted)}.retg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.retg-item{margin:0;min-width:0}.retg-open{display:block;position:relative;overflow:hidden;border-radius:16px;background:#e3e9e3;aspect-ratio:4/3;border:1px solid #d7dedc}.retg-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}.retg-open:hover img{transform:scale(1.035)}.retg-open:focus-visible{outline:3px solid #086acb;outline-offset:4px}.retg-zoom{position:absolute;right:12px;bottom:12px;background:var(--retg-ink);color:#fff;border-radius:50%;height:36px;width:36px;display:grid;place-items:center;font-size:20px}.retg-item figcaption{margin:12px 2px 0;font-size:14px;line-height:1.5;color:var(--retg-muted);overflow-wrap:anywhere}.retg-more{margin:28px 0 0}.retg-more a{display:inline-flex;align-items:center;gap:24px;background:var(--retg-accent);color:var(--retg-ink);border-radius:9px;padding:15px 22px;text-decoration:none;font-weight:700;min-height:48px}.retg-empty-public{border:1px dashed #c0cbc6;background:#fff;border-radius:16px;padding:32px;color:var(--retg-muted)}.retg-dialog{position:fixed;inset:0;margin:auto;background:#11232c;color:#fff;border:0;border-radius:18px;padding:20px;width:min(1120px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;overflow:auto;box-sizing:border-box}.retg-dialog:not([open]){display:none}.retg-dialog::backdrop{background:rgba(0,0,0,.86)}.retg-dialog-top,.retg-controls{display:flex;justify-content:space-between;align-items:center;gap:12px}.retg-dialog button{font:inherit;font-size:14px;border:1px solid #5c727d;color:#fff;background:#1d3b49;border-radius:8px;padding:10px 16px;min-height:44px;cursor:pointer}.retg-dialog button:focus-visible{outline:3px solid #ffb344;outline-offset:3px}.retg-dialog button:disabled{opacity:.4;cursor:default}.retg-image-stage{display:grid;place-items:center;margin:14px 0;min-height:80px}.retg-full{display:block;max-width:100%;width:auto;max-height:62vh;max-height:62dvh;object-fit:contain;margin:auto}.retg-caption{font-size:14px!important;line-height:1.5;margin:0 0 14px!important;color:#d8e4e7!important;white-space:pre-line;overflow-wrap:anywhere}.retg-caption:empty{display:none}.retg-counter{font-size:14px}.retex-gallery-page .page-layout{display:block}.retex-gallery-page .page-layout>aside{display:none}@media(max-width:760px){.retg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.retg-preview{padding-top:40px}.retg-heading{display:block}.retg-heading>p{margin-top:14px}.retg-dialog{padding:12px;border-radius:12px;width:96vw;max-width:96vw}.retg-open{border-radius:12px}}@media(max-width:480px){.retg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.retg-more a{width:100%;justify-content:space-between;box-sizing:border-box}.retg-item figcaption{margin-top:8px}}@media(prefers-reduced-motion:reduce){.retg-open img{transition:none}}

/* Keep intrinsic photo sizes and theme image rules inside the thumbnail. */
.retg-gallery{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.retg-gallery .retg-grid{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.retg-gallery .retg-item{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.retg-gallery .retg-open{display:block;position:relative;width:100%;max-width:100%;min-width:0;aspect-ratio:4/3;box-sizing:border-box}
.retg-gallery .retg-open img{position:absolute;inset:0;display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:cover;margin:0}
.retg-gallery .retg-item figcaption{max-width:100%;overflow-wrap:anywhere}

/* Phones may use a wider layout viewport, especially in landscape mode. */
@media (max-width:1024px), (hover:none) and (pointer:coarse) {
    .retg-gallery .retg-grid {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:12px;
    }
}
@media (max-width:480px) {
    .retg-gallery .retg-grid { gap:10px; }
}
