/* 
WhatsApp Float Button
*/
.line {
    border-color: #111;
}

.link-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 76px;
    right: 18px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
}

.link-whatsapp:hover {
    background-color: #21BD5B;
}

.i-whatsapp {
    margin-top: 16px;
}

/* Gallery Grid Optimization */
.gallery-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.gallery-item:hover .gallery-more-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
    }

    .gallery-main {
        grid-column: 1;
        grid-row: 1;
    }

    .gallery-item:not(.gallery-main) {
        display: none;
    }

    .gallery-main .gallery-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.2);
        align-items: flex-end;
        padding-bottom: 20px;
    }

    .gallery-main .gallery-overlay::after {
        content: "Ver todas as fotos";
        background: white;
        color: black;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}