body {
    width: 85%;
    margin: auto;
    margin-bottom: 10vh;
}

#background {
    width: 100vw;
    height: 45vh;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

img {
    max-height: 100vh;
}

#slideshow-wrapper {
    position: relative;
}

#slideshow-wrapper button>img {
    width: 50px !important;
}



.w3-button {
    position: absolute;
    border: 0;
    z-index: 100;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #ffffff00;
}

.w3-button:hover {
    cursor: grab;
}

.w3-display-left {
    left: 0;
    top: 50%;
    transform: translate(-50%,-50%) rotate(180deg);
}

.w3-display-right {
    right: 0;
    top: 50%;
    transform: translate(50%,-50%)
}

#title {
    text-align: center;
    color: var(--white);
    font-size: 16rem;
    font-family: myGothicBold;
    letter-spacing: 10px;
    margin-top: 15vh;
    margin-bottom: 25vh;
}

.img-container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
}

.img-container img {
    margin: 0 auto;
}

.caption-container {
    position: relative;
    height: fit-content;
}

.caption {
    visibility: hidden;
    opacity: .8;
    bottom: 2rem;
    left: 0;
    right: 0;
    position: absolute;
    background-color: #363636;
    color: white;
    font-size: 2.2rem;
    padding: 1.2rem 3rem 1.2rem 4rem;
    text-align: left;
    font-family: tex-italic;
    letter-spacing: 1px;
    line-height: 150%;
}

.caption-container:hover .caption {
    visibility: initial;
}

@media (max-width: 768px) {
    :root {
        font-size: 12%;
    }
    .img-container, .img-container1, .img-container5 {
        grid-template-columns: auto !important;
    }

    .img-container1 *, .img-container *, .img-container5 * {
        grid-column: span 1 !important;
        width: 100% !important;
    }

    .img-container1 button {
        width: 35px !important;
    }

    .caption {
        font-size: 4rem;
        padding: 1rem 2rem 1rem 3.5rem;
    }
}