﻿/* Remove fundo/padding/box-shadow do dialog que contém nosso lightbox
   e centraliza o conteúdo */
.mud-dialog:has(.lb-wrap),
.mud-dialog:has(.lb-wrap) .mud-paper,
.mud-dialog:has(.lb-wrap) .mud-dialog-content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.mud-dialog:has(.lb-wrap) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Container do lightbox */
.lb-wrap {
    position: relative;
    max-width: min(96vw, 1400px);
    max-height: min(92vh, 92svh);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Imagem sempre visível por completo e centralizada */
    .lb-wrap img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,.35);
    }

/* Botão de fechar visível */
.lb-btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.6);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease;
    z-index: 2;
}

    .lb-btn-close:hover {
        background: rgba(0,0,0,.8);
    }

/* Mobile: usa toda a viewport e remove cantos se quiser */
@media (max-width: 600px) {
    .lb-wrap {
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100svh;
    }
}
