/* Carousel / Slider Gallery */
.gallery-zero-block {
    margin: 24px 0;
}

.gallery-zero-block .fluent-gallery-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gallery-zero-block .fluent-gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Featured Image */
.gallery-zero-block .featured-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.gallery-zero-block .featured-images {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.gallery-zero-block .featured-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.gallery-zero-block .featured-item.active {
    opacity: 1;
    z-index: 10;
}

.gallery-zero-block .featured-item img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

/* Navigation Arrows */
.gallery-zero-block .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
    flex-shrink: 0;
}

.gallery-zero-block .nav-arrow:hover {
    background: rgba(0, 0, 0, 0.25);
}

.gallery-zero-block .nav-arrow:active {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-zero-block .nav-arrow svg {
    width: 20px;
    height: 20px;
}

.gallery-zero-block .nav-prev {
    left: 16px;
}

.gallery-zero-block .nav-next {
    right: 16px;
}

/* Enlarge Icon */
.gallery-zero-block .enlarge-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
    opacity: 0;
}

.gallery-zero-block .featured-image-wrapper:hover .enlarge-icon {
    opacity: 1;
}

.gallery-zero-block .enlarge-icon:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Lightbox Modal */
.gallery-zero-block .gallery-zero-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-zero-block .gallery-zero-lightbox.active {
    display: flex;
    opacity: 1;
}

.gallery-zero-block .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
}

.gallery-zero-block .lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.gallery-zero-block .lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.gallery-zero-block .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    padding: 0;
    backdrop-filter: blur(10px);
}

.gallery-zero-block .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.gallery-zero-block .lightbox-nav:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(0.95);
}

.gallery-zero-block .lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-zero-block .lightbox-prev {
    left: 20px;
}

.gallery-zero-block .lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-zero-block .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .gallery-zero-block .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .gallery-zero-block .lightbox-prev {
        left: 12px;
    }

    .gallery-zero-block .lightbox-next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-zero-block .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-zero-block .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }

    .gallery-zero-block .lightbox-prev {
        left: 8px;
    }

    .gallery-zero-block .lightbox-next {
        right: 8px;
    }
}

/* Thumbnails Strip */
.gallery-zero-block .thumbnails-container {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    justify-content: flex-start;
}

.gallery-zero-block .thumbnails-container::-webkit-scrollbar {
    height: 4px;
}

.gallery-zero-block .thumbnails-container::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-zero-block .thumbnails-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.gallery-zero-block .thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: none;
}

.gallery-zero-block .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-zero-block .thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.gallery-zero-block .thumbnail.active {
    border-color: var(--accent-color);
    border-width: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Pagination Dots */
.gallery-zero-block .pagination-dots {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-zero-block .featured-image-wrapper {
        aspect-ratio: 16 / 10;
        border-radius: 8px;
    }

    .gallery-zero-block .nav-arrow {
        width: 36px;
        height: 36px;
    }

    .gallery-zero-block .nav-arrow svg {
        width: 18px;
        height: 18px;
    }

    .gallery-zero-block .nav-prev {
        left: 12px;
    }

    .gallery-zero-block .nav-next {
        right: 12px;
    }

    .gallery-zero-block .thumbnails-container {
        gap: 8px;
        padding: 8px 0;
    }

    .gallery-zero-block .thumbnail {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .gallery-zero-block .fluent-gallery-container {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-zero-block .featured-image-wrapper {
        aspect-ratio: 4 / 5;
        border-radius: 6px;
    }

    .gallery-zero-block .nav-arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-zero-block .nav-arrow svg {
        width: 16px;
        height: 16px;
    }

    .gallery-zero-block .nav-prev {
        left: 8px;
    }

    .gallery-zero-block .nav-next {
        right: 8px;
    }

    .gallery-zero-block .thumbnails-container {
        gap: 6px;
        padding: 6px 0;
    }

    .gallery-zero-block .thumbnail {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .gallery-zero-block .fluent-gallery-container {
        gap: 8px;
    }
}

/* Accessibility */
.gallery-zero-block .nav-arrow:focus,
.gallery-zero-block .thumbnail:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.gallery-zero-block .fluent-gallery-wrapper {
    color: #262626;
}
