/* ========================================
   PREMIUM IMAGE GALLERY - 2026 ULTRA DESIGN
   ======================================== */

/* Premium Gallery Grid */
.premium-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: all 0.5s var(--transition-smooth);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.6s var(--transition-smooth);
}

.gallery-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.0) 0%,
            rgba(247, 147, 30, 0.0) 100%);
    z-index: 1;
    transition: all 0.5s var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover .gallery-image-wrapper::before {
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.15) 0%,
            rgba(247, 147, 30, 0.15) 100%);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-smooth);
    display: block;
}

.gallery-item:hover .gallery-image-wrapper {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.1);
}

/* Gallery Overlay with View Icon */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 39, 0.0);
    z-index: 2;
    opacity: 0;
    transition: all 0.4s var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(8px);
}

.view-icon {
    transform: scale(0.5) rotate(-90deg);
    opacity: 0;
    transition: all 0.5s var(--transition-bounce);
}

.gallery-item:hover .view-icon {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.view-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Responsive Gallery Grid */
@media (min-width: 640px) {
    .premium-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .premium-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* ========================================
   LIGHTBOX MODAL - ULTRA PREMIUM
   ======================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: lightboxZoomIn 0.5s var(--transition-smooth);
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.lightbox-close:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: #ff6b35;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.lightbox-nav:hover {
    background: rgba(255, 107, 53, 0.9);
    border-color: #ff6b35;
    transform: translateY(-50%) scale(1.15);
}

.lightbox-prev {
    left: 32px;
}

.lightbox-next {
    right: 32px;
}

.lightbox-counter {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Mobile Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-prev {
        left: 16px;
    }

    .lightbox-next {
        right: 16px;
    }

    .lightbox-content img {
        max-height: 70vh;
    }
}