/* ========================================
   SIMPLE CLEAN GALLERY STYLES
   ======================================== */

.simple-gallery-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gallery Grid */
.simple-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
}

.simple-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
}

.simple-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.simple-gallery-item-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

/* Gallery Overlay */
.simple-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(108, 117, 125, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

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

.simple-gallery-overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.simple-gallery-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal-fullscreen .modal-content {
    border: none;
    border-radius: 0;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.simple-modal-image-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.simple-modal-image {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.simple-modal-caption {
    margin-top: 20px;
}

.simple-modal-caption h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* No Photos State */
.no-photos-state {
    padding: 80px 20px;
}

.no-photos-icon {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-gallery-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .simple-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .simple-gallery-item-wrapper {
        height: 200px;
    }
    
    .modal-controls {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .simple-modal-image-container {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .simple-modal-image {
        max-height: calc(80vh - 80px);
    }
}

@media (max-width: 576px) {
    .simple-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .simple-gallery-item-wrapper {
        height: 150px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animation */
.simple-gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

.simple-gallery-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.simple-gallery-item:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.simple-gallery-image[loading] {
    background: #f8f9fa;
    position: relative;
}

.simple-gallery-image[loading]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #dee2e6;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}