.layout-full-screen {
    z-index: 1000;
    margin: 0;
    min-height: 100dvh;
    overflow: clip;
    background-color: var(--white);
}
.layout-carousel {
    margin-top: var(--space-2xl);
}
.carousel__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100dvh - 9rem);
}
.carousel__cell img {
    object-fit: contain;
}
.carousel__cell video {
    max-height: 30rem;
}
.carousel__counter {
    position: fixed;
    bottom: 3rem;
    right: 25%;
    left: auto;
    z-index: 1000;
    text-align: right;
}
@media (max-width: 779px) {
    main.layout-full-screen {
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .layout-carousel {
        margin-top: 0;
        overflow: hidden;
        max-height: 100dvh;
        height: 80dvh;
    }
    .carousel__cell {
        width: 80%;
        height: auto;
        min-height: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .carousel__cell img {
        max-height: 500px;
        max-width: 100%;
        display: block;
        margin: 0 auto 1rem;
    }
    .carousel__cell video {
        max-width: 25rem;
        padding: 1rem;
    }
    .carousel__counter {
        position: fixed;
        bottom: var(--space-2xl);
        right: 1rem;
        left: auto;
        z-index: 1000;
        text-align: right;
    }
    .back-button--carousel {
        z-index: 100000;
        cursor: pointer;
        position: fixed;
        bottom: var(--space-md);
        right: var(--space-md);
        padding: 0 !important;
    }
}
@media (min-width: 780px) {
    .back-button--carousel {
        position: fixed;
        top: 0.9rem;
        right: var(--space-lg);
        z-index: 1000;
    }
}
@media (min-width: 1680px)  {
    .carousel__cell img{
        width: 36rem;
    }
    .back-button--carousel {
        padding: 2rem;
        font-size: 1.1rem;
    }
}
@media (min-height: 1100px)  {
    .back-button--carousel {
        padding: 2rem;
        font-size: 1.1rem;
    }
}
@media (max-height: 500px) {
    .layout-full-screen {
        overflow: hidden;
    }
    .layout-carousel {
        height: 100dvh;
    }
    .carousel__cell img {
        object-fit: contain;
        max-height: 20rem;
        height: 100%;
        width: auto;
    }
    .carousel__counter {
        position: fixed;
        left: auto;
        z-index: 1000;
        text-align: right;
    }
    }

    @media (max-height: 780px) {
        .carousel__cell img {
            max-height: 595px;
        }
     
        }