/* static/css/components/gallery.css — Custom gallery (no Bootstrap Carousel) */

.premium-gallery {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.gallery-main {
    position: relative;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.gallery-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-slide.hidden {
    display: none;
}

.gallery-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    cursor: zoom-in;
    background: white;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    cursor: pointer;
    transition: .2s;
    z-index: 2;
}

.gallery-arrow:hover {
    background: #0d6efd;
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,.65);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.gallery-dots {
    display: flex;
    gap: 6px;
    padding: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: white;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-dot.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.gallery-dot:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

@media (max-width: 768px) {
    .gallery-main {
        min-height: 250px;
    }
    .gallery-image {
        max-height: 300px;
    }
    .gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    .gallery-prev { left: 6px; }
    .gallery-next { right: 6px; }
    .gallery-dot {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}