/* ====================================
   GALERIA DE FOTOS COM SWIPE (ESTILO SAPO)
   ==================================== */

/* Carrossel Principal */
.gallery-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    touch-action: none; /* Prevent scroll while swiping */
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    touch-action: none;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevent image drag */
}

.gallery-tap-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 12px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-slide:hover .gallery-tap-hint {
    opacity: 1;
}

/* Indicadores (Dots) */
.gallery-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.3);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Contador de Slides */
.gallery-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

/* ====================================
   LIGHTBOX COM SWIPE
   ==================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Slider dentro do Lightbox */
.lightbox-content-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none; /* Prevent page scroll */
}

.lightbox-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.lightbox-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    touch-action: none;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Contador no Lightbox */
.lightbox-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Indicadores no Lightbox */
.lightbox-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.lightbox-dot.active {
    background: white;
    transform: scale(1.5);
}

.lightbox-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ====================================
   RESPONSIVO
   ==================================== */

@media (max-width: 768px) {
    .gallery-carousel {
        height: 300px;
        border-radius: 12px;
    }

    .lightbox-slide {
        padding: 60px 20px 100px;
    }

    .lightbox-counter {
        bottom: 70px;
    }
}