@charset "utf-8";

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.inner {
    max-width: 1200px;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    background-color: #fff;
    color: rgb(17, 18, 19);
    font-weight: bold;
    font-size: 3rem;
}

header h1 img {

    vertical-align: bottom;
    width: 100px;
    margin-top: 50px;
}

header .inner li a {
    font-size: 1rem;
    padding: 5px;

}


header nav {
    width: 70%;
    background-color: #fff;
}

header nav ul {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0 auto;
}

header nav ul li {
    width: 20%;
}

header nav ul a {
    text-decoration: none;
    color: black;
}

header .bridge {
    width: 100%;
    display: block;
}

.gallery {
    width: 100%;
    height: 100vh;
    background-color: rgb(238, 236, 230);
    display: flex;
}

.gallery-header {
    width: 20%;
    height: 100%;
    padding: 10vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-collection {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    height: 100%;
    padding-top: 15vh;
}

.gallery-collection li {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 70px 40px 100px;
    transition: all .5s;
    position: relative;
}

.gallery-collection li:hover {
    flex: 1.5;
}

.gallery-collection li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 80%;
    height: 95%;
    background-color: lightcoral;
    opacity: 0;
    visibility: hidden;
    transition: all .5s;
}

.gallery-collection li:hover::before {
    opacity: 1;
    visibility: visible;
    left: 0;
}

.gallery-collection li .inner {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    position: relative;
}

.gallery-collection li .inner .txt h3 {
    color: #fff;
    font-size: 2rem;
    padding-top: 70px;
    margin-bottom: 40px;
    transition: all .5s;
}

.gallery-collection li:hover .inner .txt h3 {
    font-size: 4rem;
    padding-top: 0;
}

.gallery-collection li .inner .txt h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
    margin-top: 20px;
    transition: all .5s;
}

.gallery-collection li:hover .inner .txt h3::after {
    width: 120px;
    background-color: rgb(240, 234, 235);
}

.gallery-collection li .inner figure {
    width: 100%;
    height: 30%;
}

.gallery-collection li .inner figure video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup {
    display: none;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #222;
    padding: 20vh 7vw 14vh 20vw;
    display: flex;
    opacity: 0;
    transition: all 1s;

}

.popup.on {
    left: 0;
    opacity: 1;
}

.popup .txt {
    width: 25%;
    height: 100%;
}

.popup .txt h2 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #fff;
}

.popup .txt p {
    color: #999;
    margin-bottom: 60px;
    font-size: 1.5rem;
}

.popup .txt button {
    color: darkmagenta;
    background-color: transparent;
    font-size: 2rem;
    border: none;
}

.popup aside {
    width: 70%;
    height: 100%;
    border-radius: 10%
}

.popup aside video {
    position: absolute;
    left: 38%;
    top: 23%;
    width: 50%;
    height: 60%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {

    .popup aside video{
        position: absolute;
        top: 150px;
        left: 20px;
        width: 300px ;
        height: 420px;
    }
}