/* ============================================================
   Jeff's Barber — gallery.css
   ============================================================ */

/* ── PAGE HEADER ──────────────────────────────────────────── */
.page-header {
    background: var(--black);
    color: var(--white);
    padding: 5rem 2.5rem 4rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 0.03em;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.page-sub {
    color: #aaa;
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 480px;
}

/* ── GALLERY SECTION ──────────────────────────────────────── */
.gallery-section {
    padding: 4rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── UNIFORM GRID ─────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ── GALLERY ITEM ─────────────────────────────────────────── */
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: #e8e8e4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ── HOVER OVERLAY ────────────────────────────────────────── */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: 1px solid #555;
    color: var(--white);
    font-size: 1rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.lightbox-close:hover {
    border-color: var(--white);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid #555;
    color: var(--white);
    font-size: 1.2rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── BOTTOM CTA ───────────────────────────────────────────── */
.bottom-cta {
    text-align: center;
    padding: 6rem 2.5rem;
    border-top: 1px solid #e0e0dc;
}

.bottom-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.03em;
    margin-bottom: 0.8rem;
}

.bottom-cta p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.8rem;
    border-radius: var(--radius);
    transition: opacity 0.2s, transform 0.2s;
}

.hero-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}