.custom-image-slider {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider-slides {
    position: relative;
    height: 400px;
    width: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.slider-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 3;
}

.slider-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 4;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 30px;
    background: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0;
    pointer-events: auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev::before {
    content: '‹';
}

.slider-next::before {
    content: '›';
}

.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-indicators span.active {
    background-color: white;
}

@media (max-width: 768px) {
    .slider-slides {
        height: 300px;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (min-resolution: 2dppx) {
    .slider-slide img {
        image-rendering: -webkit-optimize-contrast;
    }
}

@media (prefers-color-scheme: dark) {
    .slider-prev,
    .slider-next {
        color: white;
    }
}

.slider-loading {
    position: relative;
    min-height: 300px;
    background: #f0f0f0;
}

.slider-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .slider-slide img {
        image-rendering: -webkit-optimize-contrast;
    }
}

@media (prefers-color-scheme: dark) {
    .slider-loading {
        background: #1a1a1a;
    }
}

.custom-image-slider.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
}

.custom-image-slider.fullscreen .slider-container {
    padding-top: 0;
    height: 100%;
}

.custom-image-slider.fullscreen .slide-image {
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide.active {
    animation: fadeIn 0.5s ease-in-out;
} 