/* Venue Gallery — Airbnb-inspired photo tour for Guest Hub. */
.guest-dock { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.guest-dock .dock-action { min-width: 0; }
.guest-dock .dock-action small { white-space: nowrap; }

.guest-gallery-hub {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: #fff;
  color: #242522;
}
.guest-gallery-hub[hidden] { display: none !important; }
.guest-gallery-frame { height: 100%; display: flex; flex-direction: column; background: #fff; }
.guest-gallery-topbar {
  flex: 0 0 auto;
  min-height: 64px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid #ecece8;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
}
.guest-gallery-topbar h2 { margin: 0; text-align: center; font-size: 20px; font-weight: 620; letter-spacing: -.02em; }
.guest-gallery-back {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: #2d2e2b; font-size: 35px; line-height: 1;
}
.guest-gallery-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
.guest-gallery-tour {
  position: sticky; top: 0; z-index: 4;
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  padding: 18px 20px 16px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #f0f0ed;
}
.guest-gallery-tour::-webkit-scrollbar { display: none; }
.guest-gallery-tour-card {
  flex: 0 0 116px; padding: 0; border: 0; background: transparent;
  text-align: left; color: #62645f;
}
.guest-gallery-tour-card img {
  display: block; width: 116px; height: 92px; object-fit: cover;
  border-radius: 22px; background: #f1f1ee;
}
.guest-gallery-tour-card span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.2; font-weight: 480; }
.guest-gallery-sections { width: min(100%, 760px); margin: 0 auto; padding: 12px 20px 0; }
.guest-gallery-section { scroll-margin-top: 150px; padding: 20px 0 10px; }
.guest-gallery-section h3 { margin: 0 0 16px; font-size: 28px; line-height: 1.08; font-weight: 620; letter-spacing: -.025em; }
.guest-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.guest-gallery-photo {
  min-width: 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  aspect-ratio: 1 / .82; background: #eee; cursor: zoom-in;
}
.guest-gallery-photo.is-lead { grid-column: 1 / -1; aspect-ratio: 5 / 4; border-radius: 24px; }
.guest-gallery-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guest-gallery-loading, .guest-gallery-empty {
  min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 8px;
  text-align: center; color: #777a74; padding: 40px 18px;
}
.guest-gallery-empty > span { font-size: 34px; }
.guest-gallery-empty strong { color: #3b3d39; font-size: 18px; font-weight: 600; }
.guest-gallery-empty p { max-width: 330px; margin: 0; font-size: 14px; line-height: 1.45; }

.guest-gallery-lightbox {
  position: fixed; inset: 0; z-index: 101;
  display: grid; place-items: center; background: #111;
}
.guest-gallery-lightbox[hidden] { display: none !important; }
.guest-gallery-lightbox header {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  min-height: 64px; padding: max(12px, env(safe-area-inset-top)) 16px 8px;
  display: flex; align-items: center; justify-content: space-between; color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
}
.guest-gallery-lightbox header button {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 26px;
}
.guest-gallery-lightbox header span { font-size: 13px; font-weight: 520; }
.guest-gallery-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.guest-gallery-lightbox-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 42px; height: 56px; border: 0; border-radius: 22px;
  background: rgba(0,0,0,.28); color: #fff; font-size: 34px;
}
.guest-gallery-lightbox-nav.previous { left: 10px; }
.guest-gallery-lightbox-nav.next { right: 10px; }

@media (max-width: 390px) {
  .guest-dock .dock-action small { font-size: 9.4px !important; }
  .guest-gallery-tour-card { flex-basis: 106px; }
  .guest-gallery-tour-card img { width: 106px; height: 86px; border-radius: 20px; }
  .guest-gallery-sections { padding-left: 14px; padding-right: 14px; }
}

