@import url("/theme.css");

/* Container */
.container {
  max-width: 1200px;
  margin: var(--s-6) auto 60px;
  padding: 0 var(--s-4);
}

h1 { margin-bottom: var(--s-4); }

/* Gallery layout */
.gallery {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.galleryItem {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  padding: var(--s-3);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.galleryItem:hover {
  transform: translateY(-4px);
  border-color: var(--bg);
  box-shadow: 0 12px 28px rgba(2,8,23,.5), 0 4px 12px rgba(2,8,23,.4);
}

.galleryItem img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 9px;
  transition: transform 0.3s ease;
}

.galleryItem:hover img {
  transform: scale(1.05);
}

.galleryItem .title {
  margin-top: 12px;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.galleryItem .muted {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.videoDetails {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.lockBadge {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  background: color-mix(in oklab, var(--amber) 13%, transparent);
  color: var(--amber);
}

.lockBadge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.galleryItem:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--bg) 55%, transparent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .container { margin-top: 24px; padding: 0 16px; }
  .gallery { grid-template-columns: 1fr; }
}
