body {
    background-color: grey;
}

.carousel-container {
    background: var(--color-background);
    background: var(--color-background);

    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    min-height: 300px;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    flex-shrink: 0;
    background-color: transparent;
}

.swiper {
    display: flex;
    width: 100%;
    height: 100%;
    object-fit: cover;
    align-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 200px;
    min-height: 160px;
    max-height: 190px;
    object-fit: cover;
    object-position: top center;
    margin: auto;
}

/* TODO: estilizar */
.swiper-button-next, .swiper-button-prev {
    /* editir swiper-js carousel button to be #0D2E32 with 30% of tranparency and round button with < or > centralized */
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-with) !important;
    /* change background color to #122034*/
    background-color: rgba(18, 32, 52, 0.8) !important;

}

.swiper-button-prev:after, .swiper-button-next:after {
       font-size: 1.2rem !important;
}

.swiper-pagination-bullet-active {
    background: var(--color-other) !important;
}

/* MODAL */
.modal-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: transparent !important;
    border: transparent 0px solid !important;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-image-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
    color: #cccccc;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

.modal-image-close {
    top: 10px;
    right: 10px;
}

.modal-prev {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 100;
}

.modal-next {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 100;
}

@media (max-width: 768px) {
    .modal-image {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-image-close {
        top: 5px;
        right: 5px;
        padding: 8px;
        font-size: 20px;
    }
    
    .modal-prev,
    .modal-next {
        padding: 8px;
        font-size: 20px;
    }
    
    .modal-prev {
        left: 5px;
    }
    
    .modal-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .modal-image {
        padding: 5px;
    }
    
    .modal-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .modal-image-close {
        top: 2px;
        right: 2px;
        padding: 6px;
        font-size: 18px;
    }
    
    .modal-prev,
    .modal-next {
        padding: 6px;
        font-size: 18px;
    }
    
    .modal-prev {
        left: 2px;
    }
    
    .modal-next {
        right: 2px;
    }
}