@font-face {
    font-family: SourceCodePro;
    src: url("fonts/SourceCodePro-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: SourceCodePro;
    src: url("fonts/SourceCodePro-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: SourceCodePro;
    src: url("fonts/SourceCodePro-Light.ttf");
    font-weight: 300;
}

@font-face {
    font-family: SourceCodePro;
    src: url("fonts/SourceCodePro-Black.ttf");
    font-weight: 900;
}

* {
    font-family: SourceCodePro;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 20px;
}

h1 {
    font-size: 4rem;
    line-height: 4rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    line-height: 2rem;
    font-weight: 300;
}

p {
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 300;
}

.header {
    position: relative;
}

.header-background {}

.header-background img {
    object-fit: cover;
    width: 100%;
}

.header-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.29);
    padding: 90px 140px;
}

.gallery {
    max-width: 1260px;
    margin: 44px auto;
    display: flex;
    justify-content: space-between;
}

.gallery_left,
.gallery_right {
    display: flex;
    list-style: none;
    max-width: 625px;
    flex-direction: column;
    /* justify-content: space-between; */

}

.gallery_item {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.gallery_item:nth-of-type(2n+1) {
    border: 5px solid rgba(149, 84, 38, 1);
}

.gallery_item:nth-of-type(2n) {
    border: 5px solid rgba(50, 94, 104, 1);
}

.item_image {
    width: 100%;
    display: block;
}

.item_desc {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 56.67%;
    padding: 0 44px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: white;
    transform: translateX(100%);
    transition: 0.3s;
}

.item_desc hr {
    margin: 14px 0;
}

.gallery_item:nth-of-type(2n+1) .item_desc {
    backdrop-filter: blur(20px);
    background: rgba(149, 84, 38, 0.5);
}

.gallery_item:nth-of-type(2n) .item_desc {
    backdrop-filter: blur(20px);
    background: rgba(50, 94, 104, 0.5);
}

.gallery_right {}

.item_desc::before {
    content: url("img/icons/ic1.svg");
    position: absolute;
    left: 10px;
    top: 7px;
}

.item_desc::after {
    content: url("img/icons/ic2.svg");
    position: absolute;
    right: 10px;
    bottom: 7px;
}

.gallery_item:hover {
    transform: scale(84%);

}

.gallery_item:hover .item_desc {
    transform: translateX(0);
}

@media (max-width: 1024px) {

    html {
        font-size: 16px;
    }

    h1 {
        font-size: 3.125rem;
        line-height: 3.125rem;
    }

    h2 {
        font-size: 1.56rem;
        line-height: 1.56rem;
    }

    .header-content {
        padding: 28px 50px;
        left: 0;
        transform: translate(0, -50%);
    }

    .gallery {
        max-width: 677px;
    }

    .gallery_left,
    .gallery_right {
        max-width: 330px;
    }

    .gallery_item:hover {
        transform: none;

    }

    .gallery_item:hover .item_desc {
        transform: none;
    }

    .gallery_item {
        margin-bottom: 16px;
        position: relative;
        overflow: hidden;
        transition: 0.3s;
    }

    .item_desc {
        transition: none;
        position: relative;
        transform: none;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .item_desc::after,
    .item_desc::before {
        display: none;
    }

    .item_desc hr {
        display: none;
    }

    .item_desc h2 {
        position: absolute;
        right: 0;
        top: 0;
        transform: translateY(-100%);
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }
    .item_desc p {
        text-align: center;
        padding: 22px 0;
    }
    .gallery_item:nth-of-type(2n+1) .item_desc {
        backdrop-filter: none;
        background: none;
    }

    .gallery_item:nth-of-type(2n) .item_desc {
        backdrop-filter: none;
        background: none;
    }
    .gallery_item:nth-of-type(2n+1) .item_desc p {
        background-color: #955426;
    }

    .gallery_item:nth-of-type(2n) .item_desc p {
        background-color: #325e68;
    }
    .gallery_item:nth-of-type(2n+1) .item_desc h2 {
        backdrop-filter: blur(20px);
        background: rgba(149, 84, 38, 0.5);
    }

    .gallery_item:nth-of-type(2n) .item_desc h2 {
        backdrop-filter: blur(20px);
        background: rgba(50, 94, 104, 0.5);
    }
}
@media (max-width: 768px){
    .header-content{
        text-align: left;
        padding: 28px 85px 28px 12px;
    }
    .gallery{
        flex-direction: column;
        max-width: 600px;
    }
    .gallery_left,
    .gallery_right {
        max-width: 100%;
    }
    /* .item_desc h2{
        width: 43.5%;
        border-radius: 10px 0 0 0;
        } */
        .item_desc p{
            padding-right: 28px;
            text-align: right;
        }
    }   
    @media (max-width: 667px){
        h1{
            font-size: 1.25rem;
            line-height: 1.25rem;
        }
        .header-content{
            text-align: center;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 28px 96px;
        }
        .item_desc h2{
            width: 100%;
            border-radius: 0;
        }
        .item_desc p{
            padding: 20px 0;
            text-align: center;
        }
    }
    @media (max-width: 768px) and (orientation: portrait){
        .item_desc h2{
            width: 261px;
            border-radius: 10px 0 0 0;
        }
    }
    @media (max-width: 460px){
        .header-content{
            height: 100%;
            padding: 0;
            left: auto;
            right: 0;
            transform: none;
            top: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 110px;
            writing-mode: vertical-lr;
            text-orientation: upright;
            text-align: left;
        }
    }