/* ============================================================
   Gallery Page Styles
   ============================================================ */

/* Hero */
.gallery-page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.gallery-page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gallery-page-hero .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #fff1e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* Gallery Grid */
.gallery-page-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Gallery Card â€” reuses ba-card pattern from index */
.gp-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
}

.gp-card .ba-toggle {
    border-top: 1px solid #f0f0f0;
    border-radius: 0;
    background: white;
    padding: 0;
}

.gp-card .ba-btn {
    padding: 12px 0;
    border-radius: 0;
    font-size: 0.9rem;
}

.gp-card .ba-btn:first-child {
    border-right: 1px solid #f0f0f0;
}

.gp-card.hidden {
    display: none;
}

.gp-images {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 ratio */
    overflow: hidden;
}

.gp-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.gp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-image.gp-before {
    opacity: 0;
    z-index: 1;
}

.gp-image.gp-after {
    opacity: 1;
    z-index: 2;
}

.gp-image.gp-before.active {
    opacity: 1;
    z-index: 3;
}

.gp-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 5;
}

.gp-before .gp-label {
    background: rgba(239, 68, 68, 0.85);
}

.gp-after .gp-label {
    background: rgba(34, 197, 94, 0.85);
}


/* CTA Section */
.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);
}

/* View More Button (for index.html) */
.ba-view-more {
    text-align: center;
    margin-top: 2.5rem;
}

.ba-view-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 50%, #ffa726 100%);
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ba-view-more a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.ba-view-more a i {
    transition: transform 0.3s ease;
}

.ba-view-more a:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-page-hero {
        padding: 120px 0 40px;
    }

    .gallery-page-title {
        font-size: 2rem;
    }

    .gallery-page-subtitle {
        font-size: 1rem;
    }

    .gallery-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-page-section {
        padding: 40px 0 60px;
    }

    .gallery-cta-section h2 {
        font-size: 1.8rem;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-page-title {
        font-size: 2.5rem;
    }
}
