/* ==========================================================================
   Hero Slider — Full Width, Modern Clean Style
   ========================================================================== */

.ib-hero-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.ib-hero-swiper {
    position: relative;
    width: 100%;
    height: auto;
}

/* ---------- Slides ---------- */

.ib-hero-slide-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ib-hero-slide-inner img {
    width: 100%;
    /*height: calc(100vh - 136px);*/
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 6;
}

/* ---------- Navigation Arrows — Pill Style ---------- */

.ib-hero-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0px 40px;
}

.ib-hero-btn-prev,
.ib-hero-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ib-hero-btn-prev:hover,
.ib-hero-btn-next:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ib-hero-btn-prev:active,
.ib-hero-btn-next:active {
    transform: scale(0.95);
}

.ib-hero-btn-prev svg,
.ib-hero-btn-next svg {
    pointer-events: none;
}

/* ---------- Pagination Dots ---------- */

.ib-hero-pagination.swiper-pagination {
    bottom: 40px !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center;
    display: flex;
    gap: 6px;
    align-items: center;
}

.ib-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.ib-hero-pagination .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 5px;
    background: #ffffff;
}

/* ---------- Lightbox Trigger ---------- */

.ib-hero-lightbox-trigger {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.ib-hero-lightbox-trigger img {
    transition: transform 0.4s ease;
}

.ib-hero-lightbox-trigger:hover img {
    transform: scale(1.02);
}

/* ---------- Lightbox Overlay ---------- */

.ib-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ib-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ib-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
    padding: 20px;
}

.ib-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ib-lightbox-overlay.active .ib-lightbox-img {
    transform: scale(1);
}

/* Lightbox Toolbar */
.ib-lightbox-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Lightbox Close & Zoom Buttons */
.ib-lightbox-close,
.ib-lightbox-zoom {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ib-lightbox-close:hover,
.ib-lightbox-zoom:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ib-lightbox-zoom.active {
    background: rgba(255, 255, 255, 0.35);
}

/* Zoomed State */
.ib-lightbox-overlay.zoomed .ib-lightbox-content {
    overflow: auto;
    cursor: grab;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
}

.ib-lightbox-overlay.zoomed .ib-lightbox-content:active {
    cursor: grabbing;
}

.ib-lightbox-overlay.zoomed .ib-lightbox-img {
    max-width: none;
    max-height: none;
    transform: scale(1.8);
    transform-origin: center center;
}

/* Lightbox Prev/Next Buttons */
.ib-lightbox-prev,
.ib-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ib-lightbox-prev {
    left: 20px;
}

.ib-lightbox-next {
    right: 20px;
}

.ib-lightbox-prev:hover,
.ib-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Lightbox Counter */
.ib-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .ib-hero-slide-inner img {
        aspect-ratio: 16 / 6;
    }

    .ib-hero-pagination.swiper-pagination {
        bottom: 45px !important;
        left: 40px !important;
    }

    .ib-hero-btn-prev,
    .ib-hero-btn-next {
        width: 38px;
        height: 38px;
    }

    .ib-hero-btn-prev svg,
    .ib-hero-btn-next svg {
        width: 16px;
        height: 16px;
    }

    .ib-hero-nav {
        padding: 0px 30px;
    }
}

@media (max-width: 575px) {
    .ib-hero-pagination.swiper-pagination {
        bottom: 15px !important;
        left: 20px !important;
        gap: 4px;
    }

    .ib-hero-btn-prev,
    .ib-hero-btn-next {
        width: 34px;
        height: 34px;
    }

    .ib-hero-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .ib-hero-pagination .swiper-pagination-bullet-active {
        width: 24px;
    }

    .ib-hero-nav {
        padding: 0px 20px;
    }

    /* Lightbox responsive */
    .ib-lightbox-prev,
    .ib-lightbox-next {
        width: 38px;
        height: 38px;
    }

    .ib-lightbox-prev {
        left: 10px;
    }

    .ib-lightbox-next {
        right: 10px;
    }

    .ib-lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .ib-lightbox-content {
        padding: 10px;
    }

    .ib-lightbox-counter {
        bottom: 16px;
        font-size: 12px;
    }
}