.gallery {
    height: 100%;
    width: 100%;
    position: relative;
    margin: auto;
}

#body-content-container {
    flex-direction: row;
    background-color: var(--main-background);
}

.controls-right {
    right: 0;
}

.controls-left {
    left: 0;
}

.controls-right:active, .controls-left:active,
.controls-right:focus, .controls-left:focus {
    background: none;
    user-select: none;
}

.controls-left,
.controls-right {
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100px;
    /* cursor: pointer; */
    position: absolute;
    z-index: 10;
}

.controls-left button,
.controls-right button {
    background-color: transparent;
    border: 0;
    /* cursor: pointer; */
    font-size: 30px;
    padding: 0 12px;
    position: absolute;
    top: 50%;
    z-index: 3;
}

#gallery-controls-previous {
    position: absolute;
}

#gallery-controls-previous::before {
    border: solid var(--main-yellow);
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    padding: 10px;
    transform: rotate(135deg);
    width: 5px;
}

#gallery-controls-next {
    position: absolute;
}

#gallery-controls-next::before {
    border: solid var(--main-yellow);
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    padding: 10px;
    transform: rotate(-45deg);
    width: 5px;
}

* {
    box-sizing: border-box;
}

/* Hide the images by default */
.imgSlides {
    display: none;
    height: 100%;
    justify-content: center;
    opacity: 0;
    position: absolute;
    width: 100%;
}

/* Add a pointer when hovering over the thumbnail images */

/* Container for image text */
.gallery-container {
    overflow: hidden;
    position: relative;
}

.gallery-row {
    overflow: hidden;
}

.gallery-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Six columns side by side */
.column {
    float: left;
    width: 20%;
    /* cursor: pointer; */
}

/* Add a transparency effect for thumnbail images */
.demo {
    opacity: 0.4;
}

.active {
    opacity: 1;
}

@keyframes slideOutAnimationRightLeft {
    from {
        opacity: 1;
        transform: translateX(0%);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInAnimationRightLeft {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0%);
    }
}


@keyframes slideOutAnimationLeftRight {
    from {
        opacity: 1;
        transform: translateX(0%);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInAnimationLeftRight {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0%);
    }
}


.slide-in-rl {
    animation: slideInAnimationRightLeft 0.5s ease-in forwards;
}

.slide-out-rl {
    animation: slideOutAnimationRightLeft 0.5s ease-out forwards;
}

.slide-in-lr {
    animation: slideInAnimationLeftRight 0.5s ease-in forwards;
}

.slide-out-lr {
    animation: slideOutAnimationLeftRight 0.5s ease-out forwards;
}

.column:hover img {
    opacity: 1;
}

.slide-img {
    object-fit: cover;
}

.img-lg {
    position: relative;
    left: 0;
}

@media (orientation: landscape) {
    .gallery-row {
        display: none;
    }

    .gallery-container {
        height: 100%;
    }

    .controls-left, .controls-right {
        height: 100%;;
    }

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

@media (orientation: portrait) {
    .gallery-row {
        display: block;
        height: 15%;
        border-top: var(--main-yellow) solid 2px;
    }

    .gallery-container {
        height: 85%;
    }

    .controls-left, .controls-right {
        height: 85%;;
    }

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

    .column {
        height: 100%;
        overflow: hidden;
    }
}