/* ===================================================
   Swiper Slider Custom Styles for Projector on Rent
   =================================================== */

.custom-swiper-container {
    position: relative;
    background: #ffffff;
    border: 3px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    overflow: hidden;
    width: 100%;
}

/* Main Top Slider */
.custom-swiper-container .main-swiper {
    width: 100%;
    aspect-ratio: 770 / 350;
    max-height: 380px;
    overflow: hidden;
    position: relative;
    background: #000000;
}

/* Prevent flash of unstyled slides before JS executes */
.custom-swiper-container .main-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.custom-swiper-container .main-swiper:not(.swiper-initialized) .swiper-slide {
    width: 100%;
    flex-shrink: 0;
}

.custom-swiper-container .main-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none !important;
}

.custom-swiper-container .main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.custom-swiper-container .main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnails Strip Wrap */
.custom-swiper-container .thumb-swiper-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-top: 2px solid #e8e8e8;
    padding: 8px 36px;
    min-height: 60px;
    user-select: none;
    box-sizing: border-box;
}

/* Thumbnails Swiper */
.custom-swiper-container .thumb-swiper {
    width: 100%;
    overflow: hidden;
}

.custom-swiper-container .thumb-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 6px;
    width: 100%;
}

.custom-swiper-container .thumb-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 1 1 0;
    width: 18%;
}

.custom-swiper-container .thumb-swiper .swiper-slide {
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 117 / 83;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.custom-swiper-container .thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-swiper-container .thumb-swiper .swiper-slide:hover {
    opacity: 0.9;
}

.custom-swiper-container .thumb-swiper .swiper-slide-thumb-active,
.custom-swiper-container .thumb-swiper:not(.swiper-initialized) .swiper-slide:first-child {
    opacity: 1 !important;
    border-color: #cf1f21 !important;
    box-shadow: 0 0 4px rgba(207, 31, 33, 0.4);
}

/* Custom Navigation Buttons (< and >) */
.custom-swiper-container .thumb-nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    height: 100%;
    margin: 0;
    background: #cf1f21;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.custom-swiper-container .thumb-nav-btn i {
    font-size: 16px;
    color: #ffffff;
    line-height: 1;
}

.custom-swiper-container .thumb-nav-btn:hover {
    background: #a81719;
}

.custom-swiper-container .thumb-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.custom-swiper-container .thumb-nav-btn::after {
    display: none !important;
}

.custom-swiper-container .thumb-nav-prev {
    left: 0;
}

.custom-swiper-container .thumb-nav-next {
    right: 0;
}

/* ===================================================
   Clients Logo Carousel Swiper Styles
   =================================================== */
.clients-swiper-wrap {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 15px 10px;
    margin-top: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.clients-swiper {
    width: 100%;
    overflow: hidden;
}

.clients-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 15px;
}

.clients-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    background: #ffffff;
    padding: 8px;
    box-sizing: border-box;
}

.clients-swiper .swiper-slide img {
    max-height: 75px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.clients-swiper .swiper-slide img:hover {
    filter: grayscale(0%);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .custom-swiper-container .thumb-swiper-wrapper {
        padding: 6px 30px;
        min-height: 50px;
    }
    
    .custom-swiper-container .thumb-nav-btn {
        width: 28px;
    }
    
    .custom-swiper-container .thumb-nav-btn i {
        font-size: 14px;
    }

    .clients-swiper .swiper-slide {
        height: 70px;
    }

    .clients-swiper .swiper-slide img {
        max-height: 55px;
    }
}