/* Photo section: "Mosaic" design (chosen by Alai, V2.8 round 6, 24 Oct 2026),
   with the food photos in a slider below. */

/* ---------- Shared: the food slider ---------- */
#gallery .food-strip{ margin-top: 2.2rem; }
#gallery .food-strip-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
#gallery .food-strip-head h3{ margin: 0; font-size: 1.35rem; }
#gallery .strip-arrows{ display: flex; gap: .5rem; }
#gallery .strip-arrow{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sun-mint);
  border: 0;
  color: #2c4220;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
#gallery .strip-arrow:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px rgba(120,170,110,.35); }
/* V2.8 round 13: sun-to-mint, like the hero's "Apply for a place" */
#gallery .food-row{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 16px 22px;
  margin: 0 -16px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
#gallery .food-row::-webkit-scrollbar{ display: none; }
#gallery .food-item{ flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
#gallery .food-item .gallery-img{ height: 240px; }
#gallery .food-item figcaption{ font-size: 1rem; padding: .7rem .9rem; }

/* Captions on the photo instead of under it */
#gallery .gallery-item{ position: relative; }
#gallery .gallery-item figcaption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem .9rem .7rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(20,36,22,0), rgba(20,36,22,.7));
  pointer-events: none;
}

/* ---------- 3 Mosaic: the deck and the house big on the sides, four small photos between ---------- */
#gallery .gallery-grid{
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 200px 200px;
  grid-template-areas:
    "a a b c f f"
    "a a d e f f";
  gap: 1rem;
}
#gallery .gallery-grid > .gallery-item:nth-child(1){ grid-area: a; }
#gallery .gallery-grid > .gallery-item:nth-child(2){ grid-area: b; }
#gallery .gallery-grid > .gallery-item:nth-child(3){ grid-area: c; }
#gallery .gallery-grid > .gallery-item:nth-child(4){ grid-area: d; }
#gallery .gallery-grid > .gallery-item:nth-child(5){ grid-area: e; }
#gallery .gallery-grid > .gallery-item:nth-child(6){ grid-area: f; }
#gallery .gallery-grid .gallery-btn,
#gallery .gallery-grid .gallery-img,
#gallery .gallery-grid .gallery-item.wide .gallery-img,
#gallery .gallery-grid .gallery-item.portrait .gallery-img{ height: 100%; }
#gallery .food-item{ flex-basis: calc((100% - 48px) / 4); }
#gallery .food-item .gallery-img{ height: 300px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 980px){
  #gallery .food-item{ flex-basis: calc((100% - 32px) / 3); }
  #gallery .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 150px 150px 200px;
    grid-template-areas: "a a" "b c" "d e" "f f";
  }
}
@media (max-width: 640px){
  #gallery .food-item{ flex-basis: 70%; }
}
