/* Match the Proyectos gallery: same portrait crops, spacing and side arrows. */
.plants-gallery {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}
.plants-gallery.is-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.plants-gallery.is-ready .plants-work-grid {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.plants-gallery.is-ready .plants-work-grid::-webkit-scrollbar { display: none; }
.plants-gallery.is-ready .plants-work-grid figure {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.plants-gallery .plants-photo { overflow: hidden; border-radius: 4px; }
.plants-gallery .plants-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.plants-gallery .plants-photo:focus-visible {
  outline: 3px solid var(--cream, #f6f6e9);
  outline-offset: -6px;
  box-shadow: inset 0 0 0 3px var(--forest, #2e5b47);
}
.plants-gallery-navigation[hidden] { display: none; }
.plants-gallery.is-ready .plants-gallery-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 36px -22px 0;
  z-index: 2;
  pointer-events: none;
}
.plants-gallery-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #809084;
  cursor: pointer;
  pointer-events: auto;
}
.plants-gallery-navigation svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.plants-gallery-navigation button:focus-visible { outline: 2px solid #2e5b47; outline-offset: -2px; }
@media (hover: hover) { .plants-gallery-navigation button:hover { color: #2e5b47; } }
@media (min-width: 761px) and (max-width: 1000px) {
  .plants-gallery.is-ready .plants-work-grid figure { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 760px) {
  .plants-gallery { width: min(480px, calc(100% - 48px)); }
  .plants-gallery.is-ready .plants-work-grid { gap: 12px; }
  .plants-gallery.is-ready .plants-work-grid figure { flex-basis: 100%; }
  .plants-gallery.is-ready .plants-gallery-navigation { margin-top: 28px; }
}
@media (hover: hover) and (pointer: fine) {
  .plants-gallery.is-ready .plants-work-grid,
  .plants-gallery.is-ready .plants-photo { cursor: grab; }
  .plants-gallery.is-ready img { user-select: none; -webkit-user-drag: none; }
}
.plants-gallery.is-ready .plants-work-grid.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.plants-gallery.is-ready .plants-work-grid.is-dragging,
.plants-gallery.is-ready .plants-work-grid.is-dragging .plants-photo { cursor: grabbing; }
