﻿/* Gallery Design - Images Only */
:root {
    /* Color Palette */
    --primary: #1a472a;
    --primary-light: #2e7d32;
    --primary-dark: #0d3b1e;
    --secondary: #1565c0;
    --accent: #ff9800;
    --success: #4caf50;
    --warning: #ffb300;
    --info: #2196f3;
    --text-primary: #1a237e;
    --text-secondary: #424242;
    --text-tertiary: #757575;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f5f7fa;
    --border-light: #e0e0e0;
    --border-medium: #bdbdbd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.gallery-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #e0f7fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-section {
    padding: 40px 0;
    background: var(--bg-lighter);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

    .gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary-light);
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Image */
.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.gallery-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.gallery-card:hover .zoom-btn {
    transform: translateY(0);
    opacity: 1;
}

.zoom-btn:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1) !important;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    padding: 50px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

    .load-more-btn:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .load-more-btn:active {
        transform: translateY(0);
    }

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    margin: 2% auto;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

    .lightbox-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

    .lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav.prev {
        left: 20px;
    }

    .lightbox-nav.next {
        right: 20px;
    }

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .card-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 40vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .card-image {
        height: 250px;
    }

    .lightbox-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 250px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

        .lightbox-nav.prev {
            left: 10px;
        }

        .lightbox-nav.next {
            right: 10px;
        }
}

/* Animation Delays for Cards */
.gallery-card:nth-child(1) {
    animation-delay: 0.05s;
}

.gallery-card:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-card:nth-child(3) {
    animation-delay: 0.15s;
}

.gallery-card:nth-child(4) {
    animation-delay: 0.2s;
}

.gallery-card:nth-child(5) {
    animation-delay: 0.25s;
}

.gallery-card:nth-child(6) {
    animation-delay: 0.3s;
}

.gallery-card:nth-child(7) {
    animation-delay: 0.35s;
}

.gallery-card:nth-child(8) {
    animation-delay: 0.4s;
}

.gallery-card:nth-child(9) {
    animation-delay: 0.45s;
}

.gallery-card:nth-child(10) {
    animation-delay: 0.5s;
}

.gallery-card:nth-child(11) {
    animation-delay: 0.55s;
}

.gallery-card:nth-child(12) {
    animation-delay: 0.6s;
}

.gallery-card:nth-child(13) {
    animation-delay: 0.65s;
}

.gallery-card:nth-child(14) {
    animation-delay: 0.7s;
}

.gallery-card:nth-child(15) {
    animation-delay: 0.75s;
}

.gallery-card:nth-child(16) {
    animation-delay: 0.8s;
}

.gallery-card:nth-child(17) {
    animation-delay: 0.85s;
}

.gallery-card:nth-child(18) {
    animation-delay: 0.9s;
}

.gallery-card:nth-child(19) {
    animation-delay: 0.95s;
}

.gallery-card:nth-child(20) {
    animation-delay: 1.0s;
}

.gallery-card:nth-child(21) {
    animation-delay: 1.05s;
}

.gallery-card:nth-child(22) {
    animation-delay: 1.1s;
}

.gallery-card:nth-child(23) {
    animation-delay: 1.15s;
}

.gallery-card:nth-child(24) {
    animation-delay: 1.2s;
}
