/* ==========================================================================
   Image Modal
   ========================================================================== */
.iubello-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.iubello-image-modal[hidden] { display: none; }
.iubello-image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}
.iubello-image-modal__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.iubello-image-modal__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}
.iubello-image-modal__zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.25rem;
}
.iubello-image-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}
.iubello-image-modal__btn:hover { background: rgba(255, 255, 255, 0.2); }
.iubello-image-modal__zoom-level {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: center;
}
.iubello-image-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}
.iubello-image-modal__close:hover { background: rgba(255, 255, 255, 0.2); }
.iubello-image-modal__image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}
.iubello-image-modal__image-wrap:active { cursor: grabbing; }
.iubello-image-modal__img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.1s;
    -webkit-user-select: none;
    user-select: none;
}
