/* Swiper gallery (shared with test/index.php behavior) */
.gallery-swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    --swiper-navigation-color: var(--color-text-primary);
    --swiper-theme-color: var(--color-accent);
}

.gallery-swiper .swiper-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    height: auto;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.gallery-swiper .swiper-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-swiper .swiper-zoom-container {
    width: 100%;
    height: 100%;
}

.gallery-swiper .swiper-zoom-container > a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    outline: none;
}

.gallery-swiper .swiper-zoom-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--color-text-primary);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
}

.gallery-swiper .swiper-pagination {
    position: relative;
    margin-top: var(--spacing-xl);
}

.gallery-swiper .swiper-pagination-progressbar {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
}

.gallery-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--color-text-primary);
    border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
    .gallery-swiper {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .gallery-swiper .swiper-button-prev,
    .gallery-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .gallery-swiper .swiper-button-prev::after,
    .gallery-swiper .swiper-button-next::after {
        font-size: 14px;
    }
}
