.cvr_viewer {
    position: relative;
    overflow: hidden;
}
  
.cvr_viewer__viewport {
    width: 100vw;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.cvr_viewer__inner {
    display: flex;
    transition: transform 0.5s ease;
}

.cvr_viewer__item {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    height: 100vh; /* Set the height to occupy the full viewport height */
    object-fit: cover; /* Maintain aspect ratio and cover the entire container */
}

.cvr_viewer__item_img {
    display: flex;
    width: 100%;
    flex: 1;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* background-size: contain;
    background-position: center;
    background-repeat: no-repeat; */
}

.cvr_viewer__item_img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cvr_viewer__item_desc {
    padding: 25px 0;
    height: fit-content;
    gap: 15px;
}

.cvr_viewer__item_del {
    color: red;
}

.cvr_viewer__item_edit {
    color: #868686;
    margin: 12px 0;
    text-align: right;

}

.cvr_viewer__item_cancel,
.cvr_viewer__item_save {
    display: none;
    text-align: right;
}

.cvr_viewer__item_save {
    margin-right: 50px;
}


.cvr_viewer__new_caption_submit {
    display: none;
}

.cvr_viewer__item_edit_input {
    width: 100%;
    display: none;
    padding: 10px 15px;
    margin: 12px 0;
    box-sizing: border-box;
}

.cvr_viewer__item_caption {
    color: #fff;
    text-align: right;
}

.cvr_viewer__item_caption_caption {
    text-align: left;
}

@media screen and (max-width: 600px) {
    .cvr_viewer__item_caption {
        padding: 0 25px;
    }
}

.cvr_viewer__prev,
.cvr_viewer__next {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    height: calc(100% - 60px);
}

.cvr_viewer__prev path,
.cvr_viewer__next path {
    fill: #fff;
}

.cvr_viewer__prev svg,
.cvr_viewer__next svg {
    height: 100%;
}



.cvr_viewer__prev {
    left: 10px;
}

.cvr_viewer__next {
    right: 10px;
}

.cvr_viewer__close {
    z-index: 9;
}