* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
body {
    background-color: #ffeaf1;
}
.header {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden; /* Ensure slides don't overflow */
    background-image: linear-gradient(rgba(30, 15, 35, 0.7), rgba(30, 15, 35, 0.7)), none;
}
.slide-header {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
nav img {
    width: 70px;
}
.nav-links {
    flex: 1;
    text-align: right;
}
.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #720e9e;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after {
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.text-box h1{
    font-size: 82px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 22px;
    color:#fff;
}
.hero-btn {
    display:inline-block;
    text-decoration-skip-ink: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 16px;
    background: transparent;
    position: relative;
    cursor: pointer

}
.hero-btn:hover {
    border: 1px solid #720e9e;
    background: #720e9e;
    transition: 1s;
}

nav .fa {
    display: none;
}

@media(max-width: 700px) {
    .text-box h1 {
        font-size: 64px;
    }
    .nav-links ul li {
        display: block;
    }
    .nav-links {
        position: fixed;
        background: #720e9e;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa {
        display: block;
        color:#fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul {
        padding: 30px;
    }
}

/* service */
.service{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 46px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 18px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-around;
}
.service-col {
    flex-basis: 44%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    font-size: 28px;
}
.service-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 700px) {
    .row{
        flex-direction: column;
    }
}

/* houses */
.houses {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.houses-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Changes cursor to pointer */
}

/* Ensure the anchor covers the full area */
.houses-col a {
    text-decoration: none; /* Remove underline from anchor */
    color: inherit; /* Inherit text color */
    display: block; /* Make the anchor cover the entire block */
}

.houses-col img {
    width: 100%;
    display: block;
}

.layer {
    background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}


.layer span {
    position: absolute;
    bottom: 0; /* Align text to the bottom of the container */
    left: 50%;
    transform: translateX(-50%); /* Center text horizontally */
    width: 100%;
    font-weight: 300;
    text-decoration: none;
    color: #fff;
    font-size: 4vw; /* Font size relative to the container */
    padding-bottom: 0; /* Start with no padding at the bottom */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, padding-bottom 0.5s ease-in-out;
    text-align: center;
    margin: 0;
    padding-bottom: 20px;
    background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

/* Show the text when hovering over the layer or houses-col */
.layer:hover, .layer.active {
    opacity: 1;
}

.layer:hover span, .layer.active span {
    opacity: 1;
    padding-bottom: 20px;
}

@media (max-width: 700px) {
    .layer span {
        font-size: 10vw; /* Increase the font size for smaller screens */
    }
}
 


/* feedback */
.feedback {
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}
.feedback-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.feedback-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.feedback-col p{
    padding: 0;
}
.feedback-col h3{
    margin-top: 15px;
    text-align: left;
}
.feedback-col .fa {
    color: #720e9e
}
.feedback-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
.largefeedback-col {
    flex-basis: 88%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
.largefeedback-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.largefeedback-col p{
    padding: 0;
}
.largefeedback-col h3{
    margin-top: 15px;
    text-align: left;
}
.largefeedback-col .fa {
    color: #720e9e
}
.largefeedback-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 700px){
    .feedback-col img {
        margin-left: 0px;
        margin-right: 15px;
    }
    .largefeedback-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}
.action {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/car-banner.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.action h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}

@media(max-width: 700px){
    .action h1{
        font-size: 24px;
    }
}
/* Footer */

.footer{
    width: 100%;
    text-align:center;
    padding: 30px 0;
    background: #ffe0ea
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 24px;
}
.footer p{
    text-align: center;
    font-size: 18px;
}
.icons .fa {
    color: #720e9e;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    font-size: 22px;
}
.policies {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
}
.policies a{
    color: #720e9e;
    font-size: 16px;
    flex: 1;
}


/* about us page*/

.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/car-banner.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.sub-header-p {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(villa-on-the-bay-low-res-pics/villa-on-the-bay-01.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.sub-header-p h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.sub-header-c {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(waterford-estate-low-res-pics/waterford-estate-02.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.sub-header-c h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.sub-header h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}
.about-col img{
    width: 100%;
}
.about-col h1{
    padding-top: 0;
}
.about-col p{
    padding: 15px 0 25px;
}

.red-btn {
    border: 1px solid #720e9e;
    background: transparent;
    color: #720e9e;
}

.red-btn:hover{
    color: #fff;
}

/*blog content*/

.blog-content{
    width:80%;
    margin: auto;
    padding: 60px 0;
}
.blog-left {
    flex-basis: 65%;
}
.blog-left img{
    width: 100%;
}
.blog-left h2{
    color: #222;
    font-weight: 600;
    margin: 30px 0;
}
.blog-left p{
    color: #999;
    padding: 0;
}

.blog-right{
    flex-basis: 32%;
}
.blog-right h3{
    background: #f44336;
    color: #fff;
    padding: 7px 0;
    font-size: 16px;
    margin-bottom: 20px;
}
.blog-right div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    padding: 8px;
    box-sizing: border-box;
}

.comment-box{
    border: 1px solid #ccc;
    margin: 50px 0;
    padding: 10px 20px;
}
.comment-box h3{
    text-align: left;
}
.comment-form input, .comment-form textarea{
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: #f0f0f0;
}

.comment-form button{
    margin: 10px 0;
}

@media(max-width:700px){
    .sub-header h1{
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

/*contact us page*/

.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}
.location iframe{
    width: 100%;
}
.contact-us{
    width: 80%;
    margin: auto;
}

.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
    margin-left: 12px;
}
.contact-col div{
    display:flex;
    align-items:center;
    margin-bottom: 40px;
}
.contact-col div .fa{
    font-size: 28px;
    color: #720e9e;
    margin: 10px;
    margin-right: 30px;
}
.contact-col div p{
    padding: 0;
}
.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}
.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/*individual house pages*/

.housesexpanded {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.housesexpanded-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    margin-right: 15px;
    font-size: 16px; /* Base font size for scaling */
}

.housesexpanded-col img {
    width: 100%;
    display: block;
}
.housesexpanded-col a {
    display: block;
    position: relative;
    cursor: pointer; /* Pointer cursor to indicate clickable */
}

.layerexpanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: 0.5s;
}

.layerexpanded:hover, .layerexpanded.active {
    background: rgba(114,14,158,0.7);
}

.layerexpanded span {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 2em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    text-align: center;
    text-decoration: underline;
    margin: 0;
}

.layerexpanded:hover span, .layerexpanded.active span {
    opacity: 1;
}

.rowexpanded {
    margin-top: 5%;
    display: flex;
    justify-content: space-around;
}

.rowexpandedver {
    margin-top: 5%;
    display: flex;
    justify-content: space-around;
}

.mooresub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/moore-mansion.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}
.mooresub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.villasub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/villa-on-the-bay.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}
.villasub-header h1 {
   position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.oaksub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/bayoaks-renovation.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.oaksub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.vorsub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/ivory-manor.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.vorsub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.lightsub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/modern-lighthouse.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.lightsub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.creeksub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/creekside-haven.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.creeksub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}


.watersub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/waterford-estate.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.watersub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}
.clearsub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/clear-creek-enclave.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.clearsub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}

.vistasub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(30,15,35,0.7),rgba(30,15,35,0.7)),url(banners/bay-vista.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    position: relative;
}

.vistasub-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    margin: 0;
}
@media(max-width:700px) {
    .mooresub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .villasub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .oaksub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .vorsub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .lightsub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .creeksub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .watersub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .clearsub-header h1 {
        font-size: 48px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

@media(max-width: 700px) {
    .rowexpanded {
        flex-direction: column;
    }
}

.terms-and-conditions{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.privacy-policy{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.image-slider {
    width: 100%; /* Keep the width at 85% */
    max-width: 70em; /* Max width remains at 70em */
    height: 100%;
    min-height: 30em; /* Reduced min-height for smaller screens */
    max-height: 75vh; /* Lowered max-height to 75vh to fit within the viewport */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffeaf1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1000;
    overflow: hidden;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 1em;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.image-slider.show {
    opacity: 1;
    visibility: visible;
}

.close-slider {
    background: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 4em;
    height: 4em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.close-slider:hover {
    background: #720e9e;
    color: #fff;
}

.caption {
    background: linear-gradient(rgba(0,0,0,0),#000);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4em 1em 2em 1em;
    text-align: center;
}

.caption h1 {
    margin: 0;
    color: #fff;
}
.caption p {
    color:#8a8a8a;
}

.arrow-left, .arrow-right {
    background: #fff;
    position: absolute;
    top: 50%;
    width: 4em;
    height: 4em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    transform: translateY(-50%);
}

.arrow-left {
    left: 1em; /* Keep the arrow inside the left boundary */
}

.arrow-right {
    right: 1em; /* Keep the arrow inside the right boundary */
}

.arrow-left:hover, .arrow-right:hover {
    background: #720e9e;
    color: #fff;
}

.slider-nav {
    display: flex;
    gap: 0.5em;
}

.image-fade {
    animation: imgFade 0.5s ease-in-out;
}

@keyframes imgFade {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darken the background */
    z-index: 999; /* Below the slider but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
.overlay.show {
    opacity: 1;
    visibility: visible;
}

.slide-1,.slide-2,.slide-3,.slide-4 {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-1 {
    animation: fade1 10s infinite;
}
.slide-2 {
    animation: fade2 10s infinite;
}
.slide-3 {
    animation: fade3 10s infinite;
}
.slide-4 {
    animation: fade4 10s infinite;
}

.slide-1h,.slide-2h,.slide-3h,.slide-4h {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
}
.slide-1h {
    animation: fade1 15s infinite;
}
.slide-2h {
    animation: fade2 15s infinite;
}
.slide-3h {
    animation: fade3 15s infinite;
}
.slide-4h {
    animation: fade4 15s infinite;
}
@keyframes fade1 {
    0%{opacity: 1;}
    25%{opacity: 0;}
    50%{opacity: 0;}
    75%{opacity: 0;}
    100%{opacity: 1;}
}
@keyframes fade2 {
    0%{opacity: 0;}
    25%{opacity: 1;}
    50%{opacity: 0;}
    75%{opacity: 0;}
    100%{opacity: 0;}
}
@keyframes fade3 {
    0%{opacity: 0;}
    25%{opacity: 0;}
    50%{opacity: 1;}
    75%{opacity: 0;}
    100%{opacity: 0;}
}
@keyframes fade4 {
    0%{opacity: 0;}
    25%{opacity: 0;}
    50%{opacity: 0;}
    75%{opacity: 1;}
    100%{opacity: 0;}
}

.image-slider-ex {
    width: 90%; /* Make it responsive */
    max-width: 70em; /* Limit the maximum width */
    padding: 1em; /* Maintain spacing */ 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffeaf1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1000;
    overflow: hidden;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 1em;
    box-sizing: border-box;

    opacity: 0; /* Initially transparent */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s; /* Visibility changes after opacity */
}


.swiper-wrapper {
    display: flex;
    align-items: center; /* Center items vertically */
}

.image-slider-ex.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0s; /* No delay when fading in */
}

.hidden {
    display: none;
}

.swiper-slide {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    height: 100%; /* Ensure it spans the full height of the container */
}

.swiper-slide img {
    display: block; /* Ensures proper block rendering */
    margin: auto; /* Centers horizontally and vertically */
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain; /* Maintain aspect ratio while fitting bounds */
    cursor: zoom-in; /* Change cursor to indicate zoom-in functionality */
    transition: transform 0.3s ease; /* Smooth transition for zooming */
    will-change: transform; /* Optimize for animation performance */
}
.swiper-slide img.zoomed {
    cursor: zoom-out; /* Change cursor to grab for panning */
    transform-origin: center; /* Set zoom origin to the image center */
    transform: scale(2); /* Default zoom scale (adjust as needed) */
}

.swiper-slide img.zoomed:active {
    cursor: zoom-out; /* Change cursor while dragging */
}

.swiper .swiper-button-prev, .swiper .swiper-button-next {
    color: #720e9e;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.swiper .swiper-button-prev:hover, .swiper .swiper-button-next:hover {
    color: #ffffff; /* Change to white on hover */
}

.swiper .swiper-pagination-bullet-active {
    background: #720e9e;
}

.slider-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem; /* Adjust font size to balance alignment */
    color: #720e9e;
    cursor: pointer;
    z-index: 1100; /* Above the slider */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; /* Ensures the X is vertically centered */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
}

.slider-close-button:hover {
    background-color: #720e9e; /* Change background to purple on hover */
    color: #ffffff; /* Change text color to white */
}

.error-message {
    display: none;
    color: red;
    font-size: 0.9em;
    margin-bottom: 5px; /* Add space between the message and the input */
}

