#imagemodal .modal-dialog {
    width: auto;
    max-width: min(1200px, 96vw);
    margin: 24px auto;
}

#imagemodal .modal-content {
    background: #1a1a1a;
    border: none;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

#imagemodal .custom-size-modal {
    position: relative;
    padding: 12px 12px 16px;
    text-align: center;
}

#imagemodal .custom-size-modal .close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    float: none;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    line-height: 38px;
    text-align: center;
    color: #fff;
    opacity: 1;
    font-size: 26px;
    font-weight: 300;
    background: rgba(28, 28, 28, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    text-shadow: none;
}

#imagemodal .custom-size-modal .close:hover,
#imagemodal .custom-size-modal .close:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.95);
    border-color: #fff;
    opacity: 1;
    outline: none;
}

#imagemodal .imagepreview {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.web-tour-img-wrap:not(.is-missing) {
    cursor: zoom-in;
}

.web-tour-img-wrap:not(.is-missing)::after {
    content: "Clic para ampliar";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 10px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.web-tour-img-wrap:not(.is-missing):hover::after,
.web-tour-img-wrap:not(.is-missing):focus-within::after {
    opacity: 1;
}

.popImg img {
    cursor: zoom-in;
}
