@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Montserrat", sans-serif;
}


body {

    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner .slider {
    position: absolute;
    width: 445.5px;/*297*/
    height: 315px;/*210*/
    top: 20%;
    left: calc(44% - 100px);/*50%*/
    transform-style: preserve-3d;
    transform: perspective(500px);
    animation: autorun 20s linear infinite;
    z-index: 2;
}

@keyframes autorun {
    from{
        transform: perspective(500px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(500px) rotateX(-16deg) rotateY(360deg);
      }
}

.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360/var(--quantity)) * 1deg ))
        translateZ(710px);
}


.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotateY(180deg);
}

.banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 11em;
    line-height: 1em;
    color: #252838;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2; 
    -webkit-text-stroke: 2px #929292;
    color: transparent;
}

.banner .content .author{
    text-align: right;
    max-width: 250px;
}


.banner .content h2 {
    font-size: 3em;
}
.banner .content p {
    font-size: 1em;
}
.banner .content a{
    font-family: "Montserrat", sans-serif;
    font-size: 2em;
    color: #000;
    text-decoration-line: none;
}
.banner a {
    z-index: 10;
    position: relative;
}


.banner .content .model {
    background-image: url(img/mypic1HD.png);
    width: 100%;
    height: 100vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

.banner .author a {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: black;
    position: relative;
    transition: transform 0.5s ease;
}

.banner .author a:hover {
    transform: translateX(-20px);
}

.navbar ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}


/*Gallery Content*/
.container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #ffffff;
}

.img-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px;
    flex: 1 1 calc(33.33% - 20px);
    box-sizing: border-box;
}

.img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease, z-index 0s 0s;
    z-index: 1;
    position: relative;
}

.img-wrapper:hover img {
    transform: scale(1.3);
    z-index: 999;
    transition: transform 0.2s ease, z-index 0s;
}




.img-wrapperh {
    position: relative;
    display: inline-block;
    padding: 5px;
}
.img-wrapperh img{
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease, z-index 0s 0s;
    z-index: 1;
    position: relative;
}
.img-wrapperh:hover img {
    transform: scale(1.3);
    z-index: 999;
}


/*topic*/
.topic
 {
    width: 100%;
    clear: both;
    text-align: center;
    margin: 30px 0;
}

.topic h1 {
    font-size: 8em;
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
}

.topic h2 {
    font-size: 5em;
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
}

.sub-topic
 {
    width: 100%;
    clear: both;
    text-align: center;
    margin: 15px 0;
}
.sub-topic p
 {
    font-size: 3em;
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
}
.sub-topic-thai
 {
    width: 100%;
    clear: both;
    text-align: center;
    margin: 15px 0;
}
.sub-topic-thai p
 {
    font-size: 3em;
    font-family: "Prompt", system-ui;
    font-weight: 200;
}


/*Button to home*/
.space {
    position: relative;
    width: 100%;
    margin: 80px;
}

.btnHome{
    position: relative;
    text-align: center;
}
.btn1{
    position: relative;
    background: none;
    border: 2px solid #252838;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    padding: 15px 80px;
    min-width: 200px;
    margin: 10px;
    cursor: pointer;
    transition: color 0.3s linear;
    text-decoration-line: none;
    color: #000;
}

.btn1:hover{
    color: #fff;
}
.btn1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #252838;
    z-index: -1;
    transition: transform 0.5s;
    transform-origin: 0 0;
}
.btn1::before{
    transform: scaleX(0);
}

.btn1:hover::before{
    transform: scaleX(1);
}


/*********responsive**********/
@media (max-width: 1440px) {
    /*banner part*/
    .banner .content h1{
        font-size: 8em;
        padding-left: 30px;
        padding-right: 30px;
    }
    .banner .content .author{
        max-width: 250px;
        padding-right: 40px;
        z-index: 5;
    }


}


@media (max-width: 1200px) {
    /*banner part*/



    /*Gallery part*/
    .img-wrapper {
        flex: 1 1 calc(50% - 20px);
    }
    .img-wrapper::after {
        font-size: 1.6em;
    }
    .space {
        margin: 30px;
    }
    .sub-topic-thai p{
        font-size: 2.5em;
    }
}





@media (max-width: 1165px) {
    .banner .content h1{
        font-size: 6.5em;
    }

    .sub-topic-thai p{
        font-size: 2em;
    }
}
@media (max-width: 1010px) {
    .banner .content h1{
        font-size: 5em;
        z-index: -2;
        padding-left: 20px;
        padding-right: 20px;
    }
    .banner .content .author{
        max-width: 250px;
        margin-left: 65%;
        padding-right: 30px;
        z-index: 5;
    }
    
}


@media (max-width: 768px) {
    /*banner part*/
    .banner .content .author{
        max-width: 250px;
        margin-left: 30%;
        padding-right: 30px;
    }

    /*Gallery part*/
    .img-wrapper {
        flex: 1 1 calc(100% - 20px);
    }
    .topic h1 {
        font-size: 4.5em;
    }
    .topic h2{
        font-size: 2.5em;
    }
    .img-wrapper::after {
        font-size: 1.5em;
    }
    .space {
        margin: 0px;
    }
    .sub-topic p
    {
    font-size: 2.5em;
    }
    .img-wrapper:hover img {
        transform: scale(1.1);
    }
}

@media (max-width: 540px) {
    .banner .content h1{
        display: none;
    }
    .banner .content .author{
        max-width: 250px;
        margin-left: 10%;
        padding-right: 30px;
    }
    .btn1{
        padding: 15px 40px;
    }
}

@media (max-width: 275px) {
    .btn1{
        padding: 15px 20px;
    }
}
