/* =============================================================
   galleries.css — Inner page styles for Before & After Galleries
   Extends: css/index.css (shared design system)
   ============================================================= */

.gallery-section {
    padding: 6rem 0;
    text-align: center;
}

/* Alternate background colors for sections */
.gallery-section.whitening-sec {
    background-color: var(--bg-white);
}

.gallery-section.veneers-sec {
    background-color: var(--bg-cream);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

/* 3-Column Grid for Sliders */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Reusing the slider wrapper styling from index.css, adding hover lift */
.gallery-grid .slider-wrapper {
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.gallery-grid .slider-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Center-align button wrappers */
.gallery-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.gallery-btn-wrapper .btn {
    min-width: 180px;
}

/* ── Responsive breakpoints ────────────────────────────────── */

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 4rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 520px;
        margin: 0 auto 3rem auto;
    }
    
    .gallery-section-title {
        margin-bottom: 2rem;
    }
}

/* Instagram link styling */
.insta-handle {
    margin-top: 1.5rem;
}

.insta-handle a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    transition: var(--transition-quick);
}

.insta-handle a:hover {
    color: var(--primary-hover-color) !important;
    text-decoration: underline;
}
