.sugar-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.sugar-image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.sugar-image-lightbox__dialog {
    position: relative;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sugar-image-lightbox__img {
    max-width: 100%;
    max-height: calc(92vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.sugar-image-lightbox__caption {
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    max-width: 100%;
    opacity: 0.9;
}

.sugar-image-lightbox__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #c26638;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.sugar-image-lightbox__close:hover {
    background: #6b2f20;
}

.js-sugar-lightbox-trigger {
    cursor: zoom-in;
}
