/* Itinerary galleries: equal 3:2 crops, sized to the available column. */
.day--gallery{container-type:inline-size}
.day--gallery .day-body{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px;align-items:start}
.day--gallery .day-copy{min-width:0}
.day--gallery .day-copy>p:last-of-type{margin-bottom:0}
.day-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.day-gallery-photo{position:relative;display:block;aspect-ratio:3/2;border-radius:5px;overflow:hidden;background:#d7d9ce;cursor:pointer}
.day-gallery-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;aspect-ratio:3/2;min-width:0;border:1px dashed #b5bca9;border-radius:5px;background:#e5e7da;color:var(--muted);font-size:var(--text-caption);text-align:center;padding:12px}
.day-gallery-placeholder svg{width:25px;height:25px}
.day-gallery-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.day-gallery-photo:hover img{transform:scale(1.035)}
.day-gallery-photo:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.day-gallery-zoom{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#20241ed9;color:var(--paper);opacity:0;transition:opacity .15s}
.day-gallery-zoom svg{width:16px;height:16px}
.day-gallery-photo:hover .day-gallery-zoom,.day-gallery-photo:focus-visible .day-gallery-zoom{opacity:1}
@media(hover:none){.day-gallery-zoom{opacity:1}}
@container(max-width:690px){.day--gallery .day-body{grid-template-columns:minmax(0,1fr);gap:24px}}
@container(max-width:400px){.day-gallery-placeholder{padding:8px;gap:0;line-height:1.15;overflow-wrap:anywhere}.day-gallery-placeholder svg{display:none}}
/* The viewport fallback also covers older engines without container queries. */
@media(max-width:1100px){.day--gallery .day-body{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.day--gallery .day-body{gap:22px}}

.gallery-lightbox{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;border:0;padding:20px clamp(16px,4vw,64px);background:#151914f5;color:var(--paper);overscroll-behavior:contain}
.gallery-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
.gallery-lightbox::backdrop{background:#151914f5;overflow:hidden;overscroll-behavior:contain}
.gallery-lightbox-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(100%,1200px);margin-inline:auto}
.gallery-lightbox-header p{color:var(--paper);font-size:var(--text-control);line-height:1.4;font-weight:550}
.gallery-lightbox button{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;padding:12px;border:1px solid #f7f7f04d;border-radius:50%;background:transparent;color:var(--paper);cursor:pointer}
.gallery-lightbox button:hover{background:var(--paper);color:var(--ink)}
.gallery-lightbox button:focus-visible{outline:2px solid var(--paper);outline-offset:4px}
.gallery-lightbox button svg{display:block;width:22px;height:22px}
.gallery-lightbox-stage{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;touch-action:pan-y}
.gallery-lightbox-stage img{display:block;width:auto;height:auto;max-width:min(100%,1200px);max-height:100%;object-fit:contain;user-select:none}
.gallery-lightbox-controls{display:flex;align-items:center;justify-content:center;gap:24px}
.gallery-lightbox-controls p{min-width:5ch;color:var(--paper);font-size:var(--text-label);font-variant-numeric:tabular-nums;text-align:center}
@media(max-width:700px){.gallery-lightbox{padding:12px 16px max(20px,env(safe-area-inset-bottom));gap:12px}.gallery-lightbox-header{padding-top:env(safe-area-inset-top)}}
@media(prefers-reduced-motion:reduce){.day-gallery-photo img,.day-gallery-zoom{transition:none}.day-gallery-photo:hover img{transform:none}}
@media print{.gallery-lightbox{display:none!important}.day--gallery .day-body{display:block}.day-gallery{max-width:500px;margin-bottom:20px}.day-gallery-zoom{display:none}}
