/* Gallery -------------------------------------------------------------------- */
.gallery {
  --g-gap: 38px;
  padding: 50px 0;
  overflow: hidden;
}
@media (min-width: 768px) { .gallery { --g-gap: 11px; } }
@media (min-width: 1024px) { .gallery { --g-gap: 15px; } }
@media (min-width: 1280px) { .gallery { --g-gap: 20px; } }
@media (min-width: 1440px) { .gallery { --g-gap: 22px; } }
@media (min-width: 1920px) { .gallery { --g-gap: 30px; } }
@media (min-width: 2500px) { .gallery { --g-gap: 40px; } }

.gallery__block { display: flex; flex-direction: column; gap: var(--g-gap); margin-bottom: 75px; }
.gallery__block--bottom { position: relative; z-index: 40; margin-top: -150px; }
/* Tablet/desktop: overlap more of the arch's empty lower legs (less white space under the button). */
@media (min-width: 768px) { .gallery__block--bottom { margin-top: -270px; } }
@media (min-width: 2500px) { .gallery__block--bottom { margin-top: -300px; } }

.g-row { display: flex; flex-wrap: wrap; gap: var(--g-gap); }
.g-row--end { align-items: flex-end; }
.g-row--justify-center { justify-content: center; }
.g-col { display: flex; flex-direction: column; gap: var(--g-gap); }
/* No wrapping: with an indefinite height it never wraps anyway, and column-wrap
   mis-sizes rows whose lazy images haven't loaded yet. */
@media (min-width: 1536px) { .g-row { justify-content: space-between; } }

/* Column widths (≥768). Below that every tile is full width. */
.g-col, .tile { width: 100%; }
@media (min-width: 768px) {
  .g-col, .tile { width: auto; }
  .tile--full { width: 100%; }
  .basis-23 { max-width: 23.4%; flex: 1 1 23.4%; }
  .basis-33 { max-width: 33.11%; flex: 1 1 33.11%; }
  .basis-44 { max-width: 44%; flex: 1 1 44%; }
  .basis-54 { max-width: 54.3%; flex: 1 1 54.3%; }
  .basis-65 { max-width: 65.4%; flex: 1 1 54.4%; }
  .basis-73 { max-width: 73.5%; flex: 1 1 73.5%; }
  .tile--tall-md { height: 90%; }
}
.tile--tall-all { height: 90%; }

/* GalleryItem */
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.tile__media { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Stacked tiles size from the image ratio (a % height would resolve to 0 there). */
.g-col > .tile > .tile__media { height: auto; }

/* Reveal-on-scroll styles live in base.css ([data-reveal]). */

/* Inner hairline frame with sparkles on two corners. */
.tile__frame {
  position: absolute;
  border: 1px solid #fff;
  border-radius: var(--frame-radius);
  color: #fff;
  pointer-events: none;
}
.tile__frame--inset-2 { top: 2%; left: 2%; width: 96%; height: 96%; }
.tile__frame--inset-3 { top: 3%; left: 3%; width: 94%; height: 94%; }
.tile__frame--dark { border-color: #000; color: #000; }
.tile__spark { position: absolute; display: block; line-height: 0; }
.tile__spark--tl { top: -9px; left: -7px; }
.tile__spark--br { bottom: -9px; right: -7px; }
.tile__spark--tl-out { top: -16px; left: -12px; }
.tile__spark--br-out { bottom: -16px; right: -12px; }
.tile__spark--tl-in { top: 8px; left: 8px; }
.tile__spark--br-in { bottom: 8px; right: 8px; }

/* Outlined pill with three dots. */
.tile--ring { overflow: visible; padding: 10px; border: 1px solid #000; }
.tile--ring .tile__media { border-radius: var(--radius); }
.tile__dots { position: absolute; top: 7.2%; right: 13.5%; width: 5.2%; height: auto; }
@media (max-width: 1336px) { .tile__dots { top: 7%; } }
@media (max-width: 750px) { .tile__dots { top: 7.1%; } }
@media (min-width: 2500px) { .tile__dots { top: 7.9%; width: 30px; } }

/* Rounded hairline frame with two corner circles. */
.tile__frame--circles { top: 2%; left: 3%; width: 94%; height: 96%; border-radius: 24px; }
.tile__circle { position: absolute; width: 24px; height: 24px; border: 1px solid #fff; border-radius: 50%; }
.tile__circle--tl { top: 10px; left: 10px; }
.tile__circle--br { bottom: 10px; right: 10px; }

/* Spoon feature ------------------------------------------------------------- */
.spoon__headline { position: relative; z-index: 10; display: flex; justify-content: center; text-align: center; }
.spoon__stage { position: relative; }

.spoon__arch { position: relative; width: 100%; max-width: 833px; height: 1323px; margin: 140px auto 0; }
.spoon__arch img { width: 100%; height: 100%; object-fit: cover; }

.spoon__plate {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: 100%;
  max-width: 473px;
  max-height: 473px;
  overflow: hidden;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  transform: translate(-50%, 40%);
}
.spoon__plate-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.spoon__plate-inner > img { width: 100%; height: 100%; object-fit: cover; }
.spoon__fork {
  position: absolute;
  top: -2%;
  left: 0;
  right: 0;
  z-index: 31;
  width: 100%;
  max-width: 390px;
  max-height: 900px;
  margin: 0 auto;
  will-change: transform;
}
.spoon__fork img { width: 100%; height: 100%; object-fit: cover; }
.spoon__dust {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 100%;
  max-width: 390px;
  transform: translate(-30%, -46%);
}
.spoon__dust img { width: 100%; height: 100%; object-fit: cover; }

/* Floating ingredients (mouse parallax). */
.spoon__floating {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  margin-top: 20%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.spoon__scene { position: relative; width: 100%; height: 100%; }
.spoon__layer { position: absolute; top: 0; left: 0; display: block; will-change: transform; }
.spoon__layer:first-child { position: relative; }
.spoon__layer img { width: 100%; height: 100%; object-fit: cover; }
.spoon__layer--leaf { margin-left: calc(100% - 25vw); margin-top: -25%; }
.spoon__layer--stones-two { margin-left: calc(100% - 37vw); margin-top: 16%; }
.spoon__layer--stone-single { margin-left: 17%; margin-top: 25%; }
.spoon__layer--stones-three { margin-left: 23%; margin-top: 31%; }
.spoon__layer--onion { margin-left: 0; margin-top: 50%; }

@media (min-width: 1800px) {
  .spoon__layer--leaf { margin-top: -20%; }
  .spoon__layer--stones-two { margin-left: calc(100% - 35vw); margin-top: 22%; }
  .spoon__layer--stone-single { margin-top: 20%; }
  .spoon__layer--stones-three { margin-top: 25%; }
  .spoon__layer--onion { margin-top: 40%; margin-left: 12%; }
}
@media (min-width: 1920px) { .spoon__fork { top: -8%; } }
@media (min-width: 2500px) {
  .spoon__layer--leaf { margin-top: -14%; }
  .spoon__layer--stones-two { margin-left: calc(100% - 40vw); margin-top: 13%; }
  .spoon__layer--stone-single { margin-top: 15%; margin-left: 26%; }
  .spoon__layer--stones-three { margin-top: 18%; margin-left: 28%; }
  .spoon__layer--onion { margin-top: 35%; margin-left: 22%; }
}

.spoon__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 40;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
  transform: translate(-50%, 50%);
  pointer-events: none;
}
.spoon__cta .circle-btn { pointer-events: auto; }

@media (max-width: 768px) {
  .spoon__floating { display: none; }
  .spoon__fork { max-width: 300px; }
}
@media (max-width: 1024px) {
  .spoon__arch { margin-top: 100px; }
}
@media (max-width: 430px) {
  .spoon__fork { max-width: 288px; max-height: 731px; }
}

/* Phones: headline kept off the edges; the arch is only as tall as its content
   (plate + button) and the button sits right under the plate.
   --plate = plate size (full width, max 473px); the plate starts at 40% of it. */
@media (max-width: 767px) {
  .spoon { --plate: min(100vw, 473px); }
  .spoon__headline { padding: 0 40px; }
  .spoon__headline .section-headline { max-width: 320px; text-wrap: balance; }
  .spoon__arch {
    margin-top: 30px;
    /* plate (1.4 × size) + 24 gap + 160 button + 60 gap + 150 overlapped by the next photos */
    height: calc(var(--plate) * 1.4 + 394px);
  }
  .spoon__cta {
    top: calc(var(--plate) * 1.4 + 24px);
    margin-top: 0;
    transform: translateX(-50%);
  }
}
