#tr-photo-viewer{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1040px,96vw);max-width:96vw;height:94vh;height:94dvh;max-height:94dvh;padding:0;border:1px solid #cda957;border-radius:18px;background:#061c2c;color:#eef7fc;font:16px/1.45 system-ui,sans-serif;box-shadow:0 24px 80px #000a;overflow:hidden}
#tr-photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:0}
#tr-photo-viewer::backdrop{background:rgba(0,9,18,.9)}
#tr-photo-viewer *{box-sizing:border-box}
#tr-photo-viewer .tr-viewer-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#0d344c;border-bottom:1px solid #38576a}
#tr-photo-viewer h2{font:700 19px/1.2 system-ui,sans-serif;color:#ffda87;margin:0;padding:0;text-align:left}
#tr-photo-viewer button,#tr-photo-viewer .tr-viewer-print{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:44px;min-height:44px;margin:0;padding:9px 16px;border:1px solid #b79554;border-radius:9px;background:#123c55;color:#f7fbff;font:700 15px/1.25 system-ui,sans-serif;cursor:pointer;box-shadow:none;transform:none;text-transform:none;letter-spacing:normal;touch-action:manipulation;text-decoration:none}
#tr-photo-viewer button:hover,#tr-photo-viewer .tr-viewer-print:hover{background:#1b506d}
#tr-photo-viewer button:focus-visible,#tr-photo-viewer a:focus-visible{outline:3px solid #9cdeff;outline-offset:3px}
#tr-photo-viewer button:disabled{opacity:.5;cursor:default}
#tr-photo-viewer .tr-viewer-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;overflow:hidden;background:#020c14;touch-action:pan-y pinch-zoom}
#tr-photo-viewer .tr-viewer-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;object-fit:contain;object-position:center;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:0;cursor:default;touch-action:pan-y pinch-zoom}
#tr-photo-viewer .tr-viewer-loading{opacity:.4}
#tr-photo-viewer .tr-viewer-navigation{display:flex;align-items:center;justify-content:center;gap:18px;padding:10px 16px;border-top:1px solid #38576a;background:#0d344c}
#tr-photo-viewer .tr-viewer-counter{min-width:76px;text-align:center;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums;color:#ffda87}
#tr-photo-viewer .tr-viewer-footer{position:static;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:6px 16px;padding:10px 18px 12px;background:#061c2c;text-align:left}
#tr-photo-viewer .tr-viewer-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
#tr-photo-viewer .tr-viewer-caption{margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#eef7fc;font-size:15px}
#tr-photo-viewer .tr-viewer-save{background:#f3c268;color:#10283d;white-space:nowrap}
#tr-photo-viewer .tr-viewer-save:hover{background:#ffda87}
#tr-photo-viewer .tr-viewer-hint,#tr-photo-viewer .tr-viewer-notice{grid-column:1/-1;margin:0;color:#bed3df;font-size:12px;line-height:1.4}
#tr-photo-viewer .tr-viewer-notice{color:#ffda87}
#tr-photo-viewer .tr-viewer-notice:empty{display:none}
@media(max-width:560px){#tr-photo-viewer{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}#tr-photo-viewer .tr-viewer-header{padding:10px 12px}#tr-photo-viewer h2{font-size:17px}#tr-photo-viewer .tr-viewer-navigation{gap:10px;padding:8px 12px}#tr-photo-viewer .tr-viewer-footer{padding:8px 12px 12px;gap:6px 10px}#tr-photo-viewer button{padding:9px 12px}#tr-photo-viewer .tr-viewer-caption{font-size:14px}}
@media(max-height:500px){#tr-photo-viewer .tr-viewer-header{padding:5px 12px}#tr-photo-viewer .tr-viewer-navigation{padding:4px 12px}#tr-photo-viewer .tr-viewer-footer{padding:5px 12px}#tr-photo-viewer .tr-viewer-hint{display:none}#tr-photo-viewer .tr-viewer-caption{-webkit-line-clamp:1}}

/* Keep the gallery reachable when a phone is held sideways. */
@media(max-height:500px){body>header{position:static!important}}
@media(max-width:560px){#tr-photo-viewer .tr-viewer-navigation button{white-space:nowrap;padding:9px 10px;font-size:14px}#tr-photo-viewer .tr-viewer-actions button,#tr-photo-viewer .tr-viewer-actions a{padding:9px 10px;font-size:14px;white-space:nowrap}}

.tr-gallery-browse{margin:18px 0 22px;text-align:center}.tr-gallery-browse button{min-height:48px;padding:13px 24px;border:2px solid #f3c268;border-radius:10px;background:#f3c268;color:#10283d;font:800 18px/1.3 system-ui,sans-serif;cursor:pointer}.tr-gallery-browse p{margin:9px 0 0;color:#c3d8e5;font-size:14px}#gallery-full{scroll-margin-top:220px}#gallery-full:focus{outline:none}
.tr-featured-selection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.tr-featured-slot{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #6c8b9c;border-radius:12px;background:#071e31;padding:12px;text-align:center;min-width:0}.tr-featured-slot strong{color:#ffda87}.tr-featured-slot img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.tr-featured-slot span{font-size:14px;color:#c3d8e5;margin:auto}.tr-featured-slot button{font-size:13px;min-height:44px;padding:8px}.photo-card button[aria-pressed=true]{background:#f3c268;color:#10283d}
@media(max-width:700px){.tr-featured-selection{grid-template-columns:repeat(2,minmax(0,1fr))}#gallery-full{scroll-margin-top:140px}}@media(max-height:500px){#gallery-full{scroll-margin-top:12px}}

#gallery-filters.tr-gallery-filter-bar{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px 0 8px;scroll-margin-top:220px}#gallery-filters.tr-gallery-filter-bar button{min-width:104px;min-height:48px;padding:10px 24px;border:1.5px solid #e8bd68;border-radius:999px;background:linear-gradient(135deg,rgba(246,204,119,.18),rgba(246,204,119,.06));color:#ffe0a0;font:750 17px/1.3 system-ui,sans-serif;box-shadow:inset 0 1px 0 rgba(255,232,182,.16);backdrop-filter:blur(6px);cursor:pointer}#gallery-filters.tr-gallery-filter-bar button:hover,#gallery-filters.tr-gallery-filter-bar button[aria-pressed=true]{background:rgba(246,204,119,.3);border-color:#ffde94;color:#fff1cf;box-shadow:0 0 0 1px rgba(246,204,119,.25)}#gallery-filters.tr-gallery-filter-bar button:focus-visible{outline:3px solid #9cdeff;outline-offset:4px}.tr-gallery-filter-help{text-align:center;font-size:14px;color:#c3d8e5;margin:0 0 20px}
@media(max-width:700px){#gallery-filters.tr-gallery-filter-bar{scroll-margin-top:140px;gap:8px}#gallery-filters.tr-gallery-filter-bar button{min-width:80px;padding:10px 15px}}@media(max-height:500px){#gallery-filters.tr-gallery-filter-bar{scroll-margin-top:12px}}
