.ship-videos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.ship-videos h1 {
  font-family: 'Tenor Sans', sans-serif;
  font-weight: 400;
  letter-spacing: -.5px;
  text-align: center;
}

.ship-videos .playlist-link {
  margin: 0 auto 1.5rem;
  text-align: center;
}

.ship-videos-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem 1rem;
  padding: 0;
  margin: 0;
}

.ship-videos-grid a,
.ship-videos-grid a:visited,
.ship-videos-grid a:hover,
.ship-videos-grid a:focus-visible {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.short-preview {
  display: block;
  overflow: hidden;
  margin-bottom: .5rem;
  border-radius: 10px;
}

/* Match the homepage gallery titles and body text. */
.short-title {
  font-family: 'Tenor Sans', sans-serif;
  font-weight: 400;
  letter-spacing: -.5px;
}

.short-date {
  font-family: 'Libre Caslon Text', Georgia, serif;
  display: block;
  margin-top: .25rem;
  font-size: .875rem;
}

.short-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #1e1e1e;
  transition: transform .2s ease;
}

.ship-videos-grid a:hover .short-preview img,
.ship-videos-grid a:focus-visible .short-preview img {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .short-preview img {
    transition: none;
  }

  .ship-videos-grid a:hover .short-preview img,
  .ship-videos-grid a:focus-visible .short-preview img {
    transform: none;
  }
}

#short-player {
  width: calc(100% - 1.5rem);
  max-width: none;
  height: calc(100vh - 1.5rem);
  height: calc(100dvh - 1.5rem);
  max-height: none;
  padding: .75rem 1rem .85rem;
  border: 0;
  border-radius: 16px;
  color: #eee;
  background: #171717;
}

#short-player[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .5rem;
}

#short-player::backdrop {
  background: rgb(0 0 0 / 85%);
}

.short-player-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.short-player-controls button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 1.25rem/1 sans-serif;
  cursor: pointer;
}

.short-player-frame {
  display: grid;
  place-items: center;
  container-type: size;
}

.short-player-frame iframe {
  display: block;
  width: min(100cqw, 56.25cqh);
  height: auto;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

@media (max-width: 400px) {
  .ship-videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
