/* ========  General styles   ======== */
:root {
    --color-white: #F9F0EC;
    --color-ochre: #AC835E;
    --color-navyBlue: #181D24;
}
/* =========   carousel & bg   ========== */
#carousel-section {
    position: relative;
    z-index:1;
    top:-28px;
    scroll-snap-align: start;
}
#carousel-section .carousel {
    color: var(--color-white);
    width: 100%;
    height: 90vh;
}
#carousel-section .carousel-bg {
    position: absolute;
    top:0;
    left: 0%;
    width: 100%;
    height: 100%;
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
}
#carousel-section .carousel-bg:nth-child(1) {
    z-index: 0;
}
#carousel-section .carousel-bg:nth-child(2) {
    z-index: -1;
}
#carousel-section .carousel-bg:nth-child(3) {
    z-index: -1;
}
/* MARK: -text-item  */
#carousel-section .text-item {
    position: absolute;
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    will-change: opacity;
    transition: opacity .8s .2s;
}
#carousel-section .text-item h3 {
    font-family: 'SangBleu Empire', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400;
    font-size: 4.8rem;
    line-height: 1.15385em;
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin-left: 33%;
    margin-bottom: 40px;
	color: #ffffff;
	acolor:#181D24;
	a-webkit-text-stroke:1px #fff;
	text-shadow: 0 0 4px #000;
}
#carousel-section .text-item p {
    max-width: 440px;
    width: 30vw;
    height: 96px;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 1px;
    font-size: .95rem;
    margin-left: 33%;
}
/* MARK: -carousel-nav  */
#carousel-section .carousel-nav {
    --leftOffest: 9vw;
    --circle1Offset: 24vw;
    --circle2Offset: 60vw;
    --circle3Offset: 74vw;
    --placeCircleWidth: 7vw;
}
#carousel-section .line-circle-container {
    display: none;
}
/*MARK: ---lines */
#carousel-section .carousel-nav .line-circle {
    border: 1px solid var(--color-white);
    border-bottom: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: var(--leftOffest);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: .3;
    transition: opacity .2s;
}
#carousel-section .carousel-nav .line-circle:nth-child(1) {
    width: var(--circle1Offset);
    height: calc(var(--circle1Offset) / 2);
}
#carousel-section .carousel-nav .line-circle:nth-child(2) {
    width: var(--circle2Offset);
    height: calc(var(--circle2Offset) / 2);
}
#carousel-section .carousel-nav .line-circle:nth-child(3) {
    width: var(--circle3Offset);
    height: calc(var(--circle3Offset) / 2);
}
/*  Place circle */
/*MARK: ---place crcle */
#carousel-section .place-container {
    position: absolute;
    bottom: calc(var(--placeCircleWidth) /2);
    left: 0;
    width: 100vw;
    -webkit-user-select: none;
    user-select: none;
}
/* main Place element that catches the hover */
#carousel-section .place-container .place {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#carousel-section .place:nth-child(1) {
    left: calc(var(--circle1Offset) + var(--leftOffest) - calc(var(--placeCircleWidth) /2));
}
#carousel-section .place:nth-child(2) {
    left: calc(var(--circle2Offset) + var(--leftOffest) - calc(var(--placeCircleWidth) /2));
}
#carousel-section .place:nth-child(3) {
    left: calc(var(--circle3Offset) + var(--leftOffest) - calc(var(--placeCircleWidth) /2));
}
/*  create a circle (which later increases behind the picture) */
#carousel-section .place-container .place .place-circle {
    width: var(--placeCircleWidth);
    height: var(--placeCircleWidth);
    border-radius: 50%;
    background-color: var(--color-white);
    border: 0px solid var(--color-white);
    will-change: transform;
    transition: transform .3s cubic-bezier(.87, .24, .8, .7), border .3s;
}
/* Place Text */
#carousel-section .place-text {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-ochre);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.5s;
}
#carousel-section .place-text span:nth-child(1) {
    font-size: 4rem;
    line-height: 1.13924em;
    font-family: 'SangBleu Empire', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 400;
}
#carousel-section .place-text span:nth-child(2) {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
/*  IMG */
#carousel-section .place .place-img {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(var(--placeCircleWidth) - 4px);
    height: calc(var(--placeCircleWidth) - 4px);
    border-radius: 50%;
    opacity: 1;
    will-change: opacity, transform;
    transition: opacity .3s cubic-bezier(.87, .24, .8, .7), transform .3s cubic-bezier(.87, .24, .8, .7);
}
/*  hover circle */
/*MARK: ---hover circle */
/* fake circle that serves only for hover border animation */
#carousel-section .place .place-border-circle {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--placeCircleWidth);
    height: var(--placeCircleWidth);
    border-radius: 50%;
    border: 0px solid var(--color-white);
    transition: border .2s;
}
#carousel-section .place .place-border-circle:hover {
    border: 6px solid var(--color-white);
}
/* ACTIVE */
/*MARK: ---Active */
#carousel-section .text-item.active {
    visibility: visible;
    opacity: 1;
}
#carousel-section .place.active .place-circle {
    transform: scale(1.85);
    border: 1px solid rgba(172, 131, 94, 0.2);
}
#carousel-section .place.active .place-img {
    opacity: 0;
    transform: scale(1.85);
}
#carousel-section .place.active .place-border-circle {
    opacity: 0;
}
#carousel-section .carousel-nav .line-circle.active {
    border-width: 2px;
    opacity: 1;
}
#carousel-section .place.active .place-text {
    opacity: 1;
}

/* 1440+ */
@media (min-width: 1441px) {
    #carousel-section .carousel-bg:nth-child(1) {
        background-image: url("../img/image-1-xxl.jpg");
    }
    #carousel-section .carousel-bg:nth-child(2) {
        background-image: url("../img/image-2-xxl.jpg");
    }
    #carousel-section .carousel-bg:nth-child(3) {
        background-image: url("../img/image-3-xxl.jpg");
    }
    #carousel-section .text-item h3 {
        margin-left: 33%;
    }
}

/* 980 - 1440 */
@media screen and (max-width: 1440px) and (min-width: 980px) {
    #carousel-section .carousel-bg:nth-child(1) {
        background-image: url("../img/image-1-xl.jpg");
    }
    #carousel-section .carousel-bg:nth-child(2) {
        background-image: url("../img/image-2-xl.jpg");
    }
    #carousel-section .carousel-bg:nth-child(3) {  
        background-image: url("../img/image-3-xl.jpg");
    }
    #carousel-section .text-item h3 {
        font-size: 3.2rem;
        margin-left: 40%;
    }
    #carousel-section .text-item p {
        margin-left: 40%;
        font-size: .8rem;
    }
    #carousel-section .place-text span:nth-child(1) {
        font-size: 3rem;
    }
}

/* 568 - 980 */
@media screen and (max-width: 979px) and (min-width: 568px) {
    #carousel-section .carousel-bg:nth-child(1) {
        background-image: url("../img/image-1-md.jpg");
    }
    #carousel-section .carousel-bg:nth-child(2) {
        background-image: url("../img/image-2-md.jpg");
    }
    #carousel-section .carousel-bg:nth-child(3) {
        background-image: url("../img/image-3-md.jpg");
    }
    #carousel-section .text-item h3 {
        margin: 0 auto;
        margin-bottom: 50px;
        font-size: 2.5rem;
        text-align: center;
    }
    #carousel-section .text-item p {
        margin: 0 auto;
        text-align: center;
        max-width: none;
        width: 70vw;
    }
    #carousel-section .carousel-nav {
        --placeCircleWidth: 60px;
    }
    #carousel-section .place-text span:nth-child(1) {
        font-size: 2.5rem;
    }
    #carousel-section .place .place-border-circle:hover {
        border: 4px solid var(--color-white);
    }
}

/* =========   MQ   ========== */
@media screen and (max-width: 567px) {
    #carousel-section .carousel {
        height: 315px;
    }
    #carousel-section .carousel-bg:nth-child(1) {
        background-image: url("../img/image-1-xs.jpg");
    }
    #carousel-section .carousel-bg:nth-child(2) {
        background-image: url("../img/image-2-xs.jpg");
    }
    #carousel-section .carousel-bg:nth-child(3) {
        background-image: url("../img/image-3-xs.jpg");
    }
    #carousel-section .text-item {
        width: 90%;
        height: 260px;
        transition: opacity .3s;
    }
    #carousel-section .text-container {
        position: absolute;
        top: 100%;
        height: 300px;
        width: 100%;
        padding: 25px;
        background-color: var(--color-navyBlue);
    }
    #carousel-section .text-item h3 {
        font-size: 1.8rem;
        margin-left: 0;
        margin-bottom: 20px;
        color: var(--color-ochre);
        color: #e2bc9b;
    }
    #carousel-section .text-item p {
        font-size: 0.7rem;
        margin: 0;
        text-align: left;
        max-width: none;
        width: 80vw;
        position:relative;
        top:20px;
    }
    /* carousel Nav */
    #carousel-section .carousel-nav {
        --placeCircleWidth: 50px;
    }
    #carousel-section .place-container {
        width: 86vw;
        margin: 0 7vw;
        display: flex;
        justify-content: space-between;
        align-items: stretch;
    }
    #carousel-section .place-container .place {
        position: relative;
        left: 0;
        top: 50px;
        margin: 0;
        transition: all .5s;
    }
    #carousel-section .place:nth-child(1).active {
        margin-right: 30%;
    }
    #carousel-section .place:nth-child(2).active {
    }
    #carousel-section .place:nth-child(3).active {
        margin-left: 30%;
    }
    #carousel-section .carousel-nav .line-circle-container {
        display: none !important;
    }
    #carousel-section .place-container .place .place-circle {
        background-color: var(--color-navyBlue);
    }
    #carousel-section .place-text {
        top: 0px;
        color: var(--color-white);
    }
    #carousel-section .place-text span:nth-child(1) {
        font-size: 2rem;
    }
    #carousel-section .place-text span:nth-child(2) {
        font-size: 0.7rem;
    }
    #carousel-section .place.active .place-circle {
        border: none;
    }
    #carousel-section .place .place-border-circle {
        display: none;
    }
}