/* FozDigital Blocks - 3D Coverflow Works Slider & Lightbox */
.foz-works-slider-container {
    position: relative;
    width: 100%;
    padding: 10px 0 25px;
    box-sizing: border-box;
    overflow: hidden;
}

.foz-works-slider-container .swiper {
    width: 100%;
    padding-top: 25px;
    padding-bottom: 50px;
    overflow: visible;
}

.foz-works-slider-container .swiper-slide {
    width: 320px;
    height: 380px;
    box-sizing: border-box;
    display: flex;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.foz-slider-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0d2847;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.foz-slider-item:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.foz-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.foz-slider-item:hover img {
    transform: scale(1.05);
}

.foz-slider-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    pointer-events: none;
    border-radius: 12px;
}

.foz-slider-item:hover .foz-slider-item-overlay {
    opacity: 1;
}

.foz-slider-zoom-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.foz-slider-zoom-icon svg {
    width: 18px;
    height: 18px;
    fill: #111;
}

/* Swiper 3D Slide Shadows styling to match card radius */
.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
    border-radius: 12px !important;
}

/* Side Navigation Arrows (overlayed on left & right sides) */
.foz-slider-nav-btn {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: #111;
}

.foz-slider-nav-btn:hover {
    background: #ffffff;
    color: #000;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.foz-slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.foz-slider-nav-btn.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.foz-slider-prev {
    left: 30px;
}

.foz-slider-next {
    right: 30px;
}

.foz-slider-nav-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Pagination Dots */
.foz-slider-pagination {
    position: absolute;
    bottom: 10px !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.foz-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ffffff;
    opacity: 0.45;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.foz-slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    background: #ffffff;
}

/* Lightbox Modal */
html.foz-lightbox-open, body.foz-lightbox-open {
    overflow: hidden !important;
}

.foz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.foz-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.foz-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.foz-lightbox-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    user-select: none;
}

.foz-lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
}

.foz-lightbox-counter {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 14px;
    letter-spacing: 0.5px;
}

.foz-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.foz-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.foz-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

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

.foz-lightbox-prev {
    left: 24px;
}

.foz-lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .foz-works-slider-container .swiper-slide {
        width: 250px;
        height: 300px;
    }
    .foz-slider-nav-btn {
        width: 38px;
        height: 38px;
    }
    .foz-slider-prev {
        left: 10px;
    }
    .foz-slider-next {
        right: 10px;
    }
    .foz-lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .foz-lightbox-prev {
        left: 10px;
    }
    .foz-lightbox-next {
        right: 10px;
    }
    .foz-lightbox-close {
        top: 14px;
        right: 14px;
    }
}
