.gallery.main-media {
    border: 1px solid hsl(var(--c-grey-300));
    border-top : none;
}

.gallery.aratio_16_9 img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery.aratio_4_3 img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery.aratio_1_1 img {
    aspect-ratio: 1;
    object-fit: cover;
}

.gallery-viewport{
    position: relative;
    overflow: hidden;
}

.gallery-images {
    position: absolute;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    left: 0;
}

.gallery-images img {
    width: 100%;
    height: auto;
}

.gallery-images.slide>figure {
    width: 50%;
}

.gallery-images.slide {
    width: 200%;
    overflow: hidden;
    transition: left 2s ease;
    left: -100%;
}

.gallery-images>figure.over {
    opacity: 0;
    position: absolute;
    transition: 1.5s ease;
    z-index: 100;
    top: 0;
}


.gallery-left svg,.gallery-right svg {
    width: clamp(15px, 1.11vw + 10px, 20px);
}
.gallery-left,.gallery-right{
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 4%;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-right{
    border-radius: 3px 0 0 3px;
    right: 0;
}

.gallery-left:hover,.gallery-right:hover {
    background-color: #b12217;
    color: white;
}

.gallery figcaption {
    margin: 15px 0 15px;
    height: 50px;
    overflow: hidden;
    max-height: 50px;
    font-size: 1rem;
}

.gallery.main-media figcaption {
    margin: 15px 30px;
}

.gallery .gallery-marker {
    position: absolute;
    right: 7px;
    font-size: 11px;
}

.gallery-thumbnails {
    display: flex;
    position: relative;
    cursor: pointer;
    border-top: 4px solid black;
    border-bottom: 4px solid black;
    overflow-x: scroll;
    height: 95px;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 5px;
  background-color: white;
}

/* Add a thumb */
.gallery-thumbnails::-webkit-scrollbar-thumb {
  background-color: #aaaaaa;
}

.gallery-thumbnails img { 
    width: 30%;
    max-width: 160px;
    height: auto;
    user-drag: none;
	-webkit-user-drag: none;
}

