.tgslr-slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
}

#slideshow-image-container,
#tgslr-slideshow-imagelink {
    display: block;
    width: 100%;
    height: 100%;
}

.tgslr-slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}
.tgslr-slideshow-container .tgslr-slideshow-title {
    position: absolute;
    bottom: 0;
    left: 50px;
    height: 50px;
    background-color: white;
}
.tgslr-slideshow-container .tgslr-slideshow-title a {
    font-size: 16pt;
    line-height: 50px;
    background-color: white;
    padding: 0 20px;
    cursor: pointer;
    color: black;
    text-decoration: none;
}

.tgslr-slideshow-container .tgslr-slideshow-buttons {
    position: absolute;
    bottom: 0;
    right: 50px;
    height: 50px;
}

.tgslr-slideshow-container .tgslr-slideshow-buttons .tgslr-slideshow-button {
    position: relative;
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: white;
    cursor: pointer;
    border-radius: 0;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.tgslr-slideshow-container .tgslr-slideshow-buttons .tgslr-slideshow-button span {
    font-size: 24px;
    line-height: initial;
}

.tgslr-slideshow-container .tgslr-slideshow-position {
    position: absolute;
    right: 50px;
    bottom: -30px;
    width: 100px;
    text-align: center;
    color: #595959;
}

@media (min-width: 680px) {

}

@media (max-width: 680px) {
    .tgslr-slideshow-container {
        margin-bottom: 80px;
    }
    .tgslr-slideshow-container img {
        /* position: initial; */
    }
    .tgslr-slideshow-container .tgslr-slideshow-buttons {
        /* position: initial; */
        bottom: -50px;
        right: 0;
        float: right;
    }
    /* .tgslr-slideshow-container .tgslr-slideshow-buttons .tgslr-slideshow-button {
        border: 1px solid lightgray;
    } */
    .tgslr-slideshow-container .tgslr-slideshow-title {
        /* position: initial; */
        bottom: -50px;
        left: 0;
        max-width: 75%;
        /* float: left; */
    }
    .tgslr-slideshow-container .tgslr-slideshow-title a {
        display: block;
        white-space: nowrap;
        font-size: 12pt;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .tgslr-slideshow-container .tgslr-slideshow-position {
        right: 0;
        bottom: -75px;
        font-size: 10pt;
    }
}

#tgslr-slideshow-imagelink {
    display: block;
    width: 100%;
    height: 100%;
}

/*
  When the slideshow link is focused via keyboard, temporarily set the container's
  overflow to visible. This allows the browser's default focus outline (the "glow")
  to appear without being clipped.
*/
.tgslr-slideshow-container:has(#tgslr-slideshow-imagelink:focus-visible) {
  overflow: visible;
}