/* ========================================================
   6. 02 · ALBUM ẢNH CƯỚI (MOSAIC GRID & LIGHTBOX)
   Trái 1 ảnh cao · phải 2 ô xếp chồng · ô cuối "+N Xem tất cả"
   ======================================================== */
.section-header {
  margin-bottom: 28px;
  text-align: left;
}

.section-header .section-label { margin: 0 0 14px; }

.section-header p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--headline-size);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--teal-ink);
}

#gallery {
  overflow: visible;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper-bg);
}

.gallery-grid.is-single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.gallery-grid.is-pair {
  grid-template-rows: 1fr;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--sage);
  cursor: pointer;
  transition: filter 0.25s ease;
}

.gallery-item--hero {
  grid-row: span 2;
}

.gallery-grid.is-pair .gallery-item--hero {
  grid-row: auto;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
}

#gallery .gallery-item:hover {
  filter: brightness(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.35s ease;
}

#gallery .gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(38, 70, 83, 0.55);
  pointer-events: none;
}

.gallery-more-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--cream);
  pointer-events: none;
}

.gallery-more-count {
  font-family: var(--font-display);
  font-size: clamp(36px, 12cqi, 56px);
  font-weight: 700;
  line-height: 1;
}

.gallery-more-text {
  font-family: var(--font-display);
  font-size: clamp(11px, 3.2cqi, 14px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
}

.gallery-grid {
  container-type: inline-size;
}

.slide-caption { display: none; }

/* Lightbox xem ảnh toàn màn hình */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(38, 70, 83, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal img {
  max-width: min(92vw, 900px);
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--teal-ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #fff;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-nav[hidden] {
  display: none !important;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
