/* Artifacts Gallery Slider - Custom Bootstrap-like Carousel */

.artifacts-gallery-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.artifacts-gallery-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.artifacts-gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.artifacts-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.artifacts-gallery-slide.active {
    display: flex;
}

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

.artifacts-gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
    color: white;
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    z-index: 5;
}

/* Previous/Next Buttons */
.artifacts-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    padding: 0;
}

.artifacts-gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.artifacts-gallery-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.artifacts-gallery-arrow.prev {
    left: 15px;
}

.artifacts-gallery-arrow.next {
    right: 15px;
}

/* Indicators/Dots */
.artifacts-gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
}

.artifacts-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.artifacts-gallery-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.artifacts-gallery-dot.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Counter */
.artifacts-gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    font-weight: 600;
}

/* Empty State */
.artifacts-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-color: #f5f5f5;
    color: #999;
    font-size: 16px;
    border-radius: 8px;
}

/* Animations */
@keyframes slideInFromRight {
    from {
        opacity: 1;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 1;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.artifacts-gallery-slide.active.next-slide {
    animation: slideInFromRight 0.6s ease-in-out;
}

.artifacts-gallery-slide.active.prev-slide {
    animation: slideInFromLeft 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .artifacts-gallery-slider-container {
        aspect-ratio: 16 / 12;
    }

    .artifacts-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .artifacts-gallery-arrow.prev {
        left: 10px;
    }

    .artifacts-gallery-arrow.next {
        right: 10px;
    }

    .artifacts-gallery-slide-caption {
        padding: 15px;
        font-size: 12px;
    }

    .artifacts-gallery-counter {
        font-size: 11px;
        padding: 6px 10px;
    }

    .artifacts-gallery-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .artifacts-gallery-slider-container {
        aspect-ratio: 4 / 5;
    }

    .artifacts-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .artifacts-gallery-arrow.prev {
        left: 8px;
    }

    .artifacts-gallery-arrow.next {
        right: 8px;
    }

    .artifacts-gallery-slide-caption {
        padding: 10px;
        font-size: 11px;
    }

    .artifacts-gallery-dot {
        width: 8px;
        height: 8px;
        gap: 6px;
    }

    .artifacts-gallery-counter {
        font-size: 10px;
        padding: 5px 8px;
    }
}
