/* =========================================================
   IMAGE GALERY
========================================================= */
.image_galery_wrapper {
    position: relative;
    max-width: 720px;
    margin: auto;
}

.image_galery_track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.image_galery_track::-webkit-scrollbar {
    display: none;
}

.image_galery_item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.image_galery_item img {
    width: 700px;
    height: 520px;
    object-fit: contain;
    background: var(--color-background-light-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    cursor: zoom-in;
}

/* ÍCONE LUPA */
.image_galery_item::after {
    content: "+";
    position: absolute;
    top: 45%;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
}

.image_galery_item:hover::after {
    opacity: 1;
}

/* SETAS */
.image_galery_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.image_galery_nav.left { left: 8px; }
.image_galery_nav.right { right: 8px; }

/* MODAL IMAGEM */
.image_galery_modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image_galery_modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.image_galery_modal .image_galery_nav {
    background: rgba(255,255,255,.9);
}

.image_galery_close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 800px) {
    .image_galery_item img {
        width: 90vw;
        height: calc(90vw * 520 / 700);
    }
}