/* Modern Image Gallery Styles */

.modern-image-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--gray-200);
    cursor: pointer;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.5rem;
    color: var(--gray-800);
}

.zoom-button:hover {
    background: white;
    transform: scale(1.1);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-base);
    position: relative;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-more {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: var(--gray-800);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.thumbnail-more:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.image-gallery-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.image-gallery-placeholder i {
    margin-bottom: 1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-base);
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

