/* ==================== */
/* New Project Page*/
/* ==================== */

.bg-project {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--primary-color);
}

.bg-section {
        padding: min(calc(64 / var(--vw-min) * 100vw), 64px) 0;
    }

.main-bg {
    color: var(--text-primary);
}

.overview {
    display: flex;
    gap: min(calc(32 / var(--vw-min) * 100vw), 32px);
    flex-direction: column;
}
@media screen and (min-width: 900px) {
    .overview {
        flex-direction: row;
    }
}

.pr__inner {
    width: min(calc(1400 / 1600 * 100vw), 1400px);
    margin: 0 auto;
}
@media screen and (max-width:768px) {
    .pr__inner {
        width: 100%;
        padding: 0 calc(24 / var(--vw-min) * 100vw) 0;
    }
}

.pr__title, .pr__text {
    text-align: center;
    margin-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
}

.location__card {
    color: var(--primary-color);
    gap: min(calc(16 / var(--vw-min) * 100vw), 16px);
    display: flex;
    flex-wrap: wrap;
}

.location__card h2 {
    color: var(--text-primary);
}

.location__cardItem {
    padding: min(calc(16 / var(--vw-min) * 100vw), 16px);
    background-color: rgb(255, 255, 255, 0.6);;
    border: solid 2px var(--text-primary);
    transition: background-color 0.2s ease-in-out;
    /* height: max-content; */
    flex: 1 1 23%;
}

.location__cardItem:hover {
    background-color: var(--text-primary);
}

.location__cardImg{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: min(calc(16 / var(--vw-min) * 100vw), 16px);
}

.location__cardImg h4 {
    font-size: min(calc(24 / var(--vw-min) * 100vw), 24px);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.location__cardText p{
    color: var(--primary-color);
    font-size: min(calc(20 / var(--vw-min) * 100vw), 20px);
    transition: color 0.2s ease;
    line-height: 2;
}
@media screen and (max-width: 768px) {
    .location__cardText p {
        font-size: calc(24 / var(--vw-min) * 100vw);
    }
}

.location__cardImg svg{
    width: 2rem;
    height: auto;
    fill: var(--primary-color);
    transition: fill 0.5s ease
}

.overview-header {
    display: flex;
    flex-direction: column;
    gap: min(calc(32 / var(--vw-min) * 100vw), 32px);
    color: var(--text-primary);
}

.overview-detail-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
}

.overview-detail-wrap h2 {
    color: var(--text-primary);
}

.overview-detail {
    color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

.overview-detail-card {
    flex: 1 1 50%;
    padding: 1rem;
    background-color: rgb(255, 255, 255, 0.6);
    border: solid 2px var(--text-primary);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
    transition: background-color 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}
@media screen and (min-width: 900px) {
    .overview-detail-card {
        flex: 1 1 40%;
        flex-direction: column;
    }
}

.overview-detail-card:hover {
    background-color: rgb(255, 255, 255, 1);
}

.overview-detail-img{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overview-detail-img h3,
.overview-detail-text p{
    color: var(--primary-color);
}

.overview-detail-img svg{
    width: 2rem;
    height: auto;
    fill: var(--primary-color);
}

.overview-map-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: min(calc(64 / var(--vw-min) * 100vw),64px) 0;
}

.overview-map-item {
    flex: 1 1 50%;
    display: flex;
    width: 100%;
    justify-content: center;
}

.overview-map-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.facility {
    color: var(--primary-color);
}

.facility-section-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--gap-big);
    width: 100%;
}

.facility-section {
    display: flex;
    gap: var(--gap-big);
    flex-direction: column;
}
@media screen and (min-width: 900px) {
    .facility-section{
        flex-direction: row;
        gap: var(--gap-big);
        box-shadow: none;
    }
}

.facility-img {
    flex: 1 1 60%;
    display: flex;
    gap: 1rem;
    order: 1;
}

.facility-img img {
    width: 100%;
    height: auto;
}

.facility-text {
    flex: 1 1 40%;
    /* color: var(--text-primary); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
    text-align: center;
}

.facility-b {
    flex-direction: column;
}

.facility-text-b {
    align-items: center;
}

.facility-img-item {
    flex: 1;
}

.facility-swiper-wrap {
    width: 100%;
    order: 1;
}
@media screen and (min-width: 900px) {
    .facility-swiper-wrap{
        flex: 1 1 50%;
        width: 50%;
    }
}

@media screen and (min-width: 900px) {
    .facility-text, .facility-img, .facility-swiper-wrap {
        order: 0;
    }
}

/* ==================== */
/* Old Project Page */
/* ==================== */

.project {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.project-display {
    width: 100%;
    display: flex;
    justify-content: center;
    /* padding-top: 6rem; */
}

.projectimg {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#proj-nav {
    top: 0;
    transition: top 0.3s ease;
}

#proj-nav.is-scroll-up {
    top: 85px;
}
@media screen and (max-width: 768px) {
    #proj-nav.is-scroll-up {
        top: 64px;
    }
}

.proj-nav2 {
    display: none;
    background-color: var(--text-primary);
    /* position: sticky; */
    z-index: 500;
    transition: top 0.3s ease;
    justify-content: center;
}
@media screen and (min-width: 640px) {
    .proj-nav2 {
        display: flex;
    }
}
@media screen and (min-width: 1200px) {
    .proj-nav2 {
        justify-content: center;
    }
}

.proj-nav-wrap2 {
    padding: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: flex;
    justify-content: center;
}

.proj-nav-item {
    background-color: var(--text-primary);
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    text-decoration: none;
    color: var(--primary-color);
}

.scrollpos {
    position: relative;
    display: inline-block;
}

.scrollpos::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-a);
}

.overview-logo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.overview-logo img{
    width: 250px;
}
@media screen and (min-width: 640px) {
    .overview-logo img{
        width: 400px;
    }
}
@media screen and (min-width: 1200px) {
    .overview-logo img{
        width: 500px;
    }
}
@media screen and (min-width: 1600px) {
    .overview-logo img{
        width: 700px;
    }
}

/* Gallery */

.gallery {
    position: fixed;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.5s ease;
    z-index: 3000;
    background-color: var(--primary-color);
}

.gallery.is-active {
    opacity: 1 ;
    pointer-events: auto;
    user-select: auto;
}

.gallery.is-active .gallery__inner{
    transform:translateY(0);
}

.gallery__inner {
    height: var(--vh);
    transform: translateY(min(calc(50 / var(--vw-min) * 100vw),50px));
    transition: transform 0.5s ease;
    position: relative;
    overflow-y: auto;
}

.gallery__content {
    width: min(calc(1400 / 1600 * 100vw), 1400px);
    margin: 0 auto;
    position: relative;
}
@media screen and (max-width: 768px) {
    .gallery__content {
        width: 100%;
        padding: 0 calc(24 / var(--vw-min) * 100vw) calc(24 / var(--vw-min) * 100vw);
    }
}

.gallery__top {
    position: sticky;
    top: 0;
    z-index: 1;
}

.gallery__exit {
    width: 100%;
    padding: min(calc(24 / var(--vw-min) * 100vw), 24px) 0;
    background-color: var(--accent-a);
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: min(calc(16 / var(--vw-min) * 100vw), 16px);
    font-weight: 600;
    text-transform: uppercase;
    font-size: min(calc(24 / var(--vw-min) * 100vw), 24px);
}

.gallery__svg {
    width: max-content;
}

.gallery__exit svg {
    width: auto;
    height: min(calc(32 / var(--vw-min) * 100vw), 32px);
    fill: var(--text-primary);
}

.gallery__select {
    display: flex;
    gap: min(calc(32 / var(--vw-min) * 100vw), 32px);
    background-color: var(--primary-color);
    padding-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
    justify-content: center;
}

.gallery__selectBtn {
    border-width: 0 0 2px 0;
    border-style: solid;
    border-color: transparent;
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: min(calc(24 / var(--vw-min) * 100vw), 24px);
    padding: min(calc(16 / var(--vw-min) * 100vw), 16px) min(calc(24 / var(--vw-min) * 100vw), 24px);
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    transition: border 0.5s ease;
}

.gallery__selectBtn.is-active {
    border-bottom: 2px solid var(--text-primary);
}

.gallery__item {
    display: none;
}

.gallery__item.is-active {
    display: block;
    animation: fadein 0.5s ease forwards;
}

.gallery__body {
    color: var(--text-primary);
}

.gallery__body h2{
    margin-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
}

.gallery__body h3{
    font-size: min(calc(24 / var(--vw-min) * 100vw), 24px);
    margin-bottom: min(calc(24 / var(--vw-min) * 100vw), 24px);
    font-family: var(--font-main);
}

.gallery__group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: min(calc(16 / var(--vw-min) * 100vw), 16px);
    padding-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
}

.gallery__itemImg > a {
    display: flex;
}

.gallery__itemImg:nth-child(3n + 1) {
    grid-column: span 2;
}

.gallery__itemImg img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.proj-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--primary-color);
    appearance: none;
    border: none;
    color: var(--text-primary);
    padding: min(calc(32 / var(--vw-min) * 100vw), 32px);
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    height: max-content;
    text-align: left;
}

.proj-cta:hover {
    background-color: var(--secondary-color);
}

.media-view {
    display: flex;
    gap: 1rem;
}

.media-button {
    appearance: none;
    border: none;
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--accent-a);
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.media-button:hover {
    background-color: var(--accent-a);
    color: var(--black-primary);
}

/* Project Details */

.prInfo {
    padding: min(calc(64 / var(--vw-min) * 100vw), 64px) 0;
    color: var(--primary-color);
}

.prInfo__inner {
    width: min(calc(1400 / 1600 * 100vw),1400px);
	margin: 0 auto;
}
@media screen and (max-width:768px){
	.prInfo__inner{
        width: 100%;
		padding: 0 calc(24 / var(--vw-min) * 100vw);
	}
}

.prInfo__title {
    text-align: center;
    margin-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
}

.prInfo__catch {
    padding-bottom: min(calc(8 / var(--vw-min) * 100vw), 8px);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: min(calc(16 / var(--vw-min) * 100vw), 16px);
}

.prInfo__catch.to-accordian {
    display: flex;
    align-items: center;
    gap: min(calc(16 / var(--vw-min) * 100vw), 16px);
}
.prInfo__catch.to-accordian svg {
    display: none;
    fill: var(--text-primary);
    width: min(calc(16 / var(--vw-min) * 100vw), 16px);
    height: auto;
}
@media screen and (max-width: 900px) {
    .prInfo__catch.to-accordian {
        background-color: var(--primary-color);
        color: var(--text-primary);
        padding: calc(16 / var(--vw-min) * 100vw);
    }
    .prInfo__catch.to-accordian svg {
        display: block;
        transform: rotate(-90deg);
        transition: transform 0.2s ease;
    }
    .prInfo__catch.to-accordian.is-active svg {
        display: block;
        transform: rotate(0);
    }
}

.prInfo__content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: min(calc(16 / var(--vw-min) * 100vw), 16px);
    width: 100%;
    margin-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
}
@media screen and (max-width: 900px) {
    .prInfo__content {
        grid-template-columns: repeat(1 , 1fr);
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }
}

.prInfo__text h4 {
    font-size: min(calc(20 / var(--vw-min) * 100vw), 20px);
    font-weight: 600;
    margin-bottom: min(calc(8 / var(--vw-min) * 100vw), 8px);
}
@media screen and (max-width: 900px) {
    .prInfo__text h4 {
        font-size: calc(24 / var(--vw-min) * 100vw);
    }
}

.prInfo__contentSwiper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: min(calc(32 / var(--vw-min) * 100vw), 32px);
}
@media screen and (min-width: 900px) {
    .prInfo__contentSwiper {
        flex-direction: row;
    }
}

.prInfo__swiperCard {
    flex: 1 1 30%;
    width: 100%;
}
@media screen and (min-width: 900px) {
    .prInfo__swiperCard {
        flex: 1 1 30%;
        width: 30%;
    }
}

.prInfo__swiperCard button{
    width: 100%;
}

.prInfo__swiperInfo {
    padding: min(calc(16 / var(--vw-min) * 100vw), 16px);
    text-align: center;
    color: var(--text-primary);
    background-color: var(--primary-color);
}

.prInfo__frame iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* Pr video section*/
/* ==================== */

.video__wide {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video__high {
    width: auto;
    height: 100%;
}

.pr__video {
    position: fixed;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.5s ease;
    z-index: 3000;
    background-color: var(--primary-color);
}

.pr__video.is-active {
    opacity: 1 ;
    pointer-events: auto;
    user-select: auto;
}

.pr__videoInner {
    width: min(calc(1040 / var(--vw-min) * 100vw), 1040px);
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}
@media screen and (max-width: 768px) {
    .pr__videoInner {
        width: 100%;
        padding: 0 calc(24 / var(--vw-min) * 100vw) calc(24 / var(--vw-min) * 100vw);
        justify-content: center;
    }
}

.pr__videoBtn {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: min(calc(24 / var(--vw-min) * 100vw), 24px);
}

.pr__videoBtn svg{
    width: auto;
    height: min(calc(32 / var(--vw-min) * 100vw), 32px);
    fill: var(--text-primary);
}
@media screen and (max-width: 768px) {
    .pr__videoBtn svg {
        height: calc(64 / var(--vw-min) * 100vw);
    }
}

.pr__video .video__high {
    max-width: 100%;
    width: auto;
    height: 100%;
}
@media screen and (max-width: 768px) {
    .pr__video .video__high  {
        height: 80%;
    }
}


/* Pr link img*/
/* ==================== */

.prInfo__link {
    position: relative;
    overflow: hidden;
    flex: 0 1 33%;
    aspect-ratio: 2/1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: min(calc(32 / var(--vw-min) * 100vw),32px);
    border: solid 1px var(--text-primary);
}
@media screen and (max-width: 768px) {
    .prInfo__link  {
        min-height: calc(240 / var(--vw-min) * 100vw);
    }
}

.prInfo__link span {
    color: var(--text-primary);
    font-size: min(calc(20 / var(--vw-min) * 100vw),20px);
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@media screen and (max-width: 768px) {
    .prInfo__link span  {
        font-size: calc(24 / var(--vw-min) * 100vw);
    }
}

.prInfo__link img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    transition: all 0.4s ease;
}

.prInfo__link:hover img{
    filter: brightness(80%);
}

/* Facility Section*/
/* ==================== */

.facility__swiper .swiper-slide {
    display: flex;
}

.facility__lists {
    list-style: none;
    width: min(calc(240 / var(--vw-min) * 100vw), 240px);
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.facility__item {
    background-color: var(--text-secondary);
    flex: 1 1 25%;
}

.facility__item.is-active {
    background-color: var(--primary-color);
}

.facility__link {
    display: flex;
    justify-content: center;
    padding: min(calc(16 / var(--vw-min) * 100vw), 16px);
    color: var(--primary-color);
}
@media screen and (max-width: 768px) {
    .facility__link{
		font-weight: 500;
        font-size: calc(24 / var(--vw-min) * 100vw);
	}
}

.facility__item.is-active .facility__link{
    color: var(--text-primary);
}

.facility__swiperBtn {
    position: absolute;
    width: min(calc(50 / var(--vw-min) * 100vw), 50px);
    height: min(calc(50 / var(--vw-min) * 100vw), 50px);
    border: 1px solid var(--text-primary)!important;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 100%;
    z-index: 1;
    bottom: 50%;
    transform: translateY(50%);
    cursor: pointer;
    transition-property: color, background-color ;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}
@media screen and (max-width: 768px) {
    .facility__swiperBtn{
        width: calc(64 / var(--vw-min) * 100vw);
        height: calc(64 / var(--vw-min) * 100vw);
	}
}

.facility__swiperBtn:hover{
    background-color: var(--text-primary);
}

.js-facilityNext {
    right: min(calc(16 / var(--vw-min) * 100vw), 16px);
}


.js-facilityPrev {
    left: min(calc(16 / var(--vw-min) * 100vw), 16px);
}

.facility__swiperBtn svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(8 / var(--vw-min) * 100vw), 8px);
    height: auto;
    fill: var(--black-primary);
}
@media screen and (max-width: 768px) {
    .facility__swiperBtn svg{
        width: calc(16 / var(--vw-min) * 100vw);
	}
}