/* Burnt & Toast: the picture viewer (lightbox.js). Self-contained colours, so it looks the same on
   the Toast Room pages and on the older pages that do not load site.css. */

img.zoomable, a.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible, a.zoomable:focus-visible { outline: 3px solid #2B1D14; outline-offset: 3px; border-radius: 6px; }

.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(24, 16, 11, .97); color: #FBF4E6; overflow: hidden;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.lb::backdrop { background: rgba(24, 16, 11, .6); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 16px; }
.lb-count { font-size: .9375rem; font-weight: 700; color: #E9DCC6; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 4px 12px; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); background: #1A120C; }
.lb-cap { max-width: 70ch; margin: 0 auto; padding: 10px 16px 16px; text-align: center; font-size: 1rem; line-height: 1.5; color: #F4EAD6; }
.lb-cap:empty { display: none; }
.lb button {
  display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 14px;
  border: 2.5px solid #FBF4E6; border-radius: 999px; background: #2B1D14; color: #FBF4E6;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.lb button:hover { background: #4A382C; }
.lb button:focus-visible { outline: 3px solid #F4C95D; outline-offset: 2px; }
.lb button svg { width: 20px; height: 20px; }
.lb-tools { display: flex; gap: 8px; }
.lb[data-single] .lb-prev, .lb[data-single] .lb-next, .lb[data-single] .lb-count { display: none; }
.lb-img { transition: opacity .18s ease; }
.lb.is-loading .lb-img { opacity: .35; }

@media (max-width: 600px) {
  .lb-stage { padding: 0; }
  .lb-img { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-img { transition: none; }
}
