#colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}
#cboxWrapper {
    max-width: none;
}
#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}
#cboxMiddleLeft,
#cboxBottomLeft {
    clear: left;
}
#cboxContent {
    position: relative;
}
#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#cboxTitle {
    margin: 0;
}
#cboxLoadingOverlay,
#cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#cboxPrevious,
#cboxNext,
#cboxClose,
#cboxSlideshow {
    cursor: pointer;
}
.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
    -ms-interpolation-mode: bicubic;
}
.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}
#colorbox,
#cboxContent,
#cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

#cboxOverlay {
    background-color: rgba(0, 0, 0, 0.95);
}

#colorbox button {
    min-width: auto;
    font-size: 0;
}
#colorbox button:focus {
    border: none;
}

#cboxTitle {
    color: var(--color-text);
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    padding: var(--spacing-m);
}
#cboxTitle:empty {
    padding: 0;
}
#cboxCurrent {
    display: none;
}

#cboxLoadedContent {
    border: 0 solid var(--color-black);
    background: #fff;
}

#cboxLoadingGraphic {
    background-image: url("../images/icons/icon--loading.svg");
    background-size: 2.5rem 2.5rem;
    background-position: center center;
    animation: rotate 1s linear infinite;
}

#cboxPrevious,
#cboxNext,
#cboxClose {
    position: absolute;
    display: block;
    width: var(--size-icon);
    height: var(--size-icon);
    background-color: rgba(255, 255, 255, 0.6);
    background-size: 100%;
    backdrop-filter: blur(5px);
    border-radius: 0;
    transition: background-color 0.3s;
}

#cboxPrevious {
    top: 50%;
    left: 0;
    margin-top: -1.25rem;
    background-image: url("../../images/icons/icon--next.svg");
    transform: rotate(180deg);
}

#cboxNext {
    top: 50%;
    right: 0;
    margin-top: -1.25rem;
    background-image: url("../../images/icons/icon--next.svg");
}

#cboxClose {
    top: 0;
    right: 0;
    background-image: url("../../images/icons/icon--close.svg");
}
