/* ==========================================================================
   PINK POLISH — gallery.css
   ========================================================================== */
/* ============ LIGHTBOX ============ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .lightbox.open {
        display: flex;
    }

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .lightbox-close:hover {
        opacity: 1;
    }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    opacity: 0.7;
}
/* ============ NAV active state ============ */
.nav-list > li > a.is-active {
  font-weight: 600;
}

/* ============ PAGE HEADING ============ */
.gal-heading {
  padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 5vw, 60px);
}

.gal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 96px);
  color: var(--green);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 32px);
  line-height: 1;
}
.gal-title em {
  font-style: italic;
}
.gal-star {
  color: var(--pink);
  font-size: 0.55em;
  line-height: 1;
  flex-shrink: 0;
}

/* ============ PHOTO GRID ============ */
.gal-grid-section {
  padding-bottom: clamp(32px, 5vw, 60px);
}

/* Shared figure styles */
.gal-item {
  overflow: hidden;
  background: var(--pink-pale);
  margin: 0;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.gal-item:hover img {
  transform: scale(1.04);
}

/* ---- Row 1: 3 columns, unequal heights ---- */
.gal-row {
  display: grid;
  gap: clamp(10px, 1.2vw, 18px);
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

.gal-row-1 {
  grid-template-columns: 3fr 2.7fr 3.4fr;
  grid-template-rows: clamp(300px, 38vw, 560px);
}
.gal-a { }
.gal-b { }
.gal-c { }

/* ---- Row 2: left tall, center, right ---- */
.gal-row-2 {
  grid-template-columns: 1.8fr 2.4fr 3.6fr;
  grid-template-rows: clamp(260px, 32vw, 480px);
}

/* ---- Row 3: 3 even ---- */
.gal-row-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: clamp(260px, 32vw, 460px);
}

/* ============ INSTAGRAM CTA ============ */
.gal-cta {
  padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 100px);
  text-align: center;
}

.gal-ig-btn {
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 1px solid var(--pink);
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
    .gal-row-1,
    .gal-row-2 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: clamp(200px, 28vw, 360px);
    }

    .gal-row-3 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: clamp(200px, 28vw, 360px);
    }
    /* XÓA display:none gal-c, gal-d */
}

@media (max-width: 639px) {
    .gal-all-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

        /* Bỏ hết layout row trên mobile */
        .gal-all-wrap .gal-row {
            display: contents; /* ← các figure thoát ra ngoài row, vào grid cha */
        }

    .gal-item {
        aspect-ratio: 1 / 1;
        margin: 0;
    }
}