.my-image-gallery {
    position: relative;
    width: 100%; /* Occupy the full available width */
    height: 0; /* Set initial height to zero */
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height is 56.25% of the width) */
    margin: 0 auto;
    overflow: hidden;
}

.my-image-gallery-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.my-image-gallery-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

.my-image-gallery-image.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.my-image-gallery-image img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain; /* This will make sure the image fits within the container without distortion */
}

.gallery-prev-btn, .gallery-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 5px;
    
    /* Hide the text and show the symbol */
    font-size: 0;
    text-indent: -9999px;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

/* Use a pseudo-element to insert the symbol for the previous button */
.gallery-prev-btn::before {
    content: '‹';
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

/* Use a pseudo-element to insert the symbol for the next button */
.gallery-next-btn::before {
    content: '›';
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

.gallery-prev-btn {
    left: 10px;
}

.gallery-next-btn {
    right: 10px;
}
