﻿/* ----------------------------------------------
    GALLERY PAGE - RADHA AAMRAI
    Amravati, Maharashtra | Mobile Responsive Design
----------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefaf5;
    color: #2e241f;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Container Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, #2c5f2d 0%, #1e3a2f 100%);
    border-radius: 0 0 2rem 2rem;
    padding: 2rem 1rem 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .hero-content h1 i {
        font-size: 2rem;
        color: #ffd966;
    }

.hero-tagline {
    font-size: 1rem;
    background: rgba(255, 255, 240, 0.2);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    margin-bottom: 0.75rem;
}

.hero-location {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-description {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 2.5rem 0 1.5rem 0;
}

    .section-header h2 {
        font-size: 1.8rem;
        font-weight: 600;
        color: #2c5f2d;
        position: relative;
        display: inline-block;
        padding-bottom: 8px;
    }

        .section-header h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 25%;
            width: 50%;
            height: 3px;
            background: #e8b86b;
            border-radius: 3px;
        }

.section-sub {
    color: #7e6b5c;
    font-size: 0.95rem;
    margin-top: 6px;
}

/* Main Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translateY(0);
}

    .gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 28px -8px rgba(0, 0, 0, 0.15);
    }

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .card-img {
    transform: scale(1.02);
}

.card-info {
    padding: 1rem 1rem 1.2rem 1rem;
}

    .card-info h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #2e241f;
    }

    .card-info p {
        font-size: 0.85rem;
        color: #7a6a5c;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .card-info i {
        font-size: 0.7rem;
        color: #e8b86b;
    }

/* Partial Gallery Styles */
.partial-gallery-container {
    background: #fff7ef;
    border-radius: 2rem;
    padding: 1.8rem 1rem;
    margin: 2.5rem 0;
    border: 1px solid #ffe2c6;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.03);
}

.partial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.8rem;
    border-bottom: 2px dashed #e8b86b;
    padding-bottom: 0.75rem;
}

    .partial-header span {
        font-weight: 600;
        font-size: 1.3rem;
        color: #2c5f2d;
    }

.partial-badge {
    background: #e8b86b20;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9b6e3e;
}

.partial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.partial-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .partial-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .partial-item img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

.partial-caption {
    padding: 0.7rem;
    font-size: 0.85rem;
    text-align: center;
    background: white;
    border-top: 1px solid #f0e3d4;
}

    .partial-caption strong {
        display: block;
        color: #2c5f2d;
        margin-bottom: 4px;
    }

    .partial-caption p {
        font-size: 0.75rem;
        color: #7e6b5c;
        margin: 4px 0;
    }

    .partial-caption small {
        font-size: 0.7rem;
        color: #e8b86b;
    }

.partial-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.view-more-link {
    display: inline-block;
    color: #2c5f2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

    .view-more-link:hover {
        color: #e8b86b;
    }

    .view-more-link i {
        margin-right: 5px;
    }

/* Info Card */
.info-card {
    background: #e9f0e3;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.info-icon {
    color: #2c5f2d;
    font-size: 1.8rem;
}

.info-card h3 {
    margin: 0.5rem 0;
    font-weight: 600;
    color: #2e241f;
}

.info-card p {
    margin: 0.5rem 0;
    color: #5e4b3a;
}

.explore-btn {
    margin-top: 1rem;
    background: #2c5f2d;
    border: none;
    color: white;
    padding: 0.6rem 1.6rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .explore-btn:hover {
        background: #1e4a1f;
        transform: scale(1.02);
    }

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: fadeIn 0.3s;
}

    .lightbox-content img {
        width: auto;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 1rem;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 215, 150, 0.5);
    }

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

    .close-lightbox:hover {
        background: #e8b86b;
        color: #1e3a2f;
    }

/* Footer */
.footer-note {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background: #2e241f;
    color: #e7cfb5;
    border-radius: 1.5rem 1.5rem 0 0;
    font-size: 0.85rem;
}

    .footer-note i {
        color: #e8b86b;
    }

/* Shimmer Loading Effect */
.shimmer-card {
    background: linear-gradient(90deg, #f0e9e2 25%, #e7ddd2 50%, #f0e9e2 75%);
    background-size: 200% 100%;
    animation: shimmerMove 1.2s infinite;
    height: 280px;
    border-radius: 1rem;
}

@keyframes shimmerMove {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .gallery-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .partial-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .partial-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .container {
        padding: 0 16px;
    }

    .gallery-hero {
        padding: 1.5rem 0.8rem 2rem;
    }

    .partial-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .card-info h3 {
        font-size: 0.95rem;
    }

    .partial-header span {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    .hero-location {
        font-size: 0.85rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .gallery-card:hover {
        transform: none;
    }

    .gallery-card:active {
        transform: scale(0.98);
    }

    .partial-item:hover {
        transform: none;
    }

    .partial-item:active {
        transform: scale(0.98);
    }
}

/* Print Styles */
@media print {
    .gallery-hero {
        background: #f0f0f0;
        color: black;
    }

    .explore-btn,
    .lightbox-modal,
    .partial-footer {
        display: none;
    }
}
