/* Inter from Google Fonts, vendored locally as a variable font (weights 400-700). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../vendor/fonts/inter.woff2') format('woff2');
}

body {
  padding-top: 4.5rem; /* room for the fixed navbar */
  background-color: #f8f9fa;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
}

/* Folder cards on the index page */
.gallery-card .card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-card {
  transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Expired galleries on the index page: dimmed card, disabled link */
.gallery-card--expired {
  opacity: 0.55;
}

.gallery-card--expired .gallery-cover {
  filter: grayscale(70%);
}

.gallery-card--expired .card-link {
  cursor: not-allowed;
}

.gallery-card--expired:hover {
  transform: none;
  box-shadow: none;
}

.gallery-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-cover-empty {
  background-color: #e9ecef;
}

/* Thumbnails on the gallery page */
.gallery-thumb {
  display: block;
  border-radius: 0.375rem;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.15s ease-in-out;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

/* Thumbnail strip at the bottom of the screen while PhotoSwipe is open */
#thumb-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001; /* above the PhotoSwipe overlay (--pswp-root-z-index: 100000) */
  background: rgba(0, 0, 0, 0.75);
  padding: 0.5rem;
}

#thumb-strip-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.thumb-strip-item {
  flex: 0 0 auto;
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 2px solid transparent;
  opacity: 0.65;
  cursor: pointer;
}

.thumb-strip-item:hover {
  opacity: 1;
}

.thumb-strip-item.active {
  border-color: #fff;
  opacity: 1;
}
