/* Grid Image Styling */
.media-image-section {
    position: relative;
    overflow: hidden;
}
.media-image-section img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
/* Modal Swiper Styling */
.swiper-photo {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    background: #000;
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps manuscript proportions correct */
}
/* Navigation Overlays */
.swiper-button-prev, .swiper-button-next {
    /* background: rgba(0,0,0,0.5); */
    background: rgb(204 204 204 / 50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgb(94 94 94 / 60%);
}
.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 18px;
}
/* Close Button Over Image */
.custom-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 5px 10px;
}