.section-gallery section{
    justify-content: flex-start;
}

.section-gallery:not(:first-child) section figure:only-child{
    height: 100dvh;
}

.section-gallery:first-child{
    height: 100dvh;
}

.section-gallery:first-child section{
    height: 100%;
}

html .section-gallery:first-child figure{
    height: 100dvh;
}

@media only screen and (max-width: 900px) {
    .section-gallery section{
        height: auto;
        padding: 0;
    }

    html .section-gallery:first-child figure{
        height: auto;
    }

    .section-gallery:first-child{
        height: auto;
    }
}

html .section-gallery.has-text-below figure{
    margin-bottom: 0;
}

.studio-text{
    width: calc(100% - 30px);
    margin: 12px 15px 70px;
    text-align: left;
    display: flex;
    align-items: center;
}

.studio-text *{
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: unset;
    font-size: 25.9px;
    color: #9a9a9d;
    font-style: normal;
    line-height: 1.3;
}

.studio-text p{
    max-width: none;
    width: auto;
    margin: 5px 0 0;
    padding: 0;
    text-align: left;
}

.studio-text p:last-child{
    margin-bottom: 0;
}

.studio-text a{
    color: #000;
}

.section-gallery[data-popup] figure img{
    cursor: pointer;
}

html.popup-open,
html.popup-open body{
    overflow: hidden !important;
}

.studio-popup{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 1.2s;
}

.studio-popup.is-open{
    transform: translateY(0);
    visibility: visible;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}

.studio-popup::before{
    content: '';
    position: absolute;
    inset: 0;
    background: url("../img/pop-up-bg.png") top center / auto repeat;
    opacity: .9;
    filter: blur(0.4px);
}

.studio-popup__content{
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: calc(100% - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: center;
}

.studio-popup__content *{
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: unset;
    font-size: 30px;
    font-style: normal;
    padding: 10px 0;
    line-height: 1.3;
}

.studio-popup__content p{
    max-width: none;
    width: auto;
    margin: 0 0 1.2em;
    padding: 0;
}

.studio-popup__content p:last-child{
    margin-bottom: 0;
}

.studio-popup__content a{
    color: #000;
}

.section-gallery:last-child .studio-text{
    margin-bottom: 10px;
}

@media only screen and (max-width: 600px) {
    .studio-popup__content *,
    .studio-text *{
        font-size: 17.8px;
    }

    .studio-text{
        margin: 12px 15px 50px;
    }
}
