/* Hall Rental page
   Page-specific additions to css/style.css
   -------------------------------------------------------------- */

.rental-hero {
  color: var(--white);
  background:
    linear-gradient(90deg,
      rgba(3, 24, 43, 0.98) 0%,
      rgba(3, 24, 43, 0.90) 50%,
      rgba(3, 24, 43, 0.74) 100%);
}

.rental-hero-layout {
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.rental-hero h1 {
  max-width: 11ch;
}

.rental-hero-intro {
  max-width: 38rem;
  margin-bottom: 2rem;
  font-size: 1.12rem;
}

.rental-hero-photo {
  overflow: hidden;
  border: 1px solid rgba(217, 181, 100, 0.55);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.rental-hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.rental-overview {
  background: var(--cream-50);
}

.rental-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.fact-card {
  padding: 1.5rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.fact-value {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.fact-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.fact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.amenities-section {
  background: var(--white);
}

.amenities-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.amenities-layout > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.amenities-grid article {
  padding: 1.35rem;
  background: var(--cream-50);
  border-top: 3px solid var(--gold-500);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.amenities-grid h3 {
  font-size: 1.08rem;
}

.amenities-grid ul {
  margin-bottom: 0;
}

.calendar-section {
  background: var(--cream-100);
}

.calendar-frame {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  width: 100%;
  height: 44rem;
  display: block;
  border: 0;
}

.gallery-section {
  background: var(--white);
}

.hall-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hall-gallery a {
  display: block;
  overflow: hidden;
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(3, 24, 43, 0.10);
}

.hall-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hall-gallery a:hover img,
.hall-gallery a:focus-visible img {
  opacity: 0.86;
  transform: scale(1.025);
}

.gallery-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.rental-contact {
  background: var(--navy-900);
}

.rental-contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.rental-contact h2 {
  color: var(--white);
}

.rental-contact p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.rental-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 68rem) {
  .rental-hero-layout {
    grid-template-columns: 1fr;
  }

  .rental-hero-copy {
    max-width: 44rem;
  }

  .rental-hero-photo {
    max-width: 48rem;
  }

  .rental-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-layout {
    grid-template-columns: 1fr;
  }

  .rental-contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 52rem) {
  .amenities-grid,
  .hall-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-frame iframe {
    height: 38rem;
  }
}

@media (max-width: 42rem) {
  .rental-hero-layout {
    min-height: auto;
  }

  .rental-facts,
  .amenities-grid,
  .hall-gallery {
    grid-template-columns: 1fr;
  }

  .calendar-frame iframe {
    height: 34rem;
  }

  .rental-contact-actions {
    display: grid;
  }
}

/* Lightbox gallery
   -------------------------------------------------------------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 12, 22, 0.94);
  backdrop-filter: blur(5px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 76rem);
  min-height: 12rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "previous figure next"
    ". count .";
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
}

.lightbox-figure {
  grid-area: figure;
  margin: 0;
  text-align: center;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 51rem);
  margin-inline: auto;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: var(--white);
  font-size: 1rem;
}

.lightbox-count {
  grid-area: count;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 0.88rem;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(3, 24, 43, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--navy-800);
  border-color: var(--gold-400);
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  transform: translateY(-100%);
}

.lightbox-nav {
  width: 3.25rem;
  height: 4.5rem;
  font-size: 1.8rem;
  border-radius: var(--radius-sm);
}

.lightbox-previous {
  grid-area: previous;
}

.lightbox-next {
  grid-area: next;
}

@media (max-width: 52rem) {
  .lightbox-dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "figure figure"
      "previous next"
      "count count";
  }

  .lightbox-nav {
    width: 100%;
    height: 3rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
  }

  .lightbox-image {
    max-height: 68vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-gallery img,
  .lightbox-close,
  .lightbox-nav {
    transition: none;
  }
}
