/* The gallery-sites block (blocks/gallery-sites.php): what the Von Block classes cannot say */

/* Screenshots keep their 16:10 shape and a thin frame */
.vb-gallery-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e6dcc6;
  background: #16120e;
}
.vb-gallery-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A starter that is not out yet: shown, not clickable; its long label may wrap on a phone */
.vb-gallery-soon { opacity: 0.55; cursor: default; white-space: normal; max-width: 100%; }
.vb-gallery-soon .wp-block-button__link { white-space: normal; text-align: center; pointer-events: none; }

/* Grid: the closing card spans the row when it would stand alone */
.vb-gallery-next--wide { grid-column: 1 / -1; }

/* Slider: one site at a time, sliding sideways */
.vb-gallery--slider { position: relative; }
.vb-gallery-track { display: flex; overflow: hidden; border-radius: 8px; }
.vb-gallery-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  padding: 30px;
  background: #fffdf7;
  border: 1px solid #e6dcc6;
  border-radius: 8px;
  box-sizing: border-box;
  transition: transform 0.6s ease;
}
.vb-gallery-slide-words { min-width: 0; }
@container (max-width: 767px) {
  .vb-gallery-slide { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}
@media (max-width: 767px) {
  .vb-gallery-slide { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}

.vb-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.vb-gallery-dots { display: flex; gap: 10px; }
.vb-gallery-dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: #d8cbb0; cursor: pointer; transition: background-color 0.2s, transform 0.2s;
}
.vb-gallery-dot[aria-current="true"] { background: #a4161a; transform: scale(1.25); }
.vb-gallery-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d8cbb0; background: #fffdf7;
  color: #231c15; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.vb-gallery-arrow:hover, .vb-gallery-arrow:focus-visible { border-color: #a4161a; color: #a4161a; }
.vb-gallery-dot:focus-visible, .vb-gallery-arrow:focus-visible { outline: 2px solid #a4161a; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .vb-gallery-slide { transition: none; }
}
