/* Custom CSS for SK Realtors Projects UI/UX Enhancements */

/* ==========================================================
   1. Projects Listing Page: Perfect 1:1 Square Thumbnail (object-fit: cover)
   ========================================================== */

.projects-wrapper .row {
    display: flex;
    flex-wrap: wrap;
}

.projects-wrapper .col-lg-6 {
    display: flex;
    margin-bottom: 40px;
}

.renvia-project-item.style-four {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0 !important;
}

.renvia-project-item.style-four:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 16:10 Landscape Premium Card Thumbnail Container */
.renvia-project-item.style-four .project-thumbnail {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 13 !important;
    background-color: #f4f6f8;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.renvia-project-item.style-four .project-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform 0.4s ease;
}

.renvia-project-item.style-four:hover .project-thumbnail img {
    transform: scale(1.03);
}

/* Card Content Flex Alignment */
.renvia-project-item.style-four .project-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.renvia-project-item.style-four .project-meta {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.renvia-project-item.style-four .title {
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.renvia-project-item.style-four p {
    min-height: 68px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

.renvia-project-item.style-four .read-more {
    margin-top: auto;
}


/* ==========================================================
   2. Project Details Page: Hero Thumbnail (object-fit: cover)
   ========================================================== */

.project-details-wrapper .project-main .project-hero-thumbnail {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f4f6f8;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-details-wrapper .project-main .project-hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .project-details-wrapper .project-main .project-hero-thumbnail {
        height: 500px;
    }
}

@media (max-width: 575px) {
    .project-details-wrapper .project-main .project-hero-thumbnail {
        height: 350px;
    }
}


/* ==========================================================
   3. Project Details Page: Photos (16:13) & Plans (16:15) Media Items
   ========================================================== */

.media-slider-container {
    position: relative;
    margin: 15px -10px 25px -10px;
}

.media-slide-wrap {
    padding: 0 10px;
}

/* Photos Item Aspect Ratio 16:13 */
.media-photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 13;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f4f6f8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* Plans Item Aspect Ratio 16:15 */
.media-plan-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 15;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f4f6f8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.media-photo-item img,
.media-plan-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.media-photo-item:hover img,
.media-plan-item:hover img {
    transform: scale(1.04);
}

/* Single Centered Item Box */
.media-single-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 25px;
}

.media-single-centered {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Dual Grid Box */
.media-dual-grid {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* Lightbox Zoom Overlay */
.media-photo-item .zoom-overlay,
.media-plan-item .zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 71, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.media-photo-item:hover .zoom-overlay,
.media-plan-item:hover .zoom-overlay {
    opacity: 1;
}

.media-photo-item .zoom-overlay i,
.media-plan-item .zoom-overlay i {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color, #d8b35a);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.media-photo-item:hover .zoom-overlay i,
.media-plan-item:hover .zoom-overlay i {
    transform: scale(1.08);
}

/* Slider Navigation Buttons */
.media-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--heading-color, #0f2747);
    border: 1.5px solid var(--heading-color, #0f2747);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-slider-nav-btn:hover {
    background-color: var(--heading-color, #0f2747);
    color: var(--primary-color, #d8b35a);
    border-color: var(--heading-color, #0f2747);
    transform: translateY(-50%) scale(1.08);
}

.media-slider-nav-btn i {
    font-size: 16px;
}

.gallery-slider-prev,
.plans-slider-prev {
    left: -20px;
}

.gallery-slider-next,
.plans-slider-next {
    right: -20px;
}

@media (max-width: 575px) {
    .gallery-slider-prev,
    .plans-slider-prev {
        left: 5px;
    }
    .gallery-slider-next,
    .plans-slider-next {
        right: 5px;
    }
    .media-slider-nav-btn {
        width: 40px;
        height: 40px;
    }
}


/* ==========================================================
   4. Property Video Fixed Container & Embed Scaling
   ========================================================== */

.renvia-image.video-image.video-fixed-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #0e1c30;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.renvia-image.video-image.video-fixed-container img,
.renvia-image.video-image.video-fixed-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

@media (max-width: 991px) {
    .renvia-image.video-image.video-fixed-container {
        height: 360px;
    }
}

@media (max-width: 575px) {
    .renvia-image.video-image.video-fixed-container {
        height: 250px;
    }
}


/* ==========================================================
   5. Modern Circular Navigation Arrows
   ========================================================== */

.media-swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1a2530;
    border: 2px solid #c5a880;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.media-swiper-nav-btn:hover {
    background-color: #c5a880;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.media-swiper-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-swiper-prev,
.layout-swiper-prev {
    left: -15px;
}

.gallery-swiper-next,
.layout-swiper-next {
    right: -15px;
}

@media (max-width: 575px) {
    .gallery-swiper-prev,
    .layout-swiper-prev {
        left: 5px;
    }
    .gallery-swiper-next,
    .layout-swiper-next {
        right: 5px;
    }
}
