.gallery_section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.gallery_heading_content {
    text-align: center;
    margin-bottom: 40px;
}
.gallery_heading_content h5 {
    color: var(--e-global-color-secondary);
    text-transform: uppercase;

    font-size: 18px;
    margin-bottom: 10px;
}
.gallery_heading_content h2 {
    color: var(--e-global-color-primary);
    font-size: 48px;
    line-height: 55px;
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 20px;
}
.gallery_heading_content p {
    color: var(--e-global-color-text);

    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.swiper-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.swiper-slide {
    width: auto;
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* This ensures vertical centering */
}
.swiper-slide .image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-slide .image-wrapper img {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
}
.swiper-button-next, .swiper-button-prev {
    top: 50%;
    transform: translateY(-50%);
}
.swiper-button-prev {
    left: 10px;
}
.swiper-button-next {
    right: 10px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;

    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}