/* ==========================================================
   SECTION 4 / GALERÍA
========================================================== */

.gallery-section {
  position: relative;

  width: 100%;

  background-color: #f5f0ea;
  color: #171716;

  overflow: hidden;
}


/* ----------------------------------------------------------
   CONTAINER
---------------------------------------------------------- */

.gallery-container {
  padding-top: 55px;
  padding-bottom: 90px;
}


/* ==========================================================
   HEADING
========================================================== */

.gallery-heading {
  margin-bottom: 55px;
}


/* EYEBROW */

.gallery-eyebrow {
  display: block;

  margin-bottom: 24px;

  font-family: var(--font-primary);

  font-size: 12px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: 0.25em;

  text-transform: uppercase;

  color: #4a5750;
}


/* TITLE */

.gallery-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size: clamp(58px, 4vw, 78px);

  font-weight: 400;

  line-height: 1;

  letter-spacing: -0.025em;

  color: #171716;
}


/* ==========================================================
   GALLERY GRID
========================================================== */

.gallery-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, 0.9fr);

  gap: 16px;

  width: 100%;
}

.gallery-side {
  display: grid;

  grid-template-rows: repeat(2, 1fr);

  gap: 16px;
}

/* ----------------------------------------------------------
   RIGHT COLUMN
---------------------------------------------------------- */

.gallery-side {
  display: grid;

  grid-template-rows: repeat(2, minmax(0, 1fr));

  gap: 16px;
}


/* ==========================================================
   IMAGE
========================================================== */

.gallery-item {
  position: relative;

  width: 100%;

  overflow: hidden;

  background-color: #e7e1db;
}


/* MAIN IMAGE */

.gallery-item-main {
  height: 745px;
}


/* SMALL IMAGES */

.gallery-item-small {
  height: 364.5px;
}

/* IMAGE */

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1);

  transition:
    transform 0.8s cubic-bezier(.2,.65,.3,1),
    filter 0.5s ease;
}


/* ==========================================================
   HOVER / ZOOM
========================================================== */

@media (hover: hover) {

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

}


/* ==========================================================
   OPTIONAL VERY SUBTLE OVERLAY
========================================================== */

.gallery-item::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-color: rgba(0, 0, 0, 0);

  transition: background-color 0.5s ease;
}


@media (hover: hover) {

  .gallery-item:hover::after {
    background-color: rgba(0, 0, 0, 0.035);
  }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {

  .gallery-container {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .gallery-heading {
    margin-bottom: 45px;
  }

  .gallery-grid {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(0, 1fr);

    gap: 12px;
  }

  .gallery-side {
    gap: 12px;
  }

  .gallery-item-main {
    height: 520px;
  }

  .gallery-item-small {
    height: 254px;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

  .gallery-container {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .gallery-heading {
    margin-bottom: 35px;
  }

  .gallery-eyebrow {
    margin-bottom: 18px;

    font-size: 10px;
  }

  .gallery-title {
    font-size: clamp(46px, 12vw, 60px);
  }


  /* UNA SOLA COLUMNA */

  .gallery-grid {
    display: block;
  }

  .gallery-side {
    display: block;
  }

  .gallery-item {
    margin-bottom: 12px;
  }

  .gallery-side .gallery-item:last-child {
    margin-bottom: 0;
  }


  .gallery-item-main {
    height: 520px;
  }

  .gallery-item-small {
    height: 320px;
  }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

  .gallery-container {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .gallery-title {
    font-size: 44px;
  }

  .gallery-item-main {
    height: 460px;
  }

  .gallery-item-small {
    height: 260px;
  }

  .gallery-section {
    padding: 0 2em;
  }

}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}