.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.close-gallery {
    position: absolute;
    top: 30px; right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition);
}
.close-gallery:hover { color: var(--primary); transform: rotate(90deg); }

.slider-container {
    width: 80%;
    height: 80%;
    overflow: hidden;
    position: relative;
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
    -webkit-user-drag: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 2010;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-btn:hover { background: var(--primary); }
.nav-btn.prev { left: 40px; }
.nav-btn.next { right: 40px; }

.gallery-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

/* ==========================================
   Premium Swiper & Gallery Layout Upgrade
   ========================================== */
.room-gallery-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
    height: 600px;
    margin-bottom: 4rem;
}

.room-main-slider-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.room-main-swiper {
    width: 100%;
    height: 100%;
    background: #000;
}

.room-main-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.room-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Stunning Slow Ken Burns Zoom Effect */
@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(0, 0); }
}

.room-main-swiper .swiper-slide-active img {
    animation: kenburns 6s ease-out forwards;
}

/* Glassmorphism Pagination Box */
.swiper-pagination-custom {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 4px;
}

.swiper-pagination-custom .current {
    color: var(--primary);
    font-weight: 700;
}

.swiper-pagination-custom .separator {
    opacity: 0.5;
    margin: 0 4px;
}

.swiper-pagination-custom .total {
    opacity: 0.8;
}

/* Modern Semi-Transparent Hover Navigation */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.room-main-slider-wrapper:hover .swiper-button-prev-custom,
.room-main-slider-wrapper:hover .swiper-button-next-custom {
    opacity: 1;
    visibility: visible;
}

.swiper-button-prev-custom { left: 25px; }
.swiper-button-next-custom { right: 25px; }

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

/* Right-side Grid Layout & Cards */
.room-side-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.room-side-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    height: 100%;
    background: #000;
}

.room-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.room-side-card:hover img {
    transform: scale(1.06);
}

/* Micro-Interaction Overlay */
.room-side-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.room-side-card:hover .room-side-card-overlay {
    opacity: 1;
}

.room-side-card-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.room-side-card:hover .room-side-card-title {
    transform: translateY(0);
}

/* Elegant Glassmorphism View More Overlay */
.room-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 14px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.room-side-card:hover .room-more-overlay {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.room-more-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.room-side-card:hover .room-more-icon {
    transform: scale(1.1) rotate(90deg);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.room-more-text {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.room-more-subtext {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Galleries styling */
@media (max-width: 991px) {
    .room-gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
        aspect-ratio: 16/10;
        gap: 0;
    }
    .room-side-grid {
        display: none; /* In Tablet & Mobile, show just the slideshow */
    }
    .room-main-slider-wrapper {
        border-radius: 16px;
    }
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        opacity: 1 !important;
        visibility: visible !important;
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    .swiper-button-prev-custom { left: 15px; }
    .swiper-button-next-custom { right: 15px; }
    .swiper-pagination-custom {
        bottom: 15px;
        right: 15px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .room-gallery-grid {
        aspect-ratio: 4/3;
    }
}
