/* =========================================================
   08. ARTICLES + ADAPTIVE
   ========================================================= */

.product-articles {
  padding-top: 62px;
  padding-right: var(--page-right-gap);
  padding-bottom: 72px;
  padding-left: var(--page-left-gap);
}

.product-articles h2 {
  margin: 0 0 30px;

  font-size: clamp(25px, 2vw, 32px);
  font-weight: 300;
}

.product-articles__grid {
  display: grid;

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

  gap: 26px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.article-card {
  min-width: 0;
}

.article-card__image {
  width: 100%;

  margin: 0;

  overflow: hidden;

  aspect-ratio: 1.62;
}

.article-card__image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 600ms cubic-bezier(.2,.7,.2,1);
}

.article-card:hover .article-card__image img {
  transform: scale(1.018);
}

.article-card h3 {
  margin: 18px 0 0;

  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 600;
  line-height: 1.25;
}


/* --- max-width: 1024px --- */

@media (max-width: 1024px) {

  .product-articles {
    padding-right: var(--tablet-page-gap);
    padding-left: var(--tablet-page-gap);
  }

}


/* --- max-width: 760px --- */

@media (max-width: 760px) {

  .product-articles__grid {
    grid-template-columns: 1fr;

    gap: 42px;
  }

  .article-card__image {
    aspect-ratio: 1.5;
  }

}


/* --- max-width: 480px --- */

@media (max-width: 480px) {

  .product-articles {
    padding-top: 52px;
    padding-right: var(--mobile-page-gap);
    padding-bottom: 60px;
    padding-left: var(--mobile-page-gap);
  }

  .article-card h3 {
    font-size: 19px;
  }

}

/* =========================================================
   09. GALLERY LIGHTBOX + ADAPTIVE
   ========================================================= */

.gallery-lightbox {
  position: fixed;
  z-index: 100;

  inset: 0;

  display: grid;

  grid-template-columns:
    70px
    minmax(0, 1fr)
    70px;

  align-items: center;

  padding: 36px;

  color: #fff;
  background: rgb(0 0 0 / 88%);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}


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


.gallery-lightbox__close {
  position: absolute;

  z-index: 2;

  top: 20px;
  right: 24px;

  width: 46px;
  height: 46px;

  padding: 0;

  border: 0;

  color: #fff;
  background: transparent;

  font-size: 42px;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;
}


.gallery-lightbox__arrow {
  display: grid;

  width: 56px;
  height: 56px;

  place-items: center;

  padding: 0;

  border: 0;

  color: #fff;
  background: transparent;

  font-size: 34px;

  cursor: pointer;
}


.gallery-lightbox__arrow--prev {
  justify-self: start;
}


.gallery-lightbox__arrow--next {
  justify-self: end;
}


.gallery-lightbox__figure {
  display: grid;

  width: 100%;
  height: calc(100dvh - 72px);

  place-items: center;
}


.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}


/* --- LIGHTBOX: max-width 640 --- */

@media (max-width: 640px) {

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

    padding: 24px 8px;
  }


  .gallery-lightbox__arrow {
    width: 42px;
    height: 42px;

    font-size: 28px;
  }


  .gallery-lightbox__close {
    top: 12px;
    right: 10px;
  }

}


