/* ============================================================
   Gallery Wall â€” Salon-style "pictures on a wall" layout
   ============================================================ */

/* â”€â”€ Wall background ------------------------------------------------- */
.gw-section {
    background: #f5f0eb;
    padding: 60px 0 0;
    min-height: 100vh;
    overflow: hidden;
}

/* -- Before & After Section Header ---------------------------------- */
.ba-section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.ba-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(232, 83, 14, 0.12) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #d4540a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.ba-header-badge i {
    font-size: 0.85rem;
}

.ba-header-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.ba-amp {
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.ba-header-rule {
    width: 72px;
    height: 3px;
    margin: 0 auto 1.5rem;
    border: none;
    border-radius: 3px;
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
}

.ba-header-subtitle {
    font-size: 1.1rem;
    color: #475569;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.ba-header-hints {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    list-style: none;
    margin: 0;
}

.ba-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
}

.ba-hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ba-hint-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    list-style: none;
}

/* -- Before & After Header Responsive --------------------- */
@media (max-width: 700px) {
    .ba-section-header {
        margin-bottom: 2rem;
    }

    .ba-header-hints {
        flex-direction: column;
        gap: 0.75rem;
        padding: 14px 20px;
    }

    .ba-hint-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 450px) {
    .ba-section-header {
        padding: 0 1rem;
    }

    .ba-header-subtitle {
        font-size: 1rem;
    }

    .ba-header-hints {
        padding: 12px 16px;
    }

    .ba-hint {
        font-size: 0.8rem;
    }
}

/* â”€â”€ Grid layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 0;
    width: 100%;
}

/* â”€â”€ Individual frame â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-frame {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 4x featured â€” spans 2 cols + 2 rows */
.gw-frame.gw-featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* â”€â”€ Magnifying glass icon â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-zoom-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.85);
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Touch devices: always show zoom button */
@media (hover: none) {
    .gw-zoom-btn {
        opacity: 0.7;
        pointer-events: auto;
    }
}

/* Hover devices: reveal on hover */
@media (hover: hover) {
    .gw-frame:hover .gw-zoom-btn {
        opacity: 1;
        pointer-events: auto;
    }

    .gw-zoom-btn:hover {
        background: rgba(255, 107, 53, 1);
    }
}



/* â”€â”€ Image container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
}

.gw-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Before image overlays the after (hidden by default) */
.gw-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.gw-img-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Show before when toggled via JS */
.gw-frame.gw-showing-before .gw-img-before {
    opacity: 1;
}

/* â”€â”€ Labels (click-toggled) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-peek-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: white;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gw-peek-label.gw-label-portrait {
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
}

.gw-peek-label.gw-label-original {
    background: rgba(100, 116, 139, 0.85);
}

/* Default state: show "Portrait" label */
.gw-frame .gw-label-portrait {
    opacity: 1;
}

/* When toggled to before: hide "Portrait", show "Original" */
.gw-frame.gw-showing-before .gw-label-portrait {
    opacity: 0;
}

.gw-frame.gw-showing-before .gw-label-original {
    opacity: 1;
}



/* â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-hero {
    padding: 140px 0 56px;
    background: #f5f0eb;
    text-align: center;
}

.gw-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.gw-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.gw-hero .gradient-text {
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gw-hero-tagline {
    font-size: 1.15rem;
    color: #4b5563;
    margin: 0 0 1.25rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.gw-hero-hints {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gw-hero-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #6b7280;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 100px;
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
}

.gw-hero-hint i {
    font-size: 0.8rem;
    color: #e8530e;
}

.gw-hero-hint-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

/* Legacy fallback */
.gw-hero-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 520px;
    margin: 0 auto;
}

/* â”€â”€ CTA (reuse from gallery-page) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gallery-cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #ff6b35 0%, #e8530e 100%);
    color: white;
}

.gallery-cta-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.gallery-cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.gallery-cta-section .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 36px;
    background: white;
    color: #ff6b35;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* â”€â”€ Lightbox â€“ full-screen override â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gw-section ~ .ba-lightbox .ba-lightbox-content {
    max-width: 95vw;
    width: 95vw;
    height: 95vh;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gw-section ~ .ba-lightbox .ba-lightbox-images {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw-section ~ .ba-lightbox .ba-lightbox-images img {
    width: auto;
    max-width: 95vw;
    height: auto;
    max-height: 90vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.gw-section ~ .ba-lightbox .ba-lightbox-prev {
    left: 15px;
}

.gw-section ~ .ba-lightbox .ba-lightbox-next {
    right: 15px;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
    .gw-wall {
        grid-template-columns: repeat(2, 1fr);
    }

    .gw-frame.gw-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gw-wall > .gw-frame:last-child {
        display: none;
    }
}

@media (max-width: 700px) {
    .gw-wall {
        grid-template-columns: repeat(2, 1fr);
    }

    .gw-frame.gw-featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gw-hero {
        padding: 120px 0 30px;
    }

    .gw-hero-title {
        font-size: 2.2rem;
    }

    .gw-hero-tagline {
        font-size: 1.05rem;
    }

    .gw-hero-hints {
        gap: 0.6rem;
    }

    .gw-hero-hint {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .gw-section ~ .ba-lightbox .ba-lightbox-prev {
        left: 10px;
    }

    .gw-section ~ .ba-lightbox .ba-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 700px) {
    .gw-peek-label {
        font-size: 0.6rem;
        padding: 4px 10px;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
}

@media (max-width: 450px) {
    .gw-peek-label {
        font-size: 0.55rem;
        padding: 3px 8px;
        letter-spacing: 0.2px;
        bottom: 6px;
    }

    .gw-hero-title {
        font-size: 1.8rem;
    }

    .gw-hero-tagline {
        font-size: 0.95rem;
    }

    .gw-hero-hints {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gw-hero-hint-sep {
        display: none;
    }

    .gw-hero-subtitle {
        font-size: 1rem;
    }

    .gallery-cta-section h2 {
        font-size: 1.8rem;
    }
}
