@charset "utf-8";

@media (min-width: 720px) {
    .gallery {
        display: flex;
        align-items: center;
        width: 100%;
        height: calc(100vh - 39rem);
        min-height: 30rem;
    }

    .gallery-left {
        width: 30%;
    }

    .gallery-left .preview {
        width: 45%;
        aspect-ratio: 3 / 2;
        margin-right: calc(5% - 0.4rem);
        background-size: 100%;
        box-sizing: border-box;
        display: inline-block;
        margin-bottom: 1rem;
        border: 0.2rem solid #FFF;
    }

    .gallery-right {
        height: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
    }

    .gallery-right>.picture-wrapper {
        width: 0;
        height: 0;
        overflow: hidden;
    }

    .gallery-right>.picture-wrapper.active {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 100%;
        margin: auto;
        background: #FFF;
    }

    .gallery-right>.picture-wrapper>.picture {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 42rem);
        min-height: 27rem;
        padding: 1rem;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
    }

    .gallery-right>.picture-wrapper.active>.picture {
        opacity: 1;
    }

    .gallery-right>.picture-wrapper>.picture-description {
        width: auto;
        max-width: 100%;
        padding: 0 1rem 1rem 1rem;
        margin: -0.5rem 0 0 0;
        text-align: center;
        color: #000;
        font-size: 1.8rem;
    }
}

@media (max-width: 1023px) {
    .gallery-left .preview {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 719px) {
    .gallery {
        width: 100%;
    }

    .gallery-left {
        display: none;
    }

    .gallery-right>.picture-wrapper {
        padding: 0.5rem;
        margin-bottom: 1rem;
        background: #FFF;
    }

    .gallery-right>.picture-wrapper>.picture {
        width: 100%;
    }

    .gallery-right>.picture-wrapper>.picture-description {
        width: 100%;
        text-align: center;
        margin: 0;
        color: #000;
    }
}