/* ============================================================
   Surf City Blinds — Gallery page
   ============================================================ */

/* Header logo (gallery page only) */
.gallery-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gallery-header-logo img {
  display: block;
  height: 44px;
  width: auto;
}

/* Visually hidden utility (screen reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page header */
.gallery-page-header {
  background-color: var(--color-bg-deep);
  color: var(--color-text-inv);
  padding-block: var(--space-xl);
}

.gallery-page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.gallery-page-intro {
  font-size: var(--text-lg);
  color: rgba(245, 240, 232, 0.7);
  max-width: 60ch;
}

/* Gallery grid */
.gallery-section {
  padding-block: var(--space-section);
  background-color: var(--color-bg-warm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  list-style: none;
}

@media (min-width: 500px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-border);
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Before / After label */
.gallery-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  background-color: rgba(42, 37, 32, 0.72);
  color: var(--color-text-inv);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Bottom CTA */
.gallery-cta-section {
  text-align: center;
}

.gallery-cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-inv);
  margin-bottom: var(--space-sm);
}

.gallery-cta-section p {
  font-size: var(--text-lg);
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
  margin-inline: auto;
}

.gallery-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}
