.slideshow-block {
    max-width: 960px;
    margin: 40px auto;
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.slideshow-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
}

.glide {
    width: 100%;
    overflow: hidden;
}

.glide__track {
    overflow: hidden;
}

.glide__slides {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: auto; /* fallback */
    min-height: 300px; /* ensures track has vertical height */
}

.glide__slide {
    text-align: center;
    padding-bottom: 20px;
}

.glide__slide img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.caption {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: #555;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    line-height: 1.4em;
}

.glide__arrows {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
}

.glide__arrow {
    font-size: 16px;
    padding: 8px 16px;
    background-color: #008E85;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.glide__arrow:hover {
    background-color: #00695c;
}

/* Lightbox modal */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
