/* =========================
   GALLERY INTRO
========================= */

.gallery-intro {
  max-width: 740px;
  margin: 1.4rem auto 1.8rem;
  padding: 0;
}

.gallery-intro h1 {
  margin: 0 0 0.75rem 0;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 300;
  color: var(--color-heading);
  text-align: center;        /* ← centered */
}

.gallery-intro p {
  margin: 0 0 0.85rem 0;
  line-height: 1.55;
  font-size: 1rem;
  color: #4a4a4a;

  text-align: center;
  max-width: 48rem;   /* ← wider than before */
  margin-left: auto;
  margin-right: auto;
}

.gallery-intro::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin: 1.2rem auto 0;   /* ← centers the line */
  background: rgba(0,0,0,0.12);
}

/* =========================
   GALLERY CONTAINER
========================= */

.gallery-section {
  margin-top: 0.5rem;
  padding: 1rem;
  background: #f5efe2;
  border-radius: 10px;
  box-shadow:
    0 14px 28px rgba(80, 60, 60, 0.10),
    0 3px 8px rgba(80, 60, 60, 0.05);
}


/* =========================
   JUSTIFIED GALLERY
========================= */

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gallery-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.gallery-item {
  flex: 0 0 auto;
  overflow: visible;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    z-index 0.28s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  position: relative;
  z-index: 2;

  transition:
    transform 0.32s ease,
    filter 0.32s ease,
    box-shadow 0.32s ease;
}

.gallery-item::before {
  content: none;
}

.gallery-item:hover {
  z-index: 30;
}

.gallery-item:hover img {
  transform: translateY(-10px) scale(1.18);
  box-shadow:
    0 28px 44px rgba(0, 0, 0, 0.22),
    0 12px 22px rgba(0, 0, 0, 0.12);
}

.gallery-item.is-near img {
  filter: brightness(0.75) saturate(0.85);
}

/* =========================
   HOVER INCREASE PIX
========================= */

.gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  font-size: 2rem;
  line-height: 1;
  color: #424a6d;
  opacity: 0;
  z-index: 5;
  padding: 0.28rem 0.34rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
  transition:
    opacity 0.28s ease,
    transform 0.22s ease,
    background 0.22s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-icon {
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1.02);
  background: rgba(255, 255, 255, 0.30);
  transition-delay: 0.2s;
}

/* =========================
   HYGIENE SECTION
========================= */

.hygiene-section {
  max-width: 740px;                     /* ← matches your intro width */
  margin: 2rem auto 0;
  padding: 1.2rem 1.4rem;

  background: #f5efe2;
  border-radius: 10px;

  box-shadow:
    0 14px 28px rgba(80, 60, 60, 0.10),
    0 3px 8px rgba(80, 60, 60, 0.05);
}

.hygiene-section h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.45rem;      /* ← same as gallery title */
  line-height: 1.2;
  font-weight: 300;        /* ← important: lighter */
  color: var(--color-heading);
  text-align: center;
}

.hygiene-section p {
  margin: 0 0 0.7rem 0;
  line-height: 1.55;
  font-size: 1rem;
  color: #4a4a4a;
}

.hygiene-section p:last-child {
  margin-bottom: 0;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(38, 38, 46, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
  z-index: 999;
}

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

.lightbox-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  max-width: 94vw;
  max-height: 90vh;
}

.lightbox-content img {
  display: block;
   max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.28),
    0 12px 24px rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.9rem;
  margin-top: -0.4rem;

  z-index: 10;

  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  font-size: 1.6rem;

  border: none;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
  color: #ffffff;

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 2.6rem;
  height: 2.6rem;
  border-radius: 11px;
  font-size: 2.2rem;

  border: none;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
  color: #ffffff;

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.lightbox-prev {
  right: 100%;
  margin-right: 0.9rem;
}

.lightbox-next {
  left: 100%;
  margin-left: 0.9rem;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-row:last-child {
  justify-content: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .gallery-intro {
    margin-top: 0.6rem;
  }
}

@media (max-width: 700px) {
  .gallery-section {
    padding: 0.75rem;
  }

  .gallery-intro h1 {
    font-size: 1.35rem;
  }

  .gallery-intro p {
    font-size: 0.96rem;
  }

   .gallery-intro p:nth-of-type(2) {
    display: none;
  }

  .lightbox-nav,
  .lightbox-close {
    background: rgba(255, 255, 255, 0.18);
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-content {
    max-width: min(94vw, 620px);
  }

  .lightbox-prev {
    left: 0.4rem;
    right: auto;
  }

  .lightbox-next {
    right: 0.4rem;
    left: auto;
  }

  .lightbox-close {
    top: 0.4rem;
    right: 0.4rem;
    left: auto;
  }

  .gallery-icon {
    display: none;
  }

    .hygiene-section {
    background: transparent;
    box-shadow: none;
    padding: 1.2rem 0.4rem 0;
    border-radius: 0;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .hygiene-section h2 {
    max-width: none;
  }
  
}