/* ----------------------------------------------------------------------------
 * Listeo Listing Albums - themed display for the CorfuDiscovery single listing.
 * Reuses the theme design tokens (styles.css) and the .cdf-lightbox styles
 * already defined in pages.css.
 * ------------------------------------------------------------------------- */

.cdf-albums {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Album lightbox must sit above everything, incl. the Leaflet map controls and
 * the "Get Directions" link (z-index: 2147483647 is the maximum a browser
 * honours; larger values are clamped to this). */
.cdf-album-lightbox {
  z-index: 2147483647;
}

.cdf-album-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cdf-album-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.cdf-album-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.cdf-album-desc {
  margin: -4px 0 16px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.cdf-album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cdf-album-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background-color: var(--coral-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.cdf-album-photo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cdf-album-photo:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.cdf-album-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 42, 59, .55);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}

@media (max-width: 780px) {
  .cdf-album-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .cdf-album-grid { grid-template-columns: repeat(2, 1fr); }
  .cdf-albums { gap: 24px; }
}
