/* Gallery Page Styles */

/* Gallery Hero Section */
.gallery-hero-gallery {
    background: #0a1a4a;
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
}

.gallery-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

.gallery-hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Gallery Grid Section */
.gallery-grid-gallery {
    background: #f8f9fa;
    padding: 80px 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

.gallery-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 0px;
    margin-bottom: -100px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 27, 77, 0.8) 0%, rgba(30, 58, 138, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.gallery-description {
    font-size: 1rem;
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.gallery-icon {
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 20px;
    max-width: 600px;
}

.lightbox-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.lightbox-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-prev, .lightbox-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .gallery-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .gallery-hero-gallery {
        padding: 100px 15px 60px;
    }
    
    .gallery-hero-title {
        font-size: 2.5rem !important;
    }
    
    .gallery-hero-description {
        font-size: 1.1rem !important;
    }
    
    .gallery-grid-gallery {
        padding: 60px 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .gallery-image-wrapper {
        height: 250px;
    }
    
    .gallery-title {
        font-size: 1.3rem !important;
    }
    
    .gallery-description {
        font-size: 0.9rem !important;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        padding: 0 10px;
    }
    
    .lightbox-prev, .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }
}
