/* ============================================
   Aloha Beach Festival - Photo Components
   Reusable photo layouts for high-res imagery
   ============================================ */

/* ---- Photo Strip: 4-up horizontal row ---- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 20px rgba(0, 40, 60, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.photo-strip img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 40, 60, 0.2);
}

@media (min-width: 768px) {
  .photo-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

/* ---- Feature Image: single wide, optionally captioned ---- */
.feature-image {
  margin: var(--space-xl) auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 40, 60, 0.18);
  background: var(--color-white);
  max-width: 1100px;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-image figcaption {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold, 600);
  font-style: italic;
  color: var(--color-deep-teal);
  background: linear-gradient(135deg, var(--color-sand-light), #FFFFFF);
}

/* ---- Photo Collage: 1 big + 2 small asymmetric ---- */
.photo-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.photo-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 20px rgba(0, 40, 60, 0.15);
  transition: transform var(--transition-base);
}

.photo-collage img:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .photo-collage {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-md);
    height: 520px;
  }
  .photo-collage > *:first-child {
    grid-row: span 2;
  }
  .photo-collage img {
    aspect-ratio: auto;
  }
}

@media (max-width: 767px) {
  .photo-collage img {
    aspect-ratio: 4 / 3;
  }
}

/* ---- Image + Text: two-column side-by-side ---- */
.image-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin: var(--space-2xl) 0;
}

.image-text img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: 0 14px 40px rgba(0, 40, 60, 0.18);
}

.image-text-content h2,
.image-text-content h3 {
  font-family: var(--font-heading);
  color: var(--color-deep-teal);
  margin-bottom: var(--space-md);
}

.image-text-content p {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .image-text {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  .image-text--reverse .image-text-media { order: 2; }
}

/* ---- Entertainment Portrait Grid: 3-col tall dance photos ---- */
.photos-portrait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.photos-portrait-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 25px rgba(0, 40, 60, 0.18);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.photos-portrait-grid img:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 40, 60, 0.25);
}

@media (min-width: 768px) {
  .photos-portrait-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .photos-portrait-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Hero Photo Banner: full-width atmospheric image ---- */
.photo-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 40%, rgba(10, 22, 40, 0.45));
  pointer-events: none;
}

.photo-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-lg);
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

@media (max-width: 767px) {
  .photo-banner { height: 260px; }
  .photo-banner-caption { font-size: var(--font-size-h3); bottom: var(--space-md); }
}
