#halls { scroll-margin-top: 68px; }

.hall-card {
  display: flex;
  flex-direction: column;
}

.hall-card.card:hover { transform: none; }

.hall-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.hall-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.hall-actions .btn {
  width: 100%;
  background: linear-gradient(180deg, #291f19, #1b1313);
}

.hall-actions .btn:hover { background: #35271b; }

.hall-gallery { position: relative; }
.hall-gallery-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #181014;
  cursor: zoom-in;
}

.hall-card .hall-gallery-cover img {
  width: 100%;
  height: clamp(210px, 19vw, 248px);
  object-fit: cover;
  object-position: center 45%;
  transition: transform .35s ease;
}

.hall-gallery-cover:hover img { transform: scale(1.035); }
.hall-gallery-cover:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -4px; }

.hall-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #f0d48a88;
  border-radius: 50%;
  background: #110b0cbd;
  color: var(--gold-2);
  pointer-events: none;
}

.hall-zoom::before, .hall-zoom::after {
  position: absolute;
  content: "";
}

.hall-zoom::before {
  top: 9px;
  left: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hall-zoom::after {
  top: 21px;
  left: 20px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.hall-thumbs {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(var(--photo-count, 3), minmax(0, 1fr));
  gap: 7px;
  padding: 18px 12px 10px;
  background: linear-gradient(transparent, #100a0ce0);
  pointer-events: none;
}

.hall-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 2px solid #f0d48a42;
  border-radius: 7px;
  background: #100a0c;
  cursor: zoom-in;
  pointer-events: auto;
}

.hall-thumbs button:hover, .hall-thumbs .is-current { border-color: var(--gold-2); }
.hall-thumbs button img { height: 39px; object-position: center 46%; }

.hall-viewer {
  position: fixed;
  inset: 0;
  width: min(980px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--cream);
  background: #171013;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 90px #000b;
}

.hall-viewer[open] { animation: hall-viewer-in .22s ease-out; }
.hall-viewer::backdrop { background: #090609e0; backdrop-filter: blur(7px); }
html:has(.hall-viewer[open]) { overflow: hidden; }

@keyframes hall-viewer-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.hall-viewer-header, .hall-viewer-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.hall-viewer-header {
  justify-content: space-between;
  position: static;
  background: transparent;
  backdrop-filter: none;
}

.hall-viewer-header h2 { font: 600 clamp(18px, 3vw, 24px)/1.3 Cinzel, serif; }

.hall-viewer-control {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #251b17;
  color: var(--gold-2);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.hall-viewer-control:hover { border-color: var(--gold-2); background: #32241b; }
.hall-viewer-control:focus-visible, .hall-thumbs button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.hall-viewer-stage {
  display: grid;
  place-items: center;
  background: #0e090a;
}

.hall-viewer-stage img {
  width: 100%;
  height: min(72dvh, calc(100dvh - 158px));
  object-fit: contain;
}

.hall-viewer-navigation { justify-content: center; }
.hall-viewer-navigation[hidden] { display: none; }

#hall-viewer-count {
  min-width: 54px;
  color: var(--mute);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .hall-card .hall-gallery-cover img { height: clamp(210px, 50vw, 325px); }
  .hall-viewer { width: calc(100% - 20px); border-radius: 15px; }
  .hall-viewer-header, .hall-viewer-navigation { padding-inline: 10px; }
}


.hall-thumbs[hidden] { display: none; }
