@charset "UTF-8";

/* ===== RESET / BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f4f6f9;
    color: #222;
}

/* ===== HEADER ===== */
.guia-header {
    text-align: center;
    padding: 0px 20px 20px 20px;
}

.guia-header h1 {
    font-size: 2.6rem;
    color: #0a2a66;
}

.guia-header p {
    max-width: 700px;
    margin: 15px auto 0;
    color: #555;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
/* NÃO LIMITA A IMAGEM, SÓ A ORGANIZA */
.guia-container {
    max-width: 100%;
    margin: auto;
    padding: 0px 20px 20px 20px;
}

/* ===== BLOCO DA IMAGEM ===== */
.guia-image {
    margin: 0 auto 40px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    justify-content: center;
}

.guia-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.2);
}

/* ✅ AQUI ESTÁ A CORREÇÃO PRINCIPAL */
.guia-image img {
    width: auto;           /* tamanho REAL */
    max-width: 100vw;      /* nunca passa da tela */
    max-height: 100vh;     /* nunca passa da altura */
    height: auto;
    display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 18px;
    animation: zoomIn .35s ease;
}

/* ===== BOTÃO FECHAR ===== */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

/* ===== ANIMAÇÃO ===== */
@keyframes zoomIn {
    from {
        transform: scale(.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .guia-header h1 {
        font-size: 2rem;
    }

    .guia-image img {
        max-width: 100%;
    }
}
