.gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  margin-bottom: 32px;
}
.gallery-intro h2 {
  font: 900 clamp(48px, 6vw, 78px)/0.86 "Barlow Condensed";
  text-transform: uppercase;
  margin: 0 0 15px;
}
.gallery-intro p {
  margin: 0;
  color: #626868;
  line-height: 1.7;
  max-width: 550px;
}
.gallery-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.gallery-tab {
  border: 1px solid #bbbdb8;
  background: transparent;
  padding: 11px 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}
.gallery-tab.active,
.gallery-tab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: #d6d6d0;
  border: 1px solid #c6c7c2;
}
.gallery-item.featured {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.05);
}
.gallery-item.featured img {
  object-position: center;
}
.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 18px 17px;
  background: linear-gradient(transparent, rgba(11, 13, 14, 0.88));
  color: #fff;
}
.gallery-overlay strong,
.gallery-overlay span {
  display: block;
}
.gallery-overlay strong {
  font: 700 27px/0.9 "Barlow Condensed";
  text-transform: uppercase;
}
.gallery-overlay span {
  font-size: 10px;
  color: #c8cccc;
  margin-top: 6px;
}
.gallery-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  background: repeating-linear-gradient(
    135deg,
    #e0dfd9,
    #e0dfd9 10px,
    #d9d8d2 10px,
    #d9d8d2 11px
  );
  color: #646a6a;
}
.gallery-placeholder strong {
  font: 700 28px/0.9 "Barlow Condensed";
  text-transform: uppercase;
  color: var(--ink);
}
.gallery-placeholder span {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 190px;
}
.gallery-note {
  background: var(--ink);
  color: #fff;
  margin-top: 45px;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.gallery-note p {
  margin: 0;
  color: #b8bebe;
  font-size: 13px;
  line-height: 1.6;
}
.gallery-note strong {
  font-family: "Barlow Condensed";
  font-size: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .gallery-intro {
    display: block;
  }
  .gallery-intro .button {
    margin-top: 22px;
  }
  .gallery-tabs {
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .gallery-tab {
    white-space: nowrap;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
    gap: 10px;
  }
  .gallery-item.featured {
    grid-column: 1/-1;
    grid-row: span 2;
  }
  .gallery-overlay {
    padding: 35px 12px 12px;
  }
  .gallery-overlay strong {
    font-size: 22px;
  }
  .gallery-note {
    display: block;
    padding: 24px 20px;
  }
  .gallery-note strong {
    display: block;
    margin-bottom: 10px;
  }
}
