/* =========================================================
   GALERÍA
========================================================= */

.gallery-page {
  width: 100%;
  min-height: 100vh;

  padding: 100px 5vw 80px;

  background: transparent;

  color: #ffffff;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.gallery-header {
  max-width: 900px;

  margin: 0 auto 70px;

  text-align: center;
}

.gallery-brand {
  font-size: 14px;

  letter-spacing: 6px;

  color: #ffffff;

  margin-bottom: 25px;
}

.gallery-header h1 {
  margin: 0 0 25px;

  font-size: clamp(55px, 8vw, 110px);

  font-weight: normal;

  line-height: 1;

  letter-spacing: 5px;

  text-transform: uppercase;

  color: #f0d58c;
}

.gallery-subtitle {
  margin-bottom: 30px;

  font-family: Arial, sans-serif;

  font-size: 13px;

  letter-spacing: 5px;

  text-transform: uppercase;

  color: #ffffff;
}

.gallery-intro {
  max-width: 750px;

  margin: 0 auto;

  font-family: Arial, sans-serif;

  font-size: 16px;

  line-height: 1.8;

  color: #eeeeee;
}


/* =========================================================
   GRID
========================================================= */

.gallery-grid {
  width: 100%;

  max-width: 1500px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}


/* =========================================================
   IMÁGENES
========================================================= */

.gallery-item {
  position: relative;

  width: 100%;

  overflow: hidden;

  background: #071f19;

  border: none;

  cursor: pointer;

  aspect-ratio: 4 / 5;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}


/* =========================================================
   HOVER
========================================================= */

.gallery-item::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.4),
      transparent 50%
    );

  opacity: 0;

  transition: opacity 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);

  filter: brightness(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}


/* =========================================================
   FOOTER GALERÍA
========================================================= */

.gallery-footer {
  width: 100%;

  margin-top: 80px;

  text-align: center;

  display: flex;

  flex-direction: column;

  align-items: center;
}


/* =========================================================
   LÍNEA DECORATIVA DEL FOOTER
========================================================= */

.gallery-line {
  display: block;

  width: 100px;

  height: 1px;

  margin-bottom: 25px;

  background: #d8b56b;
}


/* =========================================================
   TEXTO DEL FOOTER
========================================================= */

.gallery-footer .location {
  width: 100%;

  margin: 0;

  text-align: center;

  font-family: Arial, sans-serif;

  font-size: 11px;

  letter-spacing: 3px;

  line-height: 1.7;

  color: #aaaaaa;

  text-transform: uppercase;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px;

  background: rgba(0, 0, 0, 0.95);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.gallery-lightbox.active {
  opacity: 1;

  visibility: visible;
}

.gallery-lightbox img {
  max-width: 90vw;

  max-height: 90vh;

  width: auto;

  height: auto;

  object-fit: contain;

  box-shadow:
    0 25px 100px rgba(0, 0, 0, 0.8);

  transform: scale(0.85);

  transition: transform 0.4s ease;
}

.gallery-lightbox.active img {
  transform: scale(1);
}


/* =========================================================
   CERRAR LIGHTBOX
========================================================= */

.lightbox-close {
  position: absolute;

  top: 25px;

  right: 30px;

  width: 48px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.45);

  color: #ffffff;

  font-size: 32px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.lightbox-close:hover {
  background: #cba85f;

  border-color: #cba85f;

  color: #102d25;

  transform: rotate(90deg);
}


/* =========================================================
   FLECHAS
========================================================= */

.lightbox-navigation {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 55px;

  height: 55px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.45);

  color: #ffffff;

  font-size: 28px;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.lightbox-navigation:hover {
  background: #cba85f;

  border-color: #cba85f;

  color: #102d25;

  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .gallery-page {
    padding: 80px 25px 60px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
  }

  .gallery-header {
    margin-bottom: 50px;
  }

  .gallery-header h1 {
    font-size: clamp(50px, 9vw, 90px);
  }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

  .gallery-page {
    padding: 55px 15px 50px;
  }

  .gallery-header {
    margin-bottom: 40px;
  }

  .gallery-brand {
    font-size: 11px;

    letter-spacing: 4px;

    margin-bottom: 20px;
  }

  .gallery-header h1 {
    font-size: 45px;

    letter-spacing: 2px;

    margin-bottom: 20px;
  }

  .gallery-subtitle {
    font-size: 10px;

    letter-spacing: 3px;

    margin-bottom: 25px;
  }

  .gallery-intro {
    font-size: 14px;

    line-height: 1.7;
  }

  .gallery-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .gallery-lightbox {
    padding: 15px;
  }

  .gallery-lightbox img {
    max-width: 95vw;

    max-height: 80vh;
  }

  .lightbox-close {
    top: 15px;

    right: 15px;

    width: 40px;

    height: 40px;

    font-size: 27px;
  }

  .lightbox-navigation {
    width: 42px;

    height: 42px;

    font-size: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}


/* =========================================================
   FOOTER MÓVIL
========================================================= */

@media (max-width: 600px) {

  .gallery-footer {
    margin-top: 50px;
  }

  .gallery-line {
    display: block;

    width: 70px;

    height: 1px;

    margin-bottom: 20px;

    background: #d8b56b;
  }

  .gallery-footer .location {
    font-size: 8px;

    letter-spacing: 1.5px;
  }
}
