/* carouselDialog */

.carouselDialog {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    outline: none;
    background: none;
    backdrop-filter: blur(4px) brightness(0.3);
}

.carouselDialog::backdrop {
    background: transparent;
}

.carouselDialog .dialogInner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carouselDialog .dialogWindow {
    width: calc(100vw - 50px);
    height: calc(100vh - 50px);
    max-width: 900px;
    max-height: 650px;
    overflow: auto;
    border-radius: 5px;
    filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
}

.carouselDialog .dialogWindow .dialogControlsWrapper {
    flex-grow: 0;
    padding: 2px;
    background-color: #eeeeee;
    display: flex;
    justify-content: end;
}

.carouselDialog .dialogWindow .dialogControls .dialogCloseButt {
    cursor: pointer;
    color: white;
    background-color: #c60f13;
}

.carouselDialog .dialogWindow .dialogContentWrapper {
    flex-grow: 1;
    overflow: auto;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
    background-color: #eeeeee;
    display: flex;
}

.carouselDialog .dialogWindow .dialogContent {
    flex-grow: 1;
    overflow: auto;
    border-radius: 5px;
    background-color: #ffffff;
}

/* carouselZoom */

.carouselZoom {
    width: 100%;
    height: 100%;
    background-color: #eeeeee;
    display: flex;
    flex-direction: column;
}

.carouselZoom .content {
    flex-grow: 1;
}

.carouselZoom .content .imageWindow {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.carouselZoom .content .imageWindow .images {
    position: relative;
    top: 0;
    left: -0%;
    width: 100%;
    height: 100%;
    display: flex;
    transition: left 250ms ease-out;
}

.carouselZoom .content .imageWindow .images .image {
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.carouselZoom .content .imageWindow .images .image img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #cccccc;
}

/* carousel */

.carousel {
    --width: 200px;
    --height: 200px;
    --max: 500px;
}

.carousel {
    width: 100%;
    max-width: var(--max);
    padding: 2px;
    border-radius: 5px;
    background-color: #eeeeee;
    display: flex;
    flex-direction: column;
}

.carousel .content {
    flex-grow: 1;
}

.carousel .content .imageWindow {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.carousel .content .imageWindow::before {
    content: "";
    display: block;
    padding-bottom: calc((var(--height) / var(--width)) * 100%);
}

.carousel .content .imageWindow .images {
    position: absolute;
    top: 0;
    left: -0%;
    width: 100%;
    height: 100%;
    display: flex;
    transition: left 250ms ease-out;
}

.carousel .content .imageWindow .images .image {
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel .content .imageWindow .images .image img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #cccccc;
}

/* controls */

.carouselZoom .controls,
.carousel .controls {
    width: 100%;
    overflow: auto;
    padding-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.carouselZoom .controls .nav,
.carousel .controls .nav {
    display: flex;
    gap: 2px;
}

.carouselZoom .controls .nav button,
.carousel .controls .nav button {
    font-weight: bold;
    background-color: #e0e0e0;
    color: #333333;
    cursor: pointer;
}

.carouselZoom .controls .nav button.active,
.carousel .controls .nav button.active {
    font-weight: bold;
    background-color: #333333;
    color: #ffffff;
}

.carouselZoom .controls .imageInfo,
.carousel .controls .imageInfo {
    margin-left: auto;
}

.carouselZoom .controls .imageInfo p,
.carousel .controls .imageInfo p {
    padding: 0 5px;
    font-weight: bold;
}