.slideshow-container {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.slide {
    display: none;
    animation-duration: 1s;
    animation-name: fade;
}
.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer; 
    box-shadow: 0
4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.slide img:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.3);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 25px !important; 
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    cursor: pointer;
    background-color: rgba(0,0,0,0.8);
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto; 
    padding: 35px;
    display: none;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    display: block;
    margin: auto; 
    width: auto;
    height: auto;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.7); 
    border-radius: 10px;
}


@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}


.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal .prev-modal, .modal .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.modal .next-modal {
    right: 12px;
    border-radius: 3px 0 0 3px;
}

.modal .prev-modal {
    left: 12px;
    border-radius: 3px 0 0 3px;
}

.modal .prev-modal:hover, .modal .next-modal:hover {
    background-color: rgba(0,0,0,0.8);
}

@media screen and (max-width: 800px) {
    .slideshow-container {
        width: 100%; 
    }
	
    .modal-content {
        position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
    }
	
    .prev, .next {
        font-size: 12px;
        padding: 10px;
    }
}

