.slick-lightbox{z-index:10000;}
.content-gallery {position:relative; display:block; width:100%; margin:0px auto 50px;}
.content-title {display:block; margin-bottom:40px; font-size:25px; line-height:27px;}
.slick-slider {margin:0 -8px;}
.slick-slide {text-align:center; margin:8px;}
.slick-track {display:flex; align-items:center;}
#amenities .slick-prev, #amenities .slick-next {z-index:999;}
#amenities .slick-next {right:0;}
#amenities .slick-prev {left:0;}
.amenities-arrow {position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; font-size:14px; line-height:45px; text-align:center; background-color:#E6E6E6; z-index:10; border-radius:50%; cursor:pointer; box-shadow:1px 2px 3px #333; transition:background 0.3s ease;}
.amenities-arrow.mod-prev {left:0;}
.amenities-arrow.mod-next {right:0;}
.gallery {position:relative; display:block; width:100%; height:auto; margin:auto; border-radius:4px;}
.gallery .slick-list {overflow:hidden;}
.gallery .slick-slide {outline:none !important;}
.gallery-arrow {position:absolute; bottom:-70px; transform:translateY(-50%); width:40px; height:40px; font-size:14px; line-height:45px; text-align:center; background-color:#E6E6E6; z-index:10; border-radius:50%; cursor:pointer; box-shadow:1px 2px 3px #333; transition:background 0.3s ease;}
.gallery-arrow:hover {background:#D0DFE6;}
.gallery-arrow.mod-prev {left:45%;}
.gallery-arrow.mod-next {right:45%;}
.gallery-item {position:relative; float:left; vertical-align:middle; text-align:center;}
.gallery-img-holder {display:inline-block; width:auto; height:auto; max-width:500px; max-height:500px; position:relative;}
.gallery-img-holder:before {content:'Artistic Impression'; position:absolute; bottom:5px; right:0; background-color:rgb(51 51 51 / 68%); color:#fff; font-size:11px; padding:2px 5px; border-radius:10px 0 0 10px;}
.gallery-img {width:100%; height:auto;}
#slick1 .slick-slide img {width:100%; height:auto;}
.slick-lightbox .slick-arrow {z-index:10;}
.slick-lightbox-close {width:auto; height:auto;}
.slick-lightbox .slick-prev {left:5%;}
.slick-lightbox .slick-next {right:5%;}
.slick-prev:before, .slick-next:before {font-size:25px;}
.slick-lightbox-close:before {font-size:50px;}

@media only screen and (max-width: 1025px) {
.gallery-arrow.mod-prev {left:-3%;}
.gallery-arrow.mod-next {right:-3%;}
.gallery-arrow {bottom:50%; transform:translateY(50%);}
}

@media only screen and (max-width: 600px) {
.gallery, .gallery-img {height:auto}
/*.amenities-arrow{line-height: 40px;}*/
/*.gallery-arrow{line-height: 40px;}*/
}

/* ============ Luxury Project Gallery (bento grid) ============ */
.luxury-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 210px);
    grid-template-areas:
        "feat feat b c"
        "feat feat d e"
        "f g h h";
    gap: 14px;
    max-width: 78rem;
    margin: 0 auto;
}
.lux-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #e9e4d8;
}
.lux-feature { grid-area: feat; }
.luxury-gallery .lux-item:nth-child(2) { grid-area: b; }
.luxury-gallery .lux-item:nth-child(3) { grid-area: c; }
.luxury-gallery .lux-item:nth-child(4) { grid-area: d; }
.luxury-gallery .lux-item:nth-child(5) { grid-area: e; }
.luxury-gallery .lux-item:nth-child(6) { grid-area: f; }
.luxury-gallery .lux-item:nth-child(7) { grid-area: g; }
.lux-wide { grid-area: h; }
.lux-item .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
}
.lux-item::after {
    content: 'Artistic Impression';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(20,20,20,0.72);
    color: #f1e4c2;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
}
.lux-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}
.lux-item:hover::before { opacity: 1; }
.lux-item:hover .gallery-img { transform: scale(1.08); filter: brightness(0.9); }
.lux-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #106e74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.lux-item:hover .lux-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media only screen and (max-width: 990px) {
    .luxury-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 180px);
        grid-template-areas:
            "feat feat"
            "feat feat"
            "b c"
            "d e"
            "f g"
            "h h";
    }
}

@media only screen and (max-width: 575px) {
    .luxury-gallery {
        display: flex;
        grid-template-areas: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
    }
    .luxury-gallery::-webkit-scrollbar { height: 5px; }
    .luxury-gallery::-webkit-scrollbar-thumb { background: var(--Primary-color); border-radius: 5px; }
    .lux-item {
        flex: 0 0 82%;
        scroll-snap-align: center;
        height: 240px;
    }
    .lux-zoom { opacity: 1; transform: translate(-50%, -50%) scale(0.85); }
    .lux-item::before { opacity: 0.35; }
}

/* ============ Custom lightbox for luxury gallery ============ */
.lux-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.lux-lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lux-lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 86vh;
}
.lux-lightbox-inner img {
    max-width: 92vw;
    max-height: 86vh;
    display: block;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lux-lightbox-close, .lux-lightbox-prev, .lux-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lux-lightbox-close:hover, .lux-lightbox-prev:hover, .lux-lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lux-lightbox-close { top: -55px; right: 0; }
.lux-lightbox-prev { left: -55px; top: 50%; transform: translateY(-50%); }
.lux-lightbox-next { right: -55px; top: 50%; transform: translateY(-50%); }
.lux-lightbox-counter {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: #ddd;
    font-size: 12px;
    letter-spacing: 1px;
}
@media only screen and (max-width: 767px) {
    .lux-lightbox-prev { left: 6px; }
    .lux-lightbox-next { right: 6px; }
    .lux-lightbox-close { top: 6px; right: 6px; background: rgba(0,0,0,0.5); }
    .lux-lightbox-counter { bottom: -26px; }
}