/**
 * DryHire Product Image Carousel Styles
 */

/* Container */
.dryhire-carousel {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 12px;
    min-height: 592px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dryhire-carousel--no-image {
    justify-content: center;
    align-items: center;
    color: #99a1af;
}

/* Viewport */
.dryhire-carousel__viewport {
    position: relative;
    flex: 1;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slides container */
.dryhire-carousel__slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual slide */
.dryhire-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dryhire-carousel__slide--active {
    opacity: 1;
    visibility: visible;
}

.dryhire-carousel__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Ensure images can grow */
.dryhire-carousel .dryhire-carousel__slide img {
    max-width: 100% !important;
    max-height: 460px !important;
}

/* Navigation Arrows */
.dryhire-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(63, 63, 70, 0.6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99a1af;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;
    padding: 0;
}

.dryhire-carousel__arrow:hover {
    background: rgba(63, 63, 70, 0.9);
    color: #ffffff;
}

.dryhire-carousel__arrow:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.dryhire-carousel__arrow--prev {
    left: 12px;
}

.dryhire-carousel__arrow--next {
    right: 12px;
}

.dryhire-carousel__arrow svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Dot Indicators */
.dryhire-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
}

.dryhire-carousel__dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #3f3f46;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dryhire-carousel__dot:hover {
    background: #52525b;
    transform: scale(1.2);
}

.dryhire-carousel__dot:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.dryhire-carousel__dot--active {
    background: #4f46e5;
}

.dryhire-carousel__dot--active:hover {
    background: #4f46e5;
}

/* Focus styles for carousel */
.dryhire-carousel:focus {
    outline: none;
}

/* Hide nav for single image */
.dryhire-carousel:not(.dryhire-carousel--has-nav) .dryhire-carousel__arrow,
.dryhire-carousel:not(.dryhire-carousel--has-nav) .dryhire-carousel__dots {
    display: none;
}

/* Mobile styles */
@media (max-width: 594px) {
    .dryhire-carousel {
        min-height: 264px;
    }

    .dryhire-carousel__viewport {
        min-height: 220px;
    }

    .dryhire-carousel .dryhire-carousel__slide img {
        max-height: 200px !important;
    }

    .dryhire-carousel__arrow {
        width: 32px;
        height: 32px;
    }

    .dryhire-carousel__arrow svg {
        width: 18px;
        height: 18px;
    }

    .dryhire-carousel__arrow--prev {
        left: 8px;
    }

    .dryhire-carousel__arrow--next {
        right: 8px;
    }

    .dryhire-carousel__dot {
        width: 6px;
        height: 6px;
    }

    .dryhire-carousel__dots {
        gap: 6px;
        padding: 8px 0 4px;
    }
}
