/* WP-specific additions on top of the real style.css (from html/assets/css/style.css). Everything else needed for Home/Accommodations/Locations/Calendar now lives in the provided stylesheet itself. */

/* Current-page state for the header nav menu (Airbock_Nav_Walker adds the
   same "active" class the static HTML hard-codes on its own nav-item, e.g.
   accommodations.html's own link) - reuses the site's existing
   hover-underline animation (.nav-item::after) instead of a new style. */
.header-nav .nav-item.active::after,
.mobile-nav-link.active::after {
  width: 100%;
}

/* Gallery category archive (taxonomy-gallery_category.php) - no HTML/Figma
   was provided for this view, only the Pictures page's teaser grid, so
   this reuses existing color/spacing tokens rather than inventing new
   ones. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid-item {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.gallery-grid-item img,
.gallery-grid-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-grid-item-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(28, 26, 23, 0.6);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Lightbox */
.gallery-lightbox .modal-content {
  background-color: rgba(28, 26, 23, 0.95);
  border: none;
  border-radius: 0;
}

.gallery-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 40px;
}

.gallery-lightbox-body img,
.gallery-lightbox-body video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
}

.gallery-lightbox-prev {
  left: 8px;
}

.gallery-lightbox-next {
  right: 8px;
}

/* Accommodations - Rooms Section Styling */
.accom-rooms-section {
  margin-top: 25px;
  border-top: 1px solid rgba(28, 26, 23, 0.1);
  padding-top: 20px;
  margin-bottom: 20px;
}
.accom-rooms-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--color-dark);
}
.accom-rooms-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.accom-room-item {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 0;
  margin: 0;
}
.room-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-name {
  color: var(--color-dark);
  font-size: 15px;
}
.room-capacity {
  color: var(--color-grey-text);
  font-size: 13px;
}
.room-desc {
  margin: 4px 0 0 0 !important;
  color: var(--color-grey-text);
  font-size: 14px;
  line-height: 1.5;
}
