.gallery{
    padding-bottom: 100px;
}

@media screen and (max-width: 1279px){
    .gallery{
        padding-bottom: 60px;
    }
}

@media screen and (max-width: 767px){
    .gallery{
        padding-bottom: 36px;
    }
}

.gallery-banner{
    position: relative;
    margin-bottom: 80px;
}

.gallery-banner-background{
    padding-top: 29.51411%;
    width: 100%;
    height: 0;
    inset: 0;
}

.gallery-banner-background img {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
}

.gallery-banner-container{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.gallery-banner-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.gallery-banner-content{
    max-width: 600px;
    padding-top: 50px;
    padding-bottom: 50px;
    color: #262626;
}

.gallery-banner-title h1{
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
}

.gallery-banner-text{
    font-size: 18px;
    line-height: 150%;
    margin-top: 16px;
}

.gallery-banner-button{
    margin-top: 32px;
}

.gallery-banner-button span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #262626;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    height: 56px;
    padding: 0 24px;
    color: #fff;
    cursor: pointer;
    transition: background 300ms;
}

.gallery-banner-button span:hover{
    background-color: #515151;
}

.gallery-banner-button svg{
    width: 19px;
    margin-right: 12px;
    flex: none;
}

@media screen and (max-width: 1440px){
    .gallery-banner-background{
        padding-top: 0;
        width: auto;
        height: auto;
    }
    
    .gallery-banner-background img{
        object-position: right;
    }

    .gallery-banner-container{
        position: relative;
    }

    .gallery-banner-wrapper{
        min-height: 425px;
    }
}

@media screen and (max-width: 1279px){
    .gallery-banner{
        margin-bottom: 44px;
    }

    .gallery-banner-wrapper {
        min-height: 400px;
    }

    .gallery-banner-content {
        max-width: 400px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .gallery-banner-title h1 {
        font-size: 42px;
    }

    .gallery-banner-text {
        font-size: 16px;
        line-height: 140%;
    }

    .gallery-banner-button span {
        font-size: 14px;
        height: 45px;
    }
}

@media screen and (max-width: 950px){
    .gallery-banner-background img {
        object-position: center;
    }
}

@media screen and (max-width: 768px){
    .gallery-banner-background img {
        object-position: left;
    }
}

@media screen and (max-width: 767px){
    .gallery-banner-title h1 {
        font-size: 30px;
    }

    .gallery-banner-text {
        margin-top: 12px;
    }

    .gallery-banner-button {
        margin-top: 24px;
    }
}

@media screen and (max-width: 428px){
    .gallery-banner {
        margin-bottom: 56px;
    }

    .gallery-banner-background{
        position: relative;
        padding-top: 87.5%;
        width: 100%;
        height: 0;
    }

    .gallery-banner-background img {
        object-position: center;
    }

    .gallery-banner-container{
        padding-top: 24px;
    }

    .gallery-banner-wrapper {
        min-height: auto;
    }

    .gallery-banner-content{
        padding: 0;
    }

    .gallery-banner-button span{
        width: 100%;
    }
}

.gallery-sections{
    position: relative;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: inset 0 -1px 0 #e6e6e6;
    margin-bottom: 32px;
}

.gallery-sections::-webkit-scrollbar{ 
    display: none;
}

.gallery-line{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #262626;
    transition: left 300ms, width 300ms;
}

.gallery-sections a{
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    height: 62px;
    padding: 0 24px;
}

.gallery-sections .active{
    color: #262626;
}

@media screen and (max-width: 1279px){
    .gallery-sections{
        margin-right: -40px;
        padding-right: 40px;
    }

    .gallery-sections a {
        font-size: 14px;
        height: 50px;
        padding: 0 16px;
    }
}

@media screen and (max-width: 767px){
    .gallery-sections {
        margin-right: -16px;
        padding-right: 16px;
    }
}

.gallery-empty{
    width: 100%;
    border: 1px solid #E6E6E6;
    border-radius: 16px;
    padding: 70px 24px;
    text-align: center;
}

.gallery-empty-icon img{
    width: 90px;
    height: auto;
}

.gallery-empty-text{
    font-size: 18px;
    line-height: 150%;
    margin-top: 18px;
}

.gallery-loader{
    width: 100%;
    border: 1px solid #E6E6E6;
    border-radius: 16px;
    padding: 70px 24px;
    text-align: center;
}

.gallery-loader-text{
    font-size: 18px;
    line-height: 150%;
    margin-top: 18px;
}

@media screen and (max-width: 1279px){
    .gallery-empty{
        padding: 40px 24px;
    }

    .gallery-empty-text{
        font-size: 16px;
    }
    
    .gallery-loader{
        padding: 40px 24px;
    }

    .gallery-loader-text{
        font-size: 16px;
    }
}

.gallery-list{
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
}

.gallery-item{
    width: calc(33.33333% - 14px);
}

.gallery-item-photo{
    position: relative;
    height: 0;
    padding-top: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
    transition: border-radius 300ms;
    z-index: 1;
}

.gallery-item a:hover .gallery-item-photo{
    border-radius: 40px;
}

.gallery-item-photo img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
}

.gallery-item-photo-arrow{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    opacity: 0;
    background-color: rgb(0 0 0 / 50%);
    transition: opacity 300ms;
}

.gallery-item a:hover .gallery-item-photo-arrow{
    opacity: 1;
}

.gallery-item-photo-arrow svg{
    width: 26px;
    height: auto;
}

.gallery-item-content{
    padding-right: 24px;
}

.gallery-item-label{
    font-size: 14px;
    line-height: 140%;
    text-transform: uppercase;
    color: #767676;
    margin-bottom: 4px;
}

.gallery-item-name{
    font-weight: 500;
    font-size: 22px;
    line-height: 120%;
    color: #262626;
}

.gallery-item-description{
    display: -webkit-box;
    font-size: 16px;
    line-height: 140%;
    margin-top: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.gallery-item-button{
    margin-top: 24px;
    text-align: center;
}

.gallery-item-button a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 44px;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    color: #262626;
    transition: color 300ms;
}

.gallery-item-button a:hover{
    color: #939393;
}

.gallery-item-button svg{
    flex: none;
    width: 12px;
    margin-left: 12px;
}

@media screen and (max-width: 1279px){
    .gallery-list {
        gap: 32px 12px;
    }

    .gallery-item {
        width: calc(33.33333% - 8px);
    }

    .gallery-item-label {
        font-size: 12px;
    }

    .gallery-item-name {
        font-size: 20px;
    }

    .gallery-item-description {
        font-size: 14px;
        line-height: 130%;
    }

    .gallery-item-button a {
        font-size: 14px;
    }
}

@media screen and (max-width: 1023px){
    .gallery-item {
        width: calc(50% - 6px);
    }
}

@media screen and (max-width: 767px){
    .gallery-item-name {
        font-size: 18px;
    }

    .gallery-item-description{
        margin-top: 8px;
    }

    .gallery-item-button {
        margin-top: 16px;
    }

    .gallery-item-button a{
        width: 100%;
    }
}

@media screen and (max-width: 650px){
    .gallery-list{
        flex-direction: column;
    }

    .gallery-item {
        width: 100%;
    }
}

.element{
    padding-top: 20px;
}

.element-banner{
    position: relative;
    border-radius: 12px;
    height: 480px;
    overflow: hidden;
    background-color: #515151;
}

.element-banner:before{
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background: linear-gradient(2.49deg, rgba(0, 0, 0, 0.9) -3.18%, rgba(0, 0, 0, 0) 64.63%);
    z-index: 1;
}

.element-banner-background img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
}

.element-banner-content{
    position: absolute;
    inset: auto 52px 42px 52px;
    max-width: 720px;
    z-index: 2;
}

.element-banner-content h1{
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
    color: #fff;
}

.element-banner-label{
    font-size: 18px;
    line-height: 150%;
    margin-bottom: 12px;
    color: #CFCFCF;
}

.element-text{
    padding: 64px 0 100px;
    font-size: 18px;
    line-height: 150%;
    max-width: 744px;
    margin: 0 auto;
    color: #262626;
}

.element-text-block:not(:first-child){
    margin-top: 40px;
}

.element-text-block:not(:last-child){
    margin-bottom: 40px;
}

.element-text h1{
    font-weight: 500;
    font-size: 48px;
    line-height: 110%;
}

.element-text h2{
    font-weight: 500;
    font-size: 42px;
    line-height: 105%;
}

.element-text h3{
    font-weight: 500;
    font-size: 28px;
    line-height: 120%;
}

.element-text h4{
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
}

.element-text h5{
    font-weight: 500;
    font-size: 18px;
    line-height: 115%;
}

.element-text h6{
    font-weight: 500;
    font-size: 16px;
    line-height: 115%;
}

.element-text h1:not(:first-child), .element-text h2:not(:first-child), .element-text h3:not(:first-child), .element-text h4:not(:first-child), .element-text h5:not(:first-child), .element-text h6:not(:first-child){
    margin-top: 16px;
}

.element-text h1:not(:last-child), .element-text h2:not(:last-child), .element-text h3:not(:last-child), .element-text h4:not(:last-child), .element-text h5:not(:last-child), .element-text h6:not(:last-child){
    margin-bottom: 16px;
}

.element-text p:not(:first-child){
    margin-top: 12px;
}

.element-text p:not(:last-child){
    margin-bottom: 12px;
}

.element-text b, .element-text strong{
    font-weight: 500;
}

.element-text blockquote:not(:first-child){
    margin-top: 30px;
}

.element-text blockquote:not(:last-child){
    margin-bottom: 30px;
}

.element-text blockquote p:not(:first-child), .element-text blockquote p:not(:last-child){
    margin: 0;
}

.element-text picture{
    position: relative;
    height: 0;
    padding-top: 60.48444%;
}

.element-text picture:not(:first-child){
    margin-top: 30px;
}

.element-text picture:not(:last-child){
    margin-bottom: 30px;
}

.element-text picture img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    border-radius: 12px;
}

@media screen and (max-width: 1279px){
    .element{
        padding-top: 0;
    }
    
    .element-banner-content {
        position: absolute;
        inset: auto 40px 40px 40px;
        max-width: 590px;
    }

    .element-banner-content h1 {
        font-size: 42px;
    }

    .element-banner-label {
        font-size: 16px;
        line-height: 140%;
        margin-bottom: 8px;
    }

    .element-banner{
        border-radius: 0;
        margin: 0 -40px;
    }

    .element-text {
        font-size: 16px;
        line-height: 140%;
        padding: 48px 0 64px;
        max-width: 720px;
    }

    .element-text h1{
        font-size: 42px;
    }
    
    .element-text h2{
        font-size: 36px;
    }
    
    .element-text h3{
        font-size: 22px;
    }
    
    .element-text h4{
        font-size: 19px;
    }
    
    .element-text h5{
        font-size: 16px;
    }
    
    .element-text h6{
        font-size: 14px;
    }

    .element-text h1:not(:first-child), .element-text h2:not(:first-child), .element-text h3:not(:first-child), .element-text h4:not(:first-child), .element-text h5:not(:first-child), .element-text h6:not(:first-child){
        margin-top: 12px;
    }
    
    .element-text h1:not(:last-child), .element-text h2:not(:last-child), .element-text h3:not(:last-child), .element-text h4:not(:last-child), .element-text h5:not(:last-child), .element-text h6:not(:last-child){
        margin-bottom: 12px;
    }
    
    .element-text p:not(:first-child){
        margin-top: 8px;
    }
    
    .element-text p:not(:last-child){
        margin-bottom: 8px;
    }

    .element-text blockquote:not(:first-child){
        margin-top: 24px;
    }

    .element-text blockquote:not(:last-child){
        margin-bottom: 24px;
    }
}

@media screen and (max-width: 767px){
    .element-banner{
        border-radius: 0;
        margin: 0 -16px;
        height: 220px;
    }

    .element-banner-content {
        inset: auto 16px 16px 16px;
    }

    .element-banner-content h1 {
        font-size: 30px;
    }

    .element-text {
        font-size: 16px;
        line-height: 140%;
        padding: 40px 0 56px;
    }

    .element-text h1{
        font-size: 30px;
    }
    
    .element-text h2{
        font-size: 26px;
    }
}

.element-recom{
    background-color: #F5F7F7;
    padding: 80px 0;
}

.element-recom-title{
    font-weight: 500;
    font-size: 42px;
    line-height: 105%;
    margin-bottom: 32px;
    color: #262626;
}

.element-recom-slider-container{
    overflow: hidden;
}

.element-recom-slide{
    width: calc(33.33333% - 8px);
}

.element-recom-slide:not(:last-child){
    margin-right: 12px;
}

.element-recom-photo{
    position: relative;
    height: 0;
    padding-top: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: border-radius 300ms;
    z-index: 1;
}

.element-recom-slide a:hover .element-recom-photo{
    border-radius: 40px;
}

.element-recom-photo img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.element-recom-photo-arrow{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    opacity: 0;
    background-color: rgb(0 0 0 / 50%);
    transition: opacity 300ms;
}

.element-recom-slide a:hover .element-recom-photo-arrow{
    opacity: 1;
}

.element-recom-photo-arrow svg{
    width: 26px;
    height: auto;
}

.element-recom-content{
    padding-right: 24px;
}

.element-recom-label{
    font-size: 14px;
    line-height: 140%;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.element-recom-name{
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    color: #262626;
}

.element-recom-description{
    display: -webkit-box;
    font-size: 16px;
    line-height: 140%;
    margin-top: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
}

@media screen and (max-width: 1279px){
    .element-recom-title{
        font-size: 36px;
        margin-bottom: 24px;
    }

    .element-recom {
        padding: 64px 0;
    }

    .element-recom-slide{
        min-width: 338px;
    }

    .element-recom-slider-container{
        margin: 0 -40px;
        padding: 0 40px;
    }

    .element-recom-label {
        font-size: 12px;
    }

    .element-recom-name {
        font-size: 20px;
    }

    .element-recom-description {
        font-size: 14px;
        line-height: 130%;
    }
}

@media screen and (max-width: 767px){
    .element-recom-title{
        font-size: 26px;
        margin-bottom: 16px;
    }

    .element-recom {
        padding: 56px 0;
    }

    .element-recom-slider-container {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .element-recom-slide {
        min-width: 288px;
    }

    .element-recom-name {
        font-size: 18px;
    }

    .main-gallery-description {
        margin-top: 8px;
    }
}