/* Live content styles for the public site. */
[hidden] { display: none !important; }
[data-live-mosaic] {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 12px !important;
}
[data-live-mosaic] .tile {
  grid-area: auto !important;
  grid-column: span var(--tile-w, 1) !important;
  grid-row: span var(--tile-h, 1) !important;
  min-height: 0;
}
[data-live-mosaic] .tile img { width: 100%; height: 100%; object-fit: cover; }
[data-live-mosaic] .tile__cap { z-index: 2; }

.pf-main { display: block !important; }
.live-gallery { display: flex; flex-direction: column; gap: 14px; }
.live-gallery-row {
  display: grid;
  grid-template-columns: repeat(var(--row-cols, 4), minmax(0, 1fr));
  grid-auto-rows: 108px;
  grid-auto-flow: dense;
  gap: 12px;
}
.live-gallery-tile {
  position: relative;
  display: block;
  grid-column: span var(--tile-w, 1);
  grid-row: span var(--tile-h, 1);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #211b14;
  border-radius: 4px;
  color: #fff8ec;
  text-decoration: none;
  cursor: zoom-in;
  transition: box-shadow .3s ease, z-index 0s;
}
.live-gallery-tile:hover { z-index: 2; box-shadow: 0 18px 42px rgba(20, 14, 7, .28); }
.live-gallery-tile:focus-visible { z-index: 3; outline: 3px solid #f5c15b; outline-offset: 3px; }
.live-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.live-gallery-tile:hover img,
.live-gallery-tile:focus-visible img { transform: scale(1.035); }
.live-gallery-tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 16px 12px;
  background: linear-gradient(transparent, rgba(14, 10, 5, .86));
  font-size: 13px;
  line-height: 1.35;
  transition: background .3s ease;
}
.live-gallery-tile:hover .live-gallery-tile__cap { background: linear-gradient(transparent, rgba(14, 10, 5, .95)); }
.live-gallery-tile__cap b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 500; }
.live-gallery-tile__cap span { display: block; margin-top: 3px; color: #d9cbb4; font-size: 11.5px; }

/* A row with one photo is a full-screen editorial block, like the original site. */
.live-gallery-row--full {
  grid-template-columns: 1fr !important;
  grid-auto-rows: 1fr;
  height: calc(100vh - var(--header-h, 70px));
  height: calc(100svh - var(--header-h, 70px));
  min-height: 480px;
}
.live-gallery-row--full .live-gallery-tile {
  grid-column: 1 / -1 !important;
  grid-row: 1 / -1 !important;
  height: 100%;
  border-radius: 0;
}
.live-gallery-row--full .live-gallery-tile__cap { padding: 96px 28px 26px; }
.live-gallery-row--full .live-gallery-tile__cap b { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; }
.live-gallery-row--full .live-gallery-tile__cap span { margin-top: 7px; font-size: 14.5px; max-width: 760px; }
.live-gallery__empty { padding: 30px; color: #d9cbb4; text-align: center; }
@media (max-width: 767px) {
  [data-live-mosaic] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 118px; gap: 8px !important; }
  .live-gallery-row { grid-template-columns: repeat(min(var(--row-cols, 4), 2), minmax(0, 1fr)); grid-auto-rows: 132px; gap: 8px; }
  .live-gallery-tile__cap b { font-size: 17px; }
  .live-gallery-row--full { min-height: 480px; }
  .live-gallery-row--full .live-gallery-tile__cap { padding: 64px 16px 18px; }
  .live-gallery-row--full .live-gallery-tile__cap b { font-size: 27px; }
  .live-gallery-row--full .live-gallery-tile__cap span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-gallery-tile, .live-gallery-tile img, .live-gallery-tile__cap { transition: none !important; }
  .live-gallery-tile:hover img, .live-gallery-tile:focus-visible img { transform: none; }
}
