/* ── Force dark mode by default ───────────────────────────────── */

html {
  --bg: #000 !important;
  --text: #eee !important;
  --accent: rgb(16, 16, 18) !important;
  --color-mode: 'dim' !important;
}

html[data-mode="lit"] {
  --bg: #fff !important;
  --text: rgb(18, 20, 24) !important;
  --accent: #f5f5f5 !important;
  --color-mode: 'lit' !important;
}

/* ── Full-width homepage carousel ─────────────────────────────── */

.carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  bottom: 75px;
}

/* Replace the percentage padding-bottom height with a fixed vh height */
.carousel ul li {
  padding-bottom: 0 !important;
  height: 65vh;
  min-height: 380px;
  max-height: 780px;
}

/* Show full image without cropping — black bars fill the sides for portraits */
.carousel ul li > img {
  object-fit: contain !important;
}

/* ── Prev / next arrows ───────────────────────────────────────── */

.carousel .prev,
.carousel .next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 3rem;
  padding: 1.5rem 0.75rem;
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
  border-radius: 0 4px 4px 0;
  user-select: none;
}

.carousel .next {
  border-radius: 4px 0 0 4px;
}

.carousel .prev:hover,
.carousel .next:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ── Dot indicators ───────────────────────────────────────────── */

.carousel ol {
  bottom: 20px;
}

.carousel ol li a {
  width: 10px;
  height: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel ol li.selected a {
  transform: scale(1.3);
}

/* ── Category listing — shoot card grid ──────────────────────── */

.shoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.shoot-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--accent);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shoot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.shoot-card__thumb {
  width: 100%;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: #111;
}

.shoot-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  margin: 0;
  display: block;
  transition: transform 0.35s ease;
}

.shoot-card:hover .shoot-card__thumb img {
  transform: scale(1.04);
}

.shoot-card__meta {
  padding: 0.75rem 1rem 1rem;
}

.shoot-card__meta .post_date {
  font-size: 0.8rem;
  opacity: 0.6;
  display: block;
  margin-bottom: 0.25rem;
}

.shoot-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

/* ── Gallery grid thumbnails ──────────────────────────────────── */

/* Subtle scale on hover for the gallery shortcode thumbnails */
.gallery-thumb {
  overflow: hidden;
  display: inline-block;
}

.gallery-thumb img {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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