/* ─── Sticky Grid Scroll ─── */
/* Source: https://github.com/theoplawinski/codrops-sticky-grid-scroll */

.block--main {
  position: relative;
  height: 425vh;
  background: var(--color-black);
  z-index: 1;
  isolation: isolate; /* contain all stacking contexts — prevent bleed to other sections */
}

.block__wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  will-change: transform;
}

/* ─── Center content (title, desc, button) ─── */
.content {
  position: relative;
  z-index: 1;           /* matches original */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
  pointer-events: none;
}

.content__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.content__description {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  max-width:600px;
  line-height: 1.75;
  margin: 0 0 2rem;
}

.content__button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 32px;
  pointer-events: all;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.content__button:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Gallery — absolutely centered over content ─── */
.gallery {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 51vw;          /* 736px at 1440px — matches original */
  pointer-events: none;
}

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.2vw;    /* 32px at 1440px */
  row-gap: 2.75vw;      /* 40px at 1440px */
  will-change: transform;
}

.gallery__item {
  aspect-ratio: 1;      /* square — matches original */
  overflow: hidden;
  will-change: transform;
}

/* White placeholder — swap for real img later */
.gallery__image {
  width: 100%;
  height: 100%;
  display: block;
  background-color: rgba(255, 255, 255, 0.88);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .gallery { width: 75vw; }
}

@media (max-width: 768px) {
  .gallery { width: 90vw; }
  .content__title { font-size: clamp(28px, 6vw, 48px); }
}
