/* Minimal custom CSS – Tailwind does the heavy lifting */

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: #111827;
  color: #fff;
  border-radius: 0.5rem;
  z-index: 50;
}

.nav-link {
  color: #171717;
  text-decoration: none;
}
.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Thumbnails */
.thumb-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}

.slideshow-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Optional card style (if you wrap thumbs in links) */
.thumb-card {
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fafafa;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.thumb-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Tablet PORTRAIT: enlarge hero paragraph to fill vertical space */
@media (orientation: portrait) and (min-width: 768px) {
  p.hero-text {
    font-size: 1.2rem;
    line-height: 1.9;
  }
}

/* Tablet LANDSCAPE: enlarge hero paragraph to help balance image height */
@media (orientation: landscape) and (min-width: 900px) {
  p.hero-text {
    font-size: 1.18rem;
    line-height: 1.9;
  }
}

/* ADD these NEW styles to dream.css (near your thumbnail styles).
   Keep your existing .thumb-card styles — just add/merge the bits below. */

.thumb-card {
  position: relative; /* needed for the label overlay */
}

/* Overlay label — centered beneath thumbnail */
.thumb-label {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(6px);

  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;

  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.2px;
  text-align: center;

  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Hover + keyboard focus: reveal label */
.thumb-card:hover .thumb-label,
.thumb-card:focus-visible .thumb-label {
  opacity: 1;
  transform: translateY(0);
}

/* Keyboard focus ring */
.thumb-card:focus-visible {
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 4px;
}

/* Touch devices (no hover): show label by default */
@media (hover: none) {
  .thumb-label {
    opacity: 1;
    transform: none;
    background: rgba(0, 0, 0, 0.55);
  }
}
