/* =========================================================
   GALLERY SECTION
   ========================================================= */

.gallery-sec-1 {
  position: relative;

  width: 100%;

  background: #f4efe3;

  overflow: hidden;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.gallery-sec-1-container {
  max-width: 1500px;
  width: 90%;
  margin: auto;

  padding: 150px 0 120px;
}

/* =========================================================
   HEADER
   ========================================================= */

.gallery-sec-1-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 80px;

  margin-bottom: 75px;
}

.gallery-sec-1-heading-wrap {
  max-width: 900px;
}

.gallery-sec-1-label {
  display: block;

  margin-bottom: 20px;

  color: #b28a32;

  font-family: "Inter", sans-serif;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 0.3em;

  text-transform: uppercase;
}

.gallery-sec-1-title {
  margin: 0;

  color: #7b4e22;

  font-family: "Cormorant Garamond", Georgia, serif;

  font-size: clamp(60px, 7vw, 80px);

  font-weight: 400;

  line-height: 0.82;

  letter-spacing: -0.045em;
}

.gallery-sec-1-title span {
  display: block;

  margin-left: clamp(35px, 6vw, 90px);

  color: #bd9136;

  font-style: italic;
}

.gallery-sec-1-description {
  max-width: 430px;

  margin: 0;

  color: #716557;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  font-weight: 300;

  line-height: 1.9;
}

/* =========================================================
   FILTERS
   ========================================================= */

.gallery-sec-1-filters {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 45px;

  padding-bottom: 15px;

  overflow-x: auto;

  scrollbar-width: none;
}

.gallery-sec-1-filters::-webkit-scrollbar {
  display: none;
}

.gallery-sec-1-filter {
  flex: 0 0 auto;

  padding: 9px 16px;

  color: #756958;

  font-family: "Inter", sans-serif;

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  background: transparent;

  border: 1px solid rgba(123, 78, 34, 0.22);

  cursor: pointer;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.gallery-sec-1-filter:hover {
  color: #7b4e22;

  border-color: #b28a32;
}

.gallery-sec-1-filter.active {
  color: #f4efe3;

  background: #7b4e22;

  border-color: #7b4e22;
}

/* =========================================================
   GALLERY GRID
   ========================================================= */

.gallery-sec-1-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 18px;
}

/* =========================================================
   GALLERY ITEM
   ========================================================= */

.gallery-sec-1-item {
  min-width: 0;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;
}

/* =========================================================
   IMAGE WRAPPER
   ========================================================= */

.gallery-sec-1-image-wrap {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: #ded5c5;
}

/* =========================================================
   IMAGE
   ========================================================= */

.gallery-sec-1-image {
  display: block;

  width: 100%;
  height: 100%;

  /*
   * This is the important part.
   *
   * The server can return:
   * - 16:9
   * - 4:3
   * - 1:1
   * - portrait
   * - any other size
   *
   * The UI remains the same size.
   */
  object-fit: cover;

  object-position: center;

  filter: grayscale(15%);

  transform: scale(1.01);

  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s ease;
}

/* =========================================================
   OVERLAY
   ========================================================= */

.gallery-sec-1-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,
    rgba(15, 16, 15, 0.85) 0%,
    rgba(15, 16, 15, 0.25) 50%,
    transparent 80%
  );

  opacity: 0.8;

  transition: opacity 0.4s ease;
}

/* =========================================================
   HOVER
   ========================================================= */

.gallery-sec-1-item:hover .gallery-sec-1-image {
  transform: scale(1.06);

  filter: grayscale(0%);
}

.gallery-sec-1-item:hover .gallery-sec-1-overlay {
  opacity: 1;
}

/* =========================================================
   ITEM CONTENT
   ========================================================= */

.gallery-sec-1-item-info {
  position: absolute;

  left: 22px;
  right: 22px;
  bottom: 20px;

  z-index: 2;
}

.gallery-sec-1-item-category {
  display: block;

  margin-bottom: 7px;

  color: #d0b16a;

  font-family: "Inter", sans-serif;

  font-size: 8px;
  font-weight: 500;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}

.gallery-sec-1-item-title {
  margin: 0;

  color: #f4efe3;

  font-family: "Cormorant Garamond", Georgia, serif;

  font-size: 30px;
  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -0.02em;
}

/* =========================================================
   HIDDEN
   ========================================================= */

.gallery-sec-1-item.is-hidden {
  display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.gallery-sec-1-footer {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 25px;

  margin-top: 100px;
}

.gallery-sec-1-footer-line {
  width: 100px;
  height: 1px;

  background: rgba(178, 138, 50, 0.45);
}

.gallery-sec-1-footer-text {
  color: #9a7a43;

  font-family: "Inter", sans-serif;

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.25em;

  text-transform: uppercase;

  white-space: nowrap;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .gallery-sec-1-container {
    padding: 120px 0 100px;
  }

  .gallery-sec-1-header {
    align-items: flex-start;

    flex-direction: column;

    gap: 30px;

    margin-bottom: 60px;
  }

  .gallery-sec-1-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
  }
}

/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {
  .gallery-sec-1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .gallery-sec-1-item-title {
    font-size: 27px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .gallery-sec-1-container {
    width: 88%;

    padding: 80px 0 70px;
  }

  .gallery-sec-1-label {
    margin-bottom: 14px;

    font-size: 8px;

    letter-spacing: 0.22em;
  }

  .gallery-sec-1-title {
    font-size: clamp(52px, 15vw, 72px);

    line-height: 0.88;
  }

  .gallery-sec-1-title span {
    margin-left: 25px;
  }

  .gallery-sec-1-description {
    font-size: 13px;

    line-height: 1.85;
  }

  .gallery-sec-1-filters {
    margin-bottom: 30px;

    gap: 7px;
  }

  .gallery-sec-1-filter {
    padding: 8px 12px;

    font-size: 8px;
  }

  .gallery-sec-1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .gallery-sec-1-item {
    aspect-ratio: 1 / 1;
  }

  .gallery-sec-1-item-info {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .gallery-sec-1-item-category {
    margin-bottom: 5px;

    font-size: 6px;
  }

  .gallery-sec-1-item-title {
    font-size: 23px;
  }

  .gallery-sec-1-footer {
    gap: 12px;

    margin-top: 60px;
  }

  .gallery-sec-1-footer-line {
    width: 45px;
  }

  .gallery-sec-1-footer-text {
    font-size: 7px;

    letter-spacing: 0.14em;
  }
}
