.gallery-videos {
  padding-top: 0;
}

.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 290px));
  align-items: stretch;
  justify-content: center;
  gap: 22px;
}

.gallery-video {
  min-width: 0;
  padding: 12px 12px 18px;
  background: var(--paper, #fffaf4);
  border: 1.5px solid #e7acc1;
  border-radius: 23px;
  box-shadow: 5px 5px 0 #ffccdb;
}

.gallery-video:nth-child(3n+2) {
  border-color: #d7be64;
  box-shadow: 5px 5px 0 #ffe187;
}

.gallery-video:nth-child(3n) {
  border-color: #b9cd7c;
  box-shadow: 5px 5px 0 #dceaa7;
}

.gallery-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  object-fit: contain;
  background: #23191e;
}

.gallery-video>div {
  margin-top: 13px;
  padding-inline: 4px;
  overflow-wrap: anywhere;
}

.gallery-video h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.gallery-video p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .gallery-video-grid { gap: 16px; }
  .gallery-video { padding: 11px 11px 17px; }
}

.gallery-video-grid + .gallery-video-row {
  margin-top: 24px;
}

.gallery-video-row--square {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 270px));
  max-width: 565px;
  margin-inline: auto;
}

.gallery-video-row--landscape {
  grid-template-columns: minmax(0, 645px);
}

@media (min-width: 761px) {
  .gallery-video-row--landscape:has(.gallery-video:not([hidden]) ~ .gallery-video:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 540px));
  }
}

.gallery-video-row video {
  aspect-ratio: var(--video-ratio);
}

.gallery-video-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 20px;
  color: var(--wine, #852653);
  font-weight: 700;
}

.gallery-video-filter select {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #d898ac;
  border-radius: 10px;
  background: var(--paper, #fffaf4);
  color: inherit;
  font: inherit;
}

.gallery-video-badge {
  display: table;
  margin: 0 auto 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: #ffe187;
  color: #563710;
  font-size: 12px;
  font-weight: 700;
}

.gallery-video-filter[hidden],
.gallery-video-grid[hidden],
.gallery-video[hidden] {
  display: none;
}

.gallery-video {
  scroll-margin-top: 100px;
}

.gallery-video .gallery-video-quote {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 12px auto 0;
  text-align: center;
}

.gallery-videos {
  scroll-margin-top: 100px;
}

.gallery-video-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 24px;
  color: var(--wine, #852653);
  font-weight: 700;
}

.gallery-video-pager .filter {
  min-height: 44px;
}

.gallery-video-pager[hidden] {
  display: none;
}
