body.destination-gallery-lightbox-open {
    overflow: hidden;
}

.destination-gallery-lightbox[hidden] {
    display: none;
}

.destination-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.destination-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background:
        rgba(5, 13, 10, 0.94);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.destination-gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    height: min(880px, calc(100vh - 48px));
    display: grid;
    grid-template-columns:
        68px minmax(0, 1fr) 68px;
    align-items: center;
}

.destination-gallery-lightbox-figure {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows:
        minmax(0, 1fr) auto;
    margin: 0;
    overflow: hidden;
    border:
        1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background: #08110d;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55);
}

.destination-gallery-lightbox-image-area {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.destination-gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.destination-gallery-lightbox-footer {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    color: #ffffff;
    border-top:
        1px solid rgba(255, 255, 255, 0.11);
    background: #153529;
}

.destination-gallery-lightbox-label {
    font-size: 0.9rem;
}

.destination-gallery-lightbox-count {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    white-space: nowrap;
}

.destination-gallery-lightbox-close,
.destination-gallery-lightbox-navigation {
    border: 0;
    color: #ffffff;
    background:
        rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.destination-gallery-lightbox-close:hover,
.destination-gallery-lightbox-navigation:hover {
    background:
        rgba(255, 255, 255, 0.25);
}

.destination-gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 82px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}

.destination-gallery-lightbox-navigation {
    width: 50px;
    height: 68px;
    justify-self: center;
    border-radius: 16px;
    font-size: 3rem;
    line-height: 1;
}

@media (max-width: 760px) {
    .destination-gallery-lightbox {
        padding: 10px;
    }

    .destination-gallery-lightbox-panel {
        height: calc(100vh - 20px);
        grid-template-columns:
            42px minmax(0, 1fr) 42px;
    }

    .destination-gallery-lightbox-navigation {
        width: 38px;
        height: 54px;
        border-radius: 12px;
        font-size: 2.3rem;
    }

    .destination-gallery-lightbox-close {
        top: 9px;
        right: 48px;
        width: 42px;
        height: 42px;
    }

    .destination-gallery-lightbox-image-area {
        padding: 12px;
    }

    .destination-gallery-lightbox-footer {
        min-height: 56px;
        padding: 13px 15px;
    }
}
