/* Load font ----------------------------------------------------*/
@import url('https://fonts.cdnfonts.com/css/graphik-trial?styles=136909,136897,136899,136901,136905,136895');
/* --------------------------------------------------------------- */
*{
    font-family: 'Graphik Trial', sans-serif;
}

.custom-header{
    width: 100%;
    min-height: 125px;
    padding: 0 5%;
    z-index: 199;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-header img{
    width: 120px;
    height: auto;
    opacity: 1;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 13px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.carousel-toggle-wrapper{
    margin: 0 auto;    
    display: flex;
}

.rectangle-span {
    margin: 0;
    width: 2.4em; /* Set the desired width */
    height: 14px; /* Set the desired height */
    border: 2px solid ;
    cursor: pointer;
    display: inline-block; /* Make it an inline block so it respects its dimensions */
    transition: border-color 1s ease;
}

.navbar-toggle-button {
    width: 2.4em;
    height: 14px;
    position: relative;
    display: flex;
    margin: 0 auto;
    cursor: pointer;
}

.navbar-toggle-button .top,
.navbar-toggle-button .middle,
.navbar-toggle-button .bottom {
    width: 100%;
    height: 2px;
    position: absolute;
    transition: ease-in-out opacity 0.2s, ease-in-out width 0.2s, ease-in-out height 0.2s, ease-in-out transform 0.2s, ease-in-out border 0.2s, ease-in-out border-radius 0.2s, ease background-color 1s;

}

.top {
    top: 0;
}

.middle {
    top: 41%;
}

.bottom {
    top: 81%;
}

.navbar-toggle-button.toggled .middle{
    opacity: 0 !important;
}

.navbar-toggle-button.toggled  .top{
    left: 25% !important;
    width: 50% !important;
    transform: rotate(45deg) !important;
    top: 40% !important;
    border: 1px solid white !important;
    border-radius: 10px !important;
}

.navbar-toggle-button.toggled  .bottom{
    left: 25% !important;
    width: 50% !important;
    transform: rotate(-45deg) !important;
    top: 40% !important;
    border: 1px solid white !important;
    border-radius: 10px !important; 
}









ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Reset numbering for ordered lists */
ol {
    list-style: decimal;
}

.carousel-section{
    width: 100%;
    background-color: #1a1a1a;
    overflow: hidden;
    z-index: 0;
    position: absolute;
    top: 0;
}







.carousel-wrapper {
    display: none; /* DE STERS ASTA DUPA DEV */

    width: 100%; /* Define the visible width of the carousel */
    overflow: hidden;
    position: relative; /* Ensure the child elements respect the overflow */
}

.carousel{
    display: flex; /* Make the cards display horizontally in a row */
    list-style: none; /* Remove list styling */
    padding: 0;
    margin: 0;
    transition: ease-out transform 0.5s; /* Add smooth transition effect for card sliding */
}

.card{
    width: 100%; /* Set the width for each card item */
    min-height: 100vh;
}

.card-content{
    display: block;
    width: 100vw;
    min-height: 100vh;
    background-size: 115% 115%;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    font-family: 'Graphik Trial', sans-serif;
    animation: zoomBackground 12s;
}

.card-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Adjust the last value (0.5) for the desired opacity */
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1; /* Ensure the overlay is above the background image */
}

.text-section{
    position: absolute;
    bottom: 5%;
    left: 5%;
    width: fit-content;
    z-index: 2;
    color: #fff;
    text-align: left;
}

.text-section-subtitle{
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    height: 20px;
    gap: 40px;
    padding-bottom: 30px;
    letter-spacing: 1pt;
    transition: opacity 0.5s ease-in;
}

.seo-title{
    opacity: 0.5;
    position: relative;
}

.seo-title:before {
    content: "";
    background-color: #fff;
    width: 1px;
    height: 40px;
    position: absolute;
    left: -20px;
    top: -50%;
}


.text-section-big-title{
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 0.5em;
    line-height: 1em;
    letter-spacing: -.5pt;
    margin-left: -3pt;
    display: inline-block;
    text-transform: uppercase;
    transition: opacity 1s ease-in;
}

.text-section-description{
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6em;
    margin-bottom: 2.5em;
    max-width: 700px;
    transition: opacity 1.5s ease-in;
}

.text-button-container{
    width: 200px;
    height: 60px;
    text-align: center;
    margin-bottom: 2.5em;
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    position: relative; /* Relative positioning for ::before */
    cursor: pointer;
}

.text-button-container-play-animation:before {
    content: "";
    position: absolute;
    left:0;
    top:0;
    width: 0;
    height: 0;
    border-top: 1px solid white;
    border-right: 1px solid white;
    animation: border-top-right 2s forwards;
}

@keyframes border-top-right {
    0%    {width:0px;   height:0px;}
    25%   {width:200px; height:0px;}
    50%   {width:200px; height:58px;}
    100%  {width:200px; height:59px;}
}

.text-button-container-play-animation:after {
    content: "";
    position: absolute;
    right:0;
    bottom:0;
    width: 0;
    height: 0;
    border-bottom:1px solid white;
    border-left: 1px solid white;
    animation: border-bottom-left 2s forwards ;
}

@keyframes border-bottom-left {
    0%    {width:0px;   height:0px; opacity: 0;}
    50%   {width:0px;   height:0px; opacity: 0;}
    50.1% {width:0px;   height:0px; opacity: 1;}
    75%   {width:200px; height:0px; opacity: 1;}
    100%  {width:200px; height:59px;opacity: 1;}
}

.text-section-button{
    text-transform: uppercase;
    font-weight: 600 !important;
    font-size: 11px !important;
    width: 100%;
    height: 100%;
    text-align: center;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflowing ::before pseudo-element */
    position: relative; /* Relative positioning for ::before */
    cursor: pointer;
    z-index: 14;
    transition: opacity 1.5s ease-in;
}

.text-section-button span{
    margin: 0 auto;
    padding: 0;
    letter-spacing: 1pt;
    color: #fff;
    transition: ease-in-out color 0.5s; /* Smooth color transition on hover */
    z-index: 15;
}

.text-section-button::before {
    content: "";
    position: absolute;
    left: -100%; /* Start from the left */
    top: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Initial background color */
    transition: ease-in-out left 0.5s, background-color 0.5s; /* Smooth transitions for left and background */
}

.text-section-button:hover::before {
    left: 0; /* Fill from left to right on hover */
    background-color: white; /* Change the background color on hover */
}

.text-section-button:hover span {
    color: black; /* Change text color to black on hover */
}




/* Define custom cursor styles */
.cursor-left {
    cursor: w-resize; /* Use a left-resize cursor or another suitable cursor style */
}

.cursor-right {
    cursor: e-resize; /* Use a right-resize cursor or another suitable cursor style */
}

.cursor-cell{
    cursor: cell;
}




/* Small carousel styling */
.carousel-wrapper-small {
    width: 100%; /* Define the visible width of the carousel */
    overflow: hidden;
    position: relative; /* Ensure the child elements respect the overflow */
}

.carousel-small{
    display: flex; /* Make the cards display horizontally in a row */
    gap: 35px;
    list-style: none; /* Remove list styling */
    padding: 0;
    margin: 0;
    transform: translateX(31.5%);
    transition: transform 1s;
    scroll-snap-type: x mandatory;
    /* Hide the scrollbar for webkit-based browsers (Chrome, Safari) */
    scrollbar-width: none; /* Firefox */
    -webkit-scrollbar-width: none; /* Webkit (Chrome, Safari) */
}

.carousel-small::-webkit-scrollbar {
    display: none;
}

.card-small{
    user-select: none;
    width: 37%; /* Set the width for each card item */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-content-small{
    display: block;
    width: 100vw;
    min-height: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    font-family: 'Graphik Trial', sans-serif;
}



/*! Flickity v2.3.0
https://flickity.metafizzy.co
---------------------------------------------- */

.flickity-enabled {
    position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
    position: relative;
    height: 100%;
    width: 100%;
    transform: scale(1);
    transition: transform 2s ease, width 2s ease, height 2s ease;
}

.flickity-slider {
    width: 100%;
    height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
    cursor: move;
    cursor: -webkit-grab;
    cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

/* ---- flickity-button ---- */

.flickity-button {
    position: absolute;
    background: hsla(0, 0%, 100%, 0.75);
    border: none;
    color: #333;
}

.flickity-button:hover {
    background: white;
    cursor: pointer;
}

.flickity-button:focus {
    outline: none;
    box-shadow: 0 0 0 5px #19F;
}

.flickity-button:active {
    opacity: 0.6;
}

.flickity-button:disabled {
    opacity: 0.3;
    cursor: auto;
    /* prevent disabled button from capturing pointer up event. #716 */
    pointer-events: none;
}

.flickity-button-icon {
    fill: currentColor;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* vertically center */
    transform: translateY(-50%);
}

.flickity-prev-next-button.previous { left: 10px; }
.flickity-prev-next-button.next { right: 10px; }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
    left: auto;
    right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
    right: auto;
    left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
}

/* ---- page dots ---- */

.flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -25px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    background: #333;
    border-radius: 50%;
    opacity: 0.25;
    cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
    opacity: 1;
}





#carousel-category{
    position: absolute;
    top: calc(30% - 50px);
    left: calc(30% + 15px);
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1pt;
    transition: opacity 0.3s ease;
}

#carousel-category:before {
    content: "";
    background-color: #fff;
    opacity: 0.5;
    width: 1px;
    height: 40px;
    position: absolute;
    left: -15px;
    top: -50%;
}

.small-carousel-wrapper{
    height: 100vh;
    width: 100%;
}

.main-carousel{
    height: 100%;
    width: 100%;
    margin: 0;
}


.carousel-cell {
    width: 100%; /* half-width */
    height: 100%;
    margin-right: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transition: margin-right 2s ease, background-size 2s ease-in;
    -moz-transition: margin-right 2s ease, background-size 2s ease-in;
    -ms-transition: margin-right 2s ease, background-size 2s ease-in;
    -o-transition: margin-right 2s ease, background-size 2s ease-in;
    transition: margin-right 2s ease, background-size 12s ease;
}

.carousel-cell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75) 100%); /* Bottom to middle gradient */
    z-index: 1; /* Ensure the overlay is above the background image */
    opacity: var(--overlay-opacity);
    transition: opacity 0.5s ease;
}

.small-carousel-text{
    position: absolute;
    bottom: -200px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.small-carousel-text p{
    letter-spacing: 2pt;
    font-size: 54px;
    opacity: 1;
}

.small-carousel-text span{
    letter-spacing: 2pt;
    font-size: 31.5px;
    opacity: 0.5;
}


.is-selected{
    cursor: var(--pointer_type, url('res/images/arrow-left.png'))  !important;
}


#card0{
    background-image: url('res/images/wroughton_kitchen.jpg');
}
#card1{
    background-image: url('res/images/wimbledon_kitchen.jpg');
}
#card2{
    background-image: url('res/images/wandsworth_kitchen.jpg');
}
#card3{
    background-image: url('res/images/st_johns_wood_kitchen.jpg');
}
#card4{
    background-image: url('res/images/kensington_kitchen.jpg');
}
#card5{
    background-image: url('res/images/clapham_kitchen.jpg');
}
#card6{
    background-image: url('res/images/barnes_kitchen.jpg');
}

.zoom-animation {
    animation: zoomOutBackground 12s;
}

.zoom-out-animation{
    animation: zoomBackground 12s;
}

@keyframes zoomBackground {
    0% {
        background-size: 100% 100%;
    }
    100% {
        background-size: 115% 115%; /* Adjust the zoom level as per your requirement */
    }
}

@keyframes zoomOutBackground {
    0% {
        background-size: 100% 100%;
    }
    100% {
        background-size: 115% 115%; /* Adjust the zoom level as per your requirement */
    }
}












.nav-menu{
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.5s ease;
    z-index: 198;
}

.nav-menu-container{
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    transform: translateX(50%);
    transition: transform 1s ease;
}

.nav-menu-first{
    margin: 0;
    border-right: 1px solid;
    border-color: transparent;
    min-width: 33%;
    height: 70%;
    max-height: 550px;
    display: flex;
    align-items: center;
    padding-right: 100px;
    padding-left: 100px;
    transition: border-color 1s ease;
}

.nav-menu-first.open {
    border-color: rgba(255, 255, 255, 0.3); /* Specify the color when the menu is open */
}

.nav-menu-first p{
    margin: 0 auto;
    color: #fff;
    opacity: 0.5;
    font-size: 26px;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: opacity 0.75s ease;
}

.nav-menu-first p:hover{
    opacity: 1;
    cursor: pointer;
}

.nav-menu-first-inner{
    width: fit-content;
}

.nav-menu-second{
    margin: 0;
    width: 53%;
    border-right: 1px solid;
    border-color: transparent;
    height: 50%;
    max-height: 400px;
    display: flex;
    align-items: center;
    opacity: 0;
    padding-right: 100px;
    transition: opacity 1s ease;
}

.nav-menu-second.open {
    border-color: rgba(255, 255, 255, 0.3); /* Specify the color when the menu is open */
}

.nav-menu-second p{
    margin: 0;
    color: #fff;
    opacity: 0.5;
    font-size: 26px;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: opacity 0.75s ease;
}

.nav-menu-second p:hover{
    opacity: 1;
    cursor: pointer;
}


.nav-menu-third{
    margin: 0;
    height: 50%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.nav-menu-third p{
    margin: 0;
    color: #fff;
    opacity: 0.5;
    font-size: 26px;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: opacity 0.75s ease;
}

.nav-menu-third p:hover{
    opacity: 1;
    cursor: pointer;
}


.seo-title-mobile{
    display: none;
}


.progress-bar-container{
    position: absolute;
    top: 92%;
    width: 100%;
}

.progress-bar{
    display: none;
    width: 85%;
    position: absolute;
    left: 7.5%;
    opacity: 0;
    transition: opacity 1s ease;
}

.progress-bar-grabbable{
    position: absolute;
    height: 20px;
    width: 25%;
    left: 0;
    top: -9px;
    cursor: grab;
    z-index: 999;
    transform: translateX(0%);
}

.progress-bar-grabbable::before{
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    left: 0;
    height: 4px;
    width: 100%;
    background-color: white;
}

.progress-bar::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: white;
    opacity: 0.25;
}


#arrow-left-div{
    display: none;
    position: absolute;
    text-align: center;
    width: 48px;
    height: 48px;
    z-index: 999;
}

#arrow-left-div img{
    margin: 0 auto;
    width: 48px;
    height: 48px;
    z-index: 999;
}

#arrow-right-div{
    display: none;
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 999;
}

#arrow-right-div img{
    margin: 0 auto;
    width: 50px;
    height: 50px;
    z-index: 999;
}


/* nav menu mobile classes */
.nav-menu-mobile{
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-x: visible;
}

.nav-menu-container-mobile{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    transform: translateX(0);
    transition: transform 1s ease;
}

.nav-menu-first-mobile{
    margin: 0;
    border-right: 1px solid;
    border-color: transparent;
    min-width: 100dvw;
    height: 70%;
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
    transition: border-color 1s ease, transform 1s ease;
}

.nav-menu-first-mobile.open {
    border-color: rgba(255, 255, 255, 0.3); /* Specify the color when the menu is open */
}

.nav-menu-first-mobile p{
    margin: 0 auto;
    color: #fff;
    opacity: 0.5;
    font-size: 26px;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: opacity 0.75s ease;
}

.nav-menu-first-mobile p:hover{
    opacity: 1;
    cursor: pointer;
}

.nav-menu-first-inner-mobile{
    width: fit-content;
}

.nav-menu-second-mobile{
    margin: 0;
    min-width: 100dvw;
    border-right: 1px solid;
    border-color: transparent;
    height: 50%;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding-right: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.nav-menu-second-mobile.open {
    border-color: rgba(255, 255, 255, 0.3); /* Specify the color when the menu is open */
}

.nav-menu-second-mobile p{
    margin: 0;
    color: #fff;
    opacity: 0.5;
    font-size: 26px;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: opacity 0.75s ease;
}

.nav-menu-second-mobile p:hover{
    opacity: 1;
    cursor: pointer;
}


.nav-menu-third-mobile{
    margin: 0;
    min-width: 100dvw;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.nav-menu-third-mobile p{
    margin: 0;
    color: #fff;
    opacity: 0.5;
    font-size: 26px;
    font-weight: 200;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: opacity 0.75s ease;
}

.nav-menu-third-mobile p:hover{
    opacity: 1;
    cursor: pointer;
}

.menu-back-button{
    font-size: 13px;
    height: 30px;
    line-height: 30px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    opacity: 0.5;
    margin-bottom: 30px;
    transition: opacity 0.75s ease;
}


.menu-social-media{
    position: absolute;
    bottom: 10px;
    right: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-social-media a{
    padding: 0;
    margin: 0;
}

.menu-social-media img{
    opacity: 0.5;
    scale: 0.75;
    cursor: pointer;
    transition: opacity 1s ease;
    padding: 0;
    margin: 0;
}

.menu-social-media img:hover{
    opacity: 1;
}


/* Media query for mobile devices with a maximum width of 767px */
@media (max-width: 1100px) {

    body {
        background-color: #1A1A1A; /* Replace with your desired color code */
    }

    .carousel-section{
        overflow: hidden;
    }

    .text-section{
    /* DE STERS ASTA DUPA DEV */
        position: absolute;
        bottom: 5%;
        left: 0%;
        margin-left: 5%;
        margin-right: 5%;
        width: 90%;
        z-index: 2;
        color: #fff;
        text-align: left;
    }
    
    .text-section-subtitle{
        display: flex;
        align-items: center;
        font-weight: 600;
        font-size: 12px;
        color: #fff;
        height: 20px;
        gap: 40px;
        padding-bottom: 20px;
        letter-spacing: 1pt;
        transition: opacity 0.5s ease-in;
    }
    
    .seo-title{
        display: none;
        opacity: 0.5;
        position: relative;
    }
    
    .seo-title:before {
        content: "";
        background-color: #fff;
        width: 1px;
        height: 40px;
        position: absolute;
        left: -20px;
        top: -50%;
    }
    
    .seo-title-mobile{
        display: block;
        font-weight: 600;
        font-size: 12px !important;
        color: #fff;
        height: 20px;
        gap: 40px;
        padding-top: 20px;
        padding-bottom: 40px;
        letter-spacing: 1pt;
        text-transform: uppercase;
        opacity: 0.5;
        transition: opacity 0.5s ease-in;
    }
    
    .text-section-big-title{
        font-size: 36px;
        font-weight: 300;
        margin-bottom: 0;
        line-height: 1em;
        letter-spacing: -.5pt;
        margin-left: -3pt;
        display: inline-block;
        text-transform: uppercase;
        transition: opacity 1s ease-in;
    }
    
    .text-section-description{
        display: none;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.6em;
        margin-bottom: 2.5em;
        max-width: 50%;
        transition: opacity 1.5s ease-in;
    }
    
    .text-button-container{
        width: 200px;
        height: 60px;
        text-align: center;
        margin-bottom: 0;
        display: flex;
        opacity: 1;
        justify-content: center;
        align-items: center;
        position: relative; /* Relative positioning for ::before */
        cursor: pointer;
    }
    
    .text-button-container-play-animation:before {
        content: "";
        position: absolute;
        left:0;
        top:0;
        width: 0;
        height: 0;
        border-top: 1px solid white;
        border-right: 1px solid white;
        animation: border-top-right 2s forwards;
    }
    
    @keyframes border-top-right {
        0%    {width:0px;   height:0px;}
        25%   {width:200px; height:0px;}
        50%   {width:200px; height:58px;}
        100%  {width:200px; height:59px;}
    }
    
    .text-button-container-play-animation:after {
        content: "";
        position: absolute;
        right:0;
        bottom:0;
        width: 0;
        height: 0;
        border-bottom:1px solid white;
        border-left: 1px solid white;
        animation: border-bottom-left 2s forwards ;
    }
    
    @keyframes border-bottom-left {
        0%    {width:0px;   height:0px; opacity: 0;}
        50%   {width:0px;   height:0px; opacity: 0;}
        50.1% {width:0px;   height:0px; opacity: 1;}
        75%   {width:200px; height:0px; opacity: 1;}
        100%  {width:200px; height:59px;opacity: 1;}
    }
    
    .text-section-button{
        text-transform: uppercase;
        font-weight: 600 !important;
        font-size: 11px !important;
        width: 100%;
        height: 100%;
        text-align: center;
        display: none;
        opacity: 0;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Hide overflowing ::before pseudo-element */
        position: relative; /* Relative positioning for ::before */
        cursor: pointer;
        z-index: 14;
        transition: opacity 1.5s ease-in;
    }
    
    .text-section-button span{
        margin: 0 auto;
        padding: 0;
        letter-spacing: 1pt;
        color: #fff;
        transition: ease-in-out color 0.5s; /* Smooth color transition on hover */
        z-index: 15;
    }
    
    .text-section-button::before {
        content: "";
        position: absolute;
        left: -100%; /* Start from the left */
        top: 0;
        width: 100%;
        height: 100%;
        background-color: white; /* Initial background color */
        transition: ease-in-out left 0.5s, background-color 0.5s; /* Smooth transitions for left and background */
    }
    
    .text-section-button:hover::before {
        left: 0; /* Fill from left to right on hover */
        background-color: white; /* Change the background color on hover */
    }
    
    .text-section-button:hover span {
        color: black; /* Change text color to black on hover */
    }
    
    .flickity-enabled {
        position: relative;
    }
    
    .flickity-enabled:focus { outline: none; }
    
    .flickity-viewport {
        position: relative;
        height: 100%;
        width: 100%;
        transform: scale(1);
        transition: transform 2s ease, width 2s ease, height 2s ease;
    }
    
    .flickity-slider {
        width: 100%;
        height: 100%;
    }
    
    /* draggable */
    
    .flickity-enabled.is-draggable {
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
                user-select: none;
    }
    
    .flickity-enabled.is-draggable .flickity-viewport {
        cursor: move;
        cursor: -webkit-grab;
        cursor: grab;
    }
    
    .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
        cursor: -webkit-grabbing;
        cursor: grabbing;
    }
    
    /* ---- flickity-button ---- */
    
    .flickity-button {
        position: absolute;
        background: hsla(0, 0%, 100%, 0.75);
        border: none;
        color: #333;
    }
    
    .flickity-button:hover {
        background: white;
        cursor: pointer;
    }
    
    .flickity-button:focus {
        outline: none;
        box-shadow: 0 0 0 5px #19F;
    }
    
    .flickity-button:active {
        opacity: 0.6;
    }
    
    .flickity-button:disabled {
        opacity: 0.3;
        cursor: auto;
        /* prevent disabled button from capturing pointer up event. #716 */
        pointer-events: none;
    }
    
    .flickity-button-icon {
        fill: currentColor;
    }
    
    /* ---- previous/next buttons ---- */
    
    .flickity-prev-next-button {
        top: 50%;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        /* vertically center */
        transform: translateY(-50%);
    }
    
    .flickity-prev-next-button.previous { left: 10px; }
    .flickity-prev-next-button.next { right: 10px; }
    /* right to left */
    .flickity-rtl .flickity-prev-next-button.previous {
        left: auto;
        right: 10px;
    }
    .flickity-rtl .flickity-prev-next-button.next {
        right: auto;
        left: 10px;
    }
    
    .flickity-prev-next-button .flickity-button-icon {
        position: absolute;
        left: 20%;
        top: 20%;
        width: 60%;
        height: 60%;
    }
    
    /* ---- page dots ---- */
    
    .flickity-page-dots {
        position: absolute;
        width: 100%;
        bottom: -25px;
        padding: 0;
        margin: 0;
        list-style: none;
        text-align: center;
        line-height: 1;
    }
    
    .flickity-rtl .flickity-page-dots { direction: rtl; }
    
    .flickity-page-dots .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 8px;
        background: #333;
        border-radius: 50%;
        opacity: 0.25;
        cursor: pointer;
    }
    
    .flickity-page-dots .dot.is-selected {
        opacity: 1;
    }
    
    
    
    
    
    #carousel-category{
        position: absolute;
        top: calc(20%);
        left: calc(29%);
        color: white;
        text-transform: uppercase;
        font-size: 9.8px;
        font-weight: 500;
        letter-spacing: 1pt;
        transition: opacity 0.3s ease;
    }
    
    #carousel-category:before {
        content: "";
        background-color: #fff;
        opacity: 0.5;
        width: 1px;
        height: 30px;
        position: absolute;
        left: -15px;
        top: -50%;
    }
    
    .small-carousel-wrapper{
        height: 100dvh;
        width: 100%;
    }
    
    .main-carousel{
        height: 100%;
        width: 100%;
        margin: 0;
    }
    
    
    .carousel-cell {
        width: 100%; /* half-width */
        height: 100%;
        margin-right: 5%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        text-align: center;
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        -webkit-transition: margin-right 2s ease, background-size 2s ease-in;
        -moz-transition: margin-right 2s ease, background-size 2s ease-in;
        -ms-transition: margin-right 2s ease, background-size 2s ease-in;
        -o-transition: margin-right 2s ease, background-size 2s ease-in;
        transition: margin-right 2s ease, background-size 12s ease;
    }
    
    .carousel-cell::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75) 100%); /* Bottom to middle gradient */
        z-index: 1; /* Ensure the overlay is above the background image */
        opacity: var(--overlay-opacity);
        transition: opacity 0.5s ease;
    }
    
    .small-carousel-text{
        position: absolute;
        bottom: -100px;
        text-transform: uppercase;
        color: #fff;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    #small-carousel-text0 {
        bottom: -125px;
      }
    
    .small-carousel-text p{
        letter-spacing: 1pt;
        font-size: 1.5em;
        opacity: 1;
    }
    
    .small-carousel-text span{
        letter-spacing: 1pt;
        font-size: 1em;
        opacity: 0.5;
    }
    
    
    .is-selected{
        cursor: var(--pointer_type, default)  !important;
    }
    
    
    #card0{
        background-image: url('res/images/wroughton_kithcne_mobile.jpg');
    }
    #card1{
        background-image: url('res/images/wimbledon_kitchen_mobile.jpg');
    }
    #card2{
        background-image: url('res/images/wandsworth_kitchen_mobile.jpg');
    }
    #card3{
        background-image: url('res/images/st_johns_wood_kitchen_mobile.jpg');
    }
    #card4{
        background-image: url('res/images/kensington_kitchen_mobile.jpg');
    }
    #card5{
        background-image: url('res/images/clapham_kitchen_mobile.jpg');
    }
    #card6{
        background-image: url('res/images/barnes_kitchen_mobile.jpg');
    }

    .zoom-animation {
        animation: zoomOutBackground 12s;
    }
    
    .zoom-out-animation{
        animation: zoomBackground 12s;
    }
    
    @keyframes zoomBackground {
        0% {
            background-size: 100% 100%;
        }
        100% {
            background-size: 115% 115%; /* Adjust the zoom level as per your requirement */
        }
    }
    
    @keyframes zoomOutBackground {
        0% {
            background-size: 115% 115%; 
        }
        100% {
            background-size: 100% 100%; /* Adjust the zoom level as per your requirement */
        }
    }
    
    .menu-social-media img{
        opacity: 0.5;
        scale: 0.5;
        cursor: pointer;
        transition: opacity 1s ease;
        padding: 0;
        margin: 0;
    }
}
