/* Gallery Page Specific Styles */

/* Gallery Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.9)), url('../images/gallery/gallery-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.gallery-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.hero-stats .stat i {
    font-size: 1.5rem;
    color: #ff6b6b;
}

/* Gallery Navigation */
.gallery-nav {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #666;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.view-controls {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.view-btn:hover {
    background: white;
    color: #667eea;
}

.view-btn.active {
    background: #667eea;
    color: white;
}

/* Gallery Content */
.gallery-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.gallery-category {
    margin-bottom: 60px;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.gallery-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.media-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-image, .gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-image,
.gallery-card:hover .gallery-video {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-container:hover .media-overlay {
    opacity: 1;
}

.play-btn, .view-btn {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.play-btn:hover, .view-btn:hover {
    background: #667eea;
    border-color: #667eea;
    transform: scale(1.1);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.gallery-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.media-type, .media-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Featured Video Section */
.featured-video {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#featuredVideo {
    width: 100%;
    height: auto;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #ff6b6b;
    width: 45%;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.video-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.video-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.video-stats i {
    color: #667eea;
    width: 20px;
}

/* Photo of the Month */
.photo-of-month {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.photo-container {
    position: relative;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.photo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.photo-details {
    padding: 40px;
}

.photo-details h3 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.photo-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.photo-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item strong {
    color: #333;
    font-size: 0.9rem;
}

.meta-item span {
    color: #666;
    font-size: 0.95rem;
}

.photo-stats {
    display: flex;
    gap: 30px;
}

.photo-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
}

.photo-stats .stat i {
    color: #667eea;
}

/* Gallery Upload Section */
.gallery-upload {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #eee;
}

.upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e3c72;
    font-size: 1.8rem;
}

.upload-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 20px;
    background: white;
}

.lightbox-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.lightbox-info p {
    color: #666;
    margin-bottom: 10px;
}

.lightbox-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-nav .container {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .featured-photo {
        grid-template-columns: 1fr;
    }
    
    .photo-meta {
        grid-template-columns: 1fr;
    }
    
    .photo-stats {
        justify-content: space-between;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: 60px 0;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}