/* Box sizing reset */
* {
    box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Slide images container */
.mySlides {
    display: none;
    width: 100%;
    height: 100%;
}

/* Slide image */
.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation arrows */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Right arrow positioning */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Arrow hover state */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text overlay */
.caption-text {
    color: #8b52ff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    font-size: 1.5rem;
    border-radius: 8px;
    display: inline-block;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Slide number indicator */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* Carousel dots */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

/* Active or hovered dot state */
.active,
.dot:hover {
    background-color: #717171;
}

/* Fade animation class */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

/* Keyframe for fade effect */
@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 90px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content box */
.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    max-width: 800px;
    gap: 20px;
    align-items: center;
}

/* Modal text section */
.modal-text {
    flex: 1;
}

/* Modal image styling */
.modal-content img {
    width: 300px;
    height: auto;
    border-radius: 12px;
}

/* Modal close button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: black;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
