.ltg-gallery-current {
    position: relative;
    border-radius: 20px;
    background-color: #f4f5f8;
    overflow: hidden;
}

.ltg-gallery-current-wrap {
    position: relative;
}

@media screen and (min-width: 768px) {
    .ltg-gallery-current-wrap {
        margin: 0 3rem;
    }
}

.ltg-gallery-current-wrap.--crop {
    z-index: 4;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7);
}

.ltg-gallery-current img.ltg-gallery-current-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ltg-gallery-current img.ltg-gallery-current-img.--cropped {
    object-fit: initial;
    height: auto;
    transform-origin: top;
}

.ltg-gallery-current-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.ltg-gallery-current-video + .ltg-gallery-indicator {
    display: none;
}

.ltg-gallery-current.--is-video::after {
    content: "\f144";
    font-family: "Font Awesome 5 free";
    font-weight: 900;
    color: #fff;
    text-shadow: rgba(0, 0, 0, 0.7);
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: transform 0.3s;
    pointer-events: none;
    z-index: 4;
}

.ltg-gallery-current.--is-video:hover {
    cursor: pointer;
}

.ltg-gallery-current.--is-video:hover::after {
    transform: translateX(-50%) translateY(-50%) scale(1.1);
}

.ltg-gallery-current.--is-video.--is-embed::after {
    display: none;
}

.ltg-gallery-current.--is-video.--is-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ltg-gallery-current::before {
    content: "";
    padding-bottom: 70%;
    display: block;
}

.ltg-gallery-current--16by9::before {
    padding-bottom: 56.25%;
}

.ltg-gallery-current--4by3::before {
    padding-bottom: 75%;
}

.ltg-gallery-current--custom::before {
    display: none;
}

.ltg-gallery-list {
    overflow: hidden;
    position: relative;
}

.ltg-gallery-list-height {
    width: 70px;
}

@media screen and (min-width: 768px) {
    .ltg-gallery-list-height {
        width: 200px;
    }
}

.ltg-gallery-list-height::before {
    content: "";
    padding-bottom: 70%;
    display: block;
}

.ltg-gallery-list-height--16by9::before {
    padding-bottom: 56.25%;
}

.ltg-gallery-list-height--4by3::before {
    padding-bottom: 75%;
}

.ltg-gallery-list-height--custom::before {
    display: none;
}

.ltg-gallery-list-wrap {
    margin: 1rem 1.5rem;
    position: relative;
}

@media screen and (min-width: 768px) {
    .ltg-gallery-list-wrap {
        margin: 1rem 3rem;
    }
}

.ltg-gallery-list-wrap::before,
.ltg-gallery-list-wrap::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 3;
    top: 0;
    height: 100%;
    width: 90px;
}

.ltg-gallery-list-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 5%, transparent);
}

.ltg-gallery-list-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 5%, transparent);
}

.ltg-gallery-list-wrap.--at-start::before,
.ltg-gallery-list-wrap.--at-end::after {
    display: none;
}

.ltg-gallery-list-content {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: max-content;
}

.ltg-gallery-list-item {
    flex: 0 0 auto;
    width: 70px;
    position: relative;
}

html.ltg-a11y-illustrations-false .ltg-gallery-list-item {
    background-color: #f4f5f8;
}

@media screen and (min-width: 768px) {
    .ltg-gallery-list-item {
        width: 200px;
    }
}

.ltg-gallery-list-item img.ltg-gallery-list-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

.ltg-gallery-list-item:hover {
    cursor: pointer;
}

.ltg-gallery-list-item.--cropped {
    border-radius: 10px;
    overflow: hidden;
}

.ltg-gallery-list-item.--cropped img.ltg-gallery-list-item-img {
    transform-origin: top;
    object-fit: initial;
    height: auto;
}

.ltg-gallery-list-item .ltg-gallery-indicator {
    padding: 0.5rem;
}

.ltg-gallery-list-item .ltg-gallery-indicator .btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

.ltg-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 1rem;
    color: #000;
    padding: 1rem 0.5rem;
}

@media screen and (min-width: 768px) {
    .ltg-gallery-btn {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .ltg-gallery-current-wrap > .ltg-gallery-btn {
        display: none;
    }
}

html.ltg-a11y-contrast-true .ltg-gallery-btn {
    color: white;
}

.ltg-gallery-btn:hover {
    cursor: pointer;
}

.ltg-gallery-btn.ltg-gallery-next {
    left: 100%;
}

.ltg-gallery-btn.ltg-gallery-prev {
    right: 100%;
}

.ltg-gallery-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    z-index: 3;
    color: #afafaf;
    border: none;
    background-color: transparent;
}

html.ltg-a11y-contrast-true .ltg-gallery-indicator {
    color: yellow;
}

html.ltg-a11y-contrast-true .ltg-gallery-indicator-text {
    background-color: #272727;
    padding: 0 0.25rem;
}

.ltg-gallery-indicator .btn {
    margin-right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

.ltg-gallery-crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999999;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    background-color: rgba(0, 0, 0, 0.6);
}

.ltg-gallery-crop-actions {
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 3;
    margin-top: 1rem;
    text-align: center;
}

.ltg-gallery-crop-content {
    grid-row-start: 2;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 2;
    padding: 1rem;
    background: #e5e5e5;
    border-radius: 1rem;
}

.ltg-gallery-crop-content .ltg-gallery-current-img:hover {
    cursor: move;
}

.ltg-gallery-crop-content .ltg-gallery-indicator {
    display: none;
}

.ltg-modal-backdrop.ltg-gallery-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.4);
}

.ltg-gallery-modal {
    display: flex;
    flex-direction: column;
}

.ltg-gallery-modal .ltg-modal-wrap,
.ltg-gallery-modal .ltg-modal-content {
    flex: 1 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ltg-gallery-modal .ltg-modal-wrap {
    margin: 2.5rem auto;
}

.ltg-gallery-modal .ltg-focus-trap {
    flex: 1 0 100%;
    display: flex;
    flex-direction: column;
}

.ltg-gallery-modal-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    margin: auto;
    max-width: 100%;
    padding: 1rem;
}

@media screen and (max-width: 768px) {
    .ltg-gallery-modal-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.ltg-gallery-modal-content.--16by9 {
    aspect-ratio: 16/9;
}

.ltg-gallery-modal-content.--4by3 {
    aspect-ratio: 4/3;
}

.ltg-gallery-modal-content.--default {
    aspect-ratio: 10/7;
}

.ltg-gallery-modal-content-wrap {
    flex: 1 0 auto;
    position: relative;
}

.ltg-gallery-modal-header {
    text-align: right;
    padding: 0.5rem;
    position: fixed;
    top: 0;
    right: 0;
}

.ltg-gallery-modal-close {
    border: none;
    font-size: 1.25rem;
    color: #fff;
    background-color: transparent;
}

body:has(> .ltg-gallery-modal) {
    overflow: hidden;
}
