/* Structured editorial gallery */
.gallerySection {
  position: relative;
  padding: 142px 5vw 150px;
  background:
    radial-gradient(circle at 90% 5%, rgba(197, 161, 99, .12), transparent 26%),
    linear-gradient(180deg, #f7f1e7, #fbf8f1 58%);
  overflow: hidden;
}

.gallerySection::before {
  content: "KIZILAY · ANKARA · URBAN STAY";
  position: absolute;
  right: 2vw;
  top: 185px;
  writing-mode: vertical-rl;
  font-size: 6px;
  letter-spacing: .35em;
  color: rgba(84, 22, 34, .35);
}

.galleryHeader {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  gap: 7vw;
  padding: 0 4vw 72px;
  border-bottom: 1px solid rgba(107, 87, 68, .18);
  margin-bottom: 18px;
}

.galleryHeader h2 {
  font-size: clamp(54px, 5.7vw, 88px);
  letter-spacing: -.045em;
}

.galleryHeader > p {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 30px;
  font-size: 16px;
  color: #695b50;
}

.galleryHeader > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--gold);
}

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 315px 315px 300px;
  gap: 14px;
  padding: 0 4vw;
}

.galleryItem {
  isolation: isolate;
  box-shadow: 0 14px 45px rgba(42, 29, 19, .08);
}

.galleryItem::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(20, 11, 9, .72));
  opacity: .78;
  transition: opacity .45s ease;
}

.galleryItem::after {
  content: attr(data-label);
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 23px;
  max-width: calc(100% - 82px);
  color: #fff8ec;
  font: 400 17px/1.25 Georgia, serif;
  text-align: left;
  letter-spacing: .01em;
}

.galleryItem img {
  display: block;
  transform: scale(1.01);
  transition: transform .9s cubic-bezier(.2, .75, .2, 1), filter .5s ease;
  filter: saturate(.88) contrast(1.02);
}

.galleryItem:hover img { transform: scale(1.065); filter: saturate(1.04) contrast(1.02); }
.galleryItem:hover::before { opacity: .94; }

.galleryItem span {
  z-index: 3;
  left: 22px;
  top: 20px;
  bottom: auto;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(17, 10, 9, .22);
  backdrop-filter: blur(7px);
  font: 600 8px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.galleryItem i {
  z-index: 3;
  top: auto;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(18, 10, 9, .2);
  backdrop-filter: blur(8px);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.galleryItem:hover i { transform: rotate(45deg); background: #f1dfbc; color: #3a141b; }

.galleryGrid .item1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.galleryGrid .item2 { grid-column: 8 / 13; grid-row: 1; }
.galleryGrid .item3 { grid-column: 8 / 10; grid-row: 2; }
.galleryGrid .item4 { grid-column: 10 / 13; grid-row: 2; }
.galleryGrid .item5 { grid-column: 1 / 7; grid-row: 3; }
.galleryGrid .item6 { grid-column: 7 / 13; grid-row: 3; }

.galleryGrid .item1::after { font-size: 24px; }
.galleryGrid .item3::after,
.galleryGrid .item4::after { font-size: 14px; }
.galleryGrid .item3 img { object-position: 62% center; }
.galleryGrid .item6 img { object-position: center 58%; }

@media (max-width: 900px) {
  .gallerySection { padding: 100px 14px 110px; }
  .gallerySection::before { display: none; }
  .galleryHeader { grid-template-columns: 1fr; gap: 28px; padding: 0 18px 50px; }
  .galleryHeader > p { max-width: 520px; }
  .galleryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 440px repeat(3, 260px);
    padding: 0;
    gap: 10px;
  }
  .galleryGrid .item1 { grid-column: 1 / 3; grid-row: 1; }
  .galleryGrid .item2 { grid-column: 1; grid-row: 2; }
  .galleryGrid .item3 { grid-column: 2; grid-row: 2; }
  .galleryGrid .item4 { grid-column: 1; grid-row: 3; }
  .galleryGrid .item5 { grid-column: 2; grid-row: 3; }
  .galleryGrid .item6 { grid-column: 1 / 3; grid-row: 4; }
}

@media (max-width: 560px) {
  .galleryGrid { display: grid; grid-template-columns: 1fr; grid-template-rows: 390px repeat(5, 260px); }
  .galleryGrid .item1,
  .galleryGrid .item2,
  .galleryGrid .item3,
  .galleryGrid .item4,
  .galleryGrid .item5,
  .galleryGrid .item6 { grid-column: 1; grid-row: auto; }
  .galleryItem::after, .galleryGrid .item1::after { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .galleryItem img, .galleryItem i { transition: none; }
  .galleryItem:hover img, .galleryItem:hover i { transform: none; }
}
