

/*areaGallery*/
.areaGallery .listTab li.Lock {
    pointer-events: none;
    visibility: visible;
}
.areaGallery .listTab li.Lock a {
    background: #42352D;
    color: white;
}
.areaGallery {
    padding: 57px 0;
    margin-bottom: 85px;
}

.areaGallery .numberTypePlace {
    line-height: 1.4;
    margin-bottom: 56px;
}

.areaGallery .listFair {
    display: flex;
    flex-wrap: wrap;
}

.areaGallery .listFair li {
    width: calc((100% / 3) - 12px);
    margin-right: 18px;
    margin-bottom: 16px;
}

.areaGallery .listFair li a {
    display: inline-block;
}

.areaGallery .listFair li:nth-child(3n) {
    margin-right: 0;
}

.areaGallery .listFair .fairPhoto {
    position: relative;
}

.areaGallery .listFair .fairPhoto img {
    width: 100%;
    aspect-ratio: initial;
}

.areaGallery .listFair .boxFair {
    background: #fff;
    padding-top: 24px;
    padding-bottom: 71px;
    border: 1px solid #DBDBDB;
    border-width: 0 1px 1px 1px;
}

.areaGallery .listFair .boxFair .titleFair,
.areaGallery .listFair .fancybox-content .boxFair .titleFair {
    font-size: 16px;
    text-align: center;
    font-weight: 300;
    margin-bottom: 33px;
}

.areaGallery .listFair .boxFair .txtFair,
.areaGallery .listFair .fancybox-content .boxFair .txtFair {
    text-align: justify;
    padding: 0 9px;
    line-height: 1.64;
    min-height: 114px;
}

.fairPhoto .contentPhoto img {
    width: 100%;
    aspect-ratio: 926 / 658;
    height: 100%;
}

.fairPhoto img {
    width: 100%;
}

.boxFair {
    background: #fff;
    padding-top: 24px;
    padding-bottom: 65px;
    border: 1px solid #DBDBDB;
    border-width: 0 1px 1px 1px;
}

.titleFair {
    font-size: 16px;
    text-align: center;
    font-weight: 300;
    margin-bottom: 35px;
}

.txtFair {
    text-align: justify;
    padding: 0 10px;
    line-height: 1.4;
    height: 75px;
    margin-bottom: 8px;
    overflow-y: auto;
}

.fancybox__content .boxFair .popupBtn {
    max-width: 152px;
    width: 100%;
    margin: auto;
}

.fancybox__content .boxFair .popupBtn a {
    position: relative;
    display: block;
    font-size: 10px;
    text-align: center;
    border: 1px solid #42352D;
    padding: 6px 0 7px;
    transition: all .3s;
}

.fancybox__content .boxFair .popupBtn a:before {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 1px solid #42352D;
    border-left: 1px solid #42352D;
    transform: translateY(-50%) rotate(135deg);
    transition: all .3s;
}

.fancybox__content .titleFair {
    margin-bottom: 51px;
}

.fancybox__content .boxFair .fairBtn {
    max-width: 152px;
    width: 100%;
    margin: auto;
}

.fancybox__content .boxFair .fairBtn a {
    position: relative;
    display: block;
    font-size: 10px;
    text-align: center;
    border: 1px solid #42352D;
    padding: 7px 0;
}

.fancybox__content .boxFair .fairBtn a:before {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 1px solid #42352D;
    border-left: 1px solid #42352D;
    transform: translateY(-50%) rotate(135deg);
}

.fancybox__carousel .fancybox__slide .fancybox__content {
    padding: 0;
}


.fancybox__content .titleFair {
    margin-bottom: 53px;
    padding: 0 55px;
}

.fancybox__content .boxFair {
    padding-bottom: 19px;
    position: relative;
}


.fancybox__content .boxFair .close {
    position: absolute;
    right: 17px;
    top: 22px;
}
.fancybox__backdrop {
    background-color: #000;
    opacity: 0.63;
}

.fairPhoto span {
    display: block;
}

.fairPhoto span.contentPhoto {
    position: relative;
}

.fancybox__carousel .fancybox__slide .fancybox__content .fairPhoto {
    position: relative;
}

.fairPhoto span.arrowContent {
    width: 27px;
    height: 64px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.fairPhoto span.arrowPrev {
    left: 8px;
}

.fairPhoto span.arrowNext {
    right: 8px;
}

.fancybox__thumbs,
.carousel__button.is-close,
.carousel__button {
    display: none;
}

.fancybox__carousel .fancybox__slide .fancybox__content {
    padding: 0;
    width: 52.1%;
    top: 50%;
    transform: translateY(-50%);
	overflow-y: scroll
}

.fancybox__slide {
    overflow: initial;
}

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

@media (max-width: 1070px) and (min-width: 769px) {
    .areaGallery .listFair .boxFair .txtFair {
        min-height: 160px;
    }
}

@media (max-width: 840px) and (min-width: 769px) {
    .areaGallery .listFair .boxFair .txtFair {
        min-height: 140px;
        font-size: 12px;
    }

    .areaGallery .listFair .boxFair .titleFair {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media(min-width: 769px) {
    .areaGallery .listFair li a:hover {
        opacity: 0.8;
    }

    .fancybox__content .boxFair .popupBtn a:hover {
        background-color: #42352D;
        color: #fff;
    }

    .fancybox__content .boxFair .popupBtn a:before:hover {
        border-color: #000;
    }
}

@media(max-width: 768px) {
	
	.areaGallery .listTab {
		flex-wrap: wrap;
	}
    .areaGallery {
        margin-bottom: 0;
    }

    .areaGallery .listFair {
        justify-content: space-between;
    }

    .areaGallery .listFair li {
        width: 48%;
        margin-right: 0;
    }

    .areaGallery .listFair li a:hover {
        opacity: 1;
    }

    .areaGallery .listFair .boxFair {
        padding-bottom: 40px;
    }

    .areaGallery .listFair .boxFair .titleFair {
        margin-bottom: 20px;
    }

    .areaGallery .listFair .boxFair .txtFair {
        min-height: 137px;
    }

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

    .fancybox__content .titleFair {
        padding: 0 40px;
    }

    .fancybox__carousel .fancybox__slide .fancybox__content {
        top: 50%;
        width: 100%;
    }

    .fancybox__content .boxFair .close {
        right: 3px;
    }

    .areaStayPlan .numberTypePlace {
        margin-bottom: 47px;
    }


    @media (orientation:landscape) {
        .fancybox__carousel .fancybox__slide .fancybox__content {
            top: 44%;
            width: 50%;
        }

        .fancybox__content .boxFair {
            overflow-y: auto;
            height: 140px;
        }

        .txtFair {
            height: auto;
            overflow-y: initial;
        }
    }
}

@media (max-width: 414px) {
    /*.areaGallery .listFair {
        flex-direction: column;
    }

    .areaGallery .listFair li {
        width: 100%;
        margin-right: 0;
    }*/

    .areaGallery .listFair .boxFair .txtFair {
        min-height: auto;
    }
}

.areaGallery .listTab li {
    margin: 0 4px;
}

.areaGallery .listTab li.active a {
    background: #42352D;
	color:white
}

.areaGallery .listTab li.active::before {
	content: unset
}

.areaGallery .listTab li a {
    border: #42352D 1px solid;
	border-radius: 100px;
	background: white;
	color : #42352D
}