.city-tale-cnt {
    padding: 80px 108px 70px 108px;
    background: rgba(255,255,255,var(--bg-alpha,0.8));

    transition:
        background 0.5s ease-out,
}

.parallax-container {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.city-tale-cnt:hover {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.city-tale-cnt h1 {
    font-size: 3.875rem;
    letter-spacing: 2px;
    line-height: 52px;
    text-align: center;
    color: #000000
}

/* explore grid */
.explore-grid-cnt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #efe3d5;
}

.grid-text {
    background-color: #efe3d5;
    padding: 160px 90px;
}

.item.image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.item.image img {
    aspect-ratio: 2.3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #efe3d5;
    transform: translate(-50%, -50%);
    transition: transform 1s ease;
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Overlay color layer */
.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #efe3d5;
    z-index: 2;
    transition: transform 1s ease-in-out;
    pointer-events: none;
    transform: translateX(0);
}

.color-overlay.slide-out-left {
transform: translateX(-100%);
}
.color-overlay.slide-out-right {
transform: translateX(100%);
}
.grid-text h2 {
    font-size: 3.875rem;
    letter-spacing: 2px;
    line-height: 52px;
    color: #000000;
    text-align: center;
    margin: 0px;
}

.grid-text p {
    font-size: 1rem;
    line-height: 25px;
}

.info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}

.info h4 {
    font-size: 2rem;
    line-height: 65px;
    color: #000000;
    margin-block-end: unset;
    margin-block-start: unset;
}

.info p {
    font-size: 1rem;
    line-height: 25px;
    color: #000000B3;
    margin: 0px;
    text-align: center;
    margin: auto;
}

.info div {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.full {
    grid-column: span 2;
}

.experience-section {
    background-color: #ffffff;
    padding: 160px 90px;
}

.experience-section h1 {
    font-size: 3.875rem;
    letter-spacing: 2px;
    line-height: 45px;
    color: #000000;
    text-align: center;
    margin: 0px;
}

.experience-card-cnt {
    display: flex;
    column-gap: 50px;
    justify-content: space-between;
    padding-top: 3px;
}

.experience-card-cnt h3 {
    font-size: 2.625rem;
    line-height: 36px;
    margin: 42px 0px 0px 0px;
    color: #000000;
}

.experience-item {
    width: 100%;
}

.experience-item .image-box {
    width: 100%;
    aspect-ratio: 499/364;
    background-color: #736357;
    overflow: hidden;
    position: relative;
}

.experience-item .image-box img {
    object-fit: cover;
    height: 100%;
    width: auto;
}

.details p {
    font-size: 1rem;
    line-height: 20px;
    color: #000000B3;
    margin:  0px 0px 30px 0px;
}

/* .parallax-img-wrapper {
    height: 60vh;
} */

/* bubba effect */
/* .heading-centered {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
} */

/* Bubba keyframe for heading */
@keyframes slideToTop {
0% {
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}
100% {
    top: 0;
    transform: translateY(0);
    opacity: 1;
}
}

/* Apply heading animation */
.city-tale-cnt.active .heading-centered {
    animation: slideToTop 1.2s ease forwards;
}

/* Paragraph initial state */
.paragraph-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Bubba keyframe for paragraph */
@keyframes fadeInUp {
0% {
    opacity: 0;
    transform: translateY(20px);
}
100% {
    opacity: 1;
    transform: translateY(0);
}
}

/* Apply paragraph animation */
.city-tale-cnt.active .paragraph-hidden {
    animation: fadeInUp 0.5s ease 0.3s forwards;
}

.city-tale-cnt .separator {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

@keyframes separatorGrow {
to {
    opacity: 1;
    transform: scaleX(1);
}
}

.city-tale-cnt.active .separator {
    animation: separatorGrow 1s ease 0.3s forwards;
}

#top-5-header-desktop {
    display: block;
}

#top-5-header-mobile {
    display: none;
}

@keyframes slideToBottom {
0% {
    top: -15%;
    transform: translateY(0);
    opacity: 0;
}
100% {
    top: 0;
    transform: translateY(0);
    opacity: 1;
}
}
.explore-grid-cnt .bubba-effect-cnt.active .heading-centered,
.explore-grid-cnt .grid-text.active .heading-centered {
    animation: slideToBottom 1.2s ease forwards;
}

/* .bubba-effect-cnt.active .heading-centered {
    animation: slideToBottom 1.2s ease forwards;
}

.paragraph-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.bubba-effect-cnt.active .paragraph-hidden {
    animation: fadeInUp 0.5s ease 0.3s forwards;
}

.bubba-effect-cnt .separator {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

.bubba-effect-cnt.active .separator {
    animation: separatorGrow 1s ease 0.3s forwards;
} */

#cityTalesBox {
    background-image: url("./assets/1920/25-1920.jpg"); 
    background-size: cover; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    background-position: center 70%;
    height: 35vh;
}

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


    .city-tale-cnt {
        padding: 40px;
    }

    .city-tale-cnt h1 {
        font-size: 2.625rem;
        letter-spacing: 1px;
        line-height: 42px;
    }

    .top-5-header {
        font-size: 2.625rem !important;
    }

    /* explore-grid */
    .explore-grid-cnt {
        display: flex;
        flex-direction: column;
    }

    .item.image {
        aspect-ratio: 1/1;
        height: auto;
        width: 100%;
    }

    .item.image img {
        aspect-ratio: 1/1;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .explore-grid-cnt .item:nth-child(1) {
        order: 2;
    }

    .explore-grid-cnt .item:nth-child(2) {
        order: 1;
    }

    /* 3 and 4 remain unchanged */
    .explore-grid-cnt .item:nth-child(3) {
        order: 3;
    }

    .explore-grid-cnt .item:nth-child(4) {
        order: 4;
    }

    .explore-grid-cnt .item:nth-child(5) {
        order: 6;
    }

    .explore-grid-cnt .item:nth-child(6) {
        order: 5;
    }

    /* 7 and 8 remain unchanged */
    .explore-grid-cnt .item:nth-child(7) {
        order: 7;
    }

    .explore-grid-cnt .item:nth-child(8) {
        order: 8;
    }

    .explore-grid-cnt .item:nth-child(9) {
        order: 10;
    }

    .explore-grid-cnt .item:nth-child(10) {
        order: 9;
    }

    .full {
        grid-column: span 1;
    }

    .info {
        flex-direction: column;
        row-gap: 40px;
    }

    .info h4,
    .info p {
        margin-block-end: unset;
        margin-block-start: unset;
    }

    /* .info h4 {
        margin-bottom: 6px;
    } */

    .grid-text {
        background-color: #efe3d5;
        padding: 150px 20px;
    }

    .grid-text h2 {
        font-size: 2.625rem;
        letter-spacing: 1px;
        line-height: 42px;
        color: #000000;
        text-align: center;
        margin: 0px;
    }

    .experience-item {
        width: 100%;
    }

    .experience-item .image-box {
        aspect-ratio: 1/1;
        max-width: 100%;
    }

    .experience-section {
        padding: 150px 20px;
    }

    .experience-section h1 {
        font-size: 2.625rem;
        letter-spacing: 1px;
        line-height: 42px;
        margin: 0px;
    }

    /* .parallax-img-wrapper {
        height: 55vh;
    } */

    #top-5-container {
        padding: 150px 0px 161px 0px;
    }

    #top-5-container h1, h2 {
        margin: auto;
    }

    /* #top-5-container p {
        padding: 0px 20px;
    } */

    /* .parallax-container {
        height: 50vh !important;
        min-height: 50vh;
    } */
}

@media (max-width: 767px) {
    .experience-card-cnt {
        display: flex;
        flex-direction: column;
        row-gap: 40px;
        justify-content: center;
        align-items: center;
        padding-top: 5px;
    }
    .city-tale-cnt.active .heading-centered {
        animation: slideToTop 0.4s ease forwards;
    }
    .city-tale-cnt.active .paragraph-hidden {
        animation: fadeInUp 0.3s ease 0.1s forwards;
    }
    .city-tale-cnt.active .separator {
        animation: separatorGrow 0.5s ease 0.3s forwards;
    }
    .item.image img {
        transform: translate(-50%, -50%) scaleX(1) !important;
    }
    .bubba-effect-cnt.active .heading-centered {
        animation: slideToTop 0.4s ease forwards;
    }
    .bubba-effect-cnt.active .paragraph-hidden {
        animation: fadeInUp 0.3s ease 0.1s forwards;
    }
    .bubba-effect-cnt.active .separator {
        animation: separatorGrow 0.5s ease 0.3s forwards;
    }

    .parallax-container {
        height: 40vh;
        min-height: 50vh !important;
        position:relative;
        overflow: hidden;
        background: transparent;
    }

    .parallax-video img {
        width: 100%;
        height: 40vh;

        /* height: calc(40vh + 90px); */
        object-fit: cover;
        position: fixed !important;
        top: 91px;
        left: 0;
        will-change: transform;
        /* margin-top: 91px; */
    }

    .parallax-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 40vh; /* Match container */
        z-index: -1;
        
    }

        .content-section,
        .grid-text,
        .experience-section {
            padding: 80px 20px 80px 20px !important;
        }
}

@media (max-width: 480px) {
    #top-5-header-desktop {
        display: none;
    }

    #top-5-header-mobile {
        display: block;
    }
    .color-overlay {
        display: none;
    }
    #cityTalesBox {
        height: auto;
    }
}