/**
 * Photo Carousel Component Styles
 * Styles for the Swiper.js-based photo carousel
 */

/* CSS Variables */
:root {
    --photo-carousel-arrow-color: #8F9496;
    --photo-carousel-icon-size: 32px;
    --photo-carousel-slide-width: 360px;
    --photo-carousel-slide-height: 240px;
    --photo-carousel-gap: 12px;
    --photo-carousel-border-radius: 4px;
    --photo-carousel-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
    --photo-carousel-button-hover: rgba(25, 49, 84, 0.1);
    --photo-carousel-pagination-color: rgba(25, 49, 84, 0.3);
    --photo-carousel-pagination-active: #193154;
}

/* Main Wrapper */
.photo-carousel-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1168px;
    padding: 0px;
    border-radius: var(--photo-carousel-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Swiper Container */
.photo-carousel-swiper {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    flex: 1;
}

/* Swiper Wrapper */
.photo-carousel-wrapper-inner {
    display: flex;
    width: 100%;
}

/* Individual Slides */
.photo-carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: auto;
}

/* Image Container */
.photo-carousel-image-container {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    border-radius: var(--photo-carousel-border-radius);
    box-shadow: var(--photo-carousel-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
}

/* Images */
.photo-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--photo-carousel-border-radius);
}

/* Navigation Buttons */
.photo-carousel-button {
    position: relative;
    background-color: transparent;
    border: none;
    padding: 0px;
    cursor: pointer;
    font-size: var(--photo-carousel-icon-size);
    color: var(--photo-carousel-arrow-color);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
}
.photo-carousel-button i {
    font-weight: 300;
    width: 20px;
}

.photo-carousel-button-prev {
    order: -1;
}

.photo-carousel-button-next {
    order: 1;
}

/* Pagination Dots */
.photo-carousel-pagination {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    justify-content: center;
    width: auto;
}

.photo-carousel-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--photo-carousel-pagination-color);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-carousel-pagination .swiper-pagination-bullet-active {
    background-color: var(--photo-carousel-pagination-active);
    width: 24px;
    border-radius: 4px;
}

/* Swiper Override Styles */
.photo-carousel-swiper .swiper-initialized {
    display: flex;
}

.photo-carousel-swiper .swiper-horizontal {
    touch-action: pan-y;
}

/* Loading State */
.photo-carousel-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.photo-carousel-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid rgba(25, 49, 84, 0.2);
    border-top-color: var(--photo-carousel-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .photo-carousel-wrpr {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .photo-carousel-wrapper {
        padding: 0px 25px;
    }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
    .photo-carousel-wrpr {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .photo-carousel-wrapper {
        padding: 0px 10px;
    }
    .photo-carousel-swiper {
        flex: 1;
        width: 100%;
        overflow: visible;
    }
    .photo-carousel-button {
        display: none;
    }
    .photo-carousel-pagination {
        position: relative;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 8px 0 0 0;
    }
    .swiper-wrapper {
        width: 100%;
    }
}
