/* ===== Gallery ===== */

.gallery {
    position: relative;
    margin: 0 0 1.9rem;
}

.gallery .gallery-images {
    position: relative;
    height: 0;
    line-height: 0;
    padding-bottom: 66.666666667%;
    touch-action: pan-y;
}

.gallery .gallery-images > .image {
    display: none;
    position: absolute;
    width: 100%;
    height: 0;
    line-height: 0;
    padding-bottom: 66.666666667%;
    background-color: #D6D7DA;
    background-size: 100% auto;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.gallery .gallery-images > .image > img.image {
    position: absolute;
    inset: 0;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
    object-position: top center;
}

.gallery .gallery-images.clickable {
    cursor: pointer;
}

.gallery a.img-prev,
.gallery a.img-next {
    position: absolute;
    display: block;
    top: 0;
    width: 40%;
    height: 100%;
    z-index: 2;
}

.gallery a.img-prev::before,
.gallery a.img-next::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 4rem;
    height: 4rem;
    background-color: rgba(0, 0, 0, 0.3);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 2.4rem auto;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.25s ease, background-color 0.2s ease;
}

.gallery a.img-prev:hover::before,
.gallery a.img-prev:focus-visible::before,
.gallery a.img-next:hover::before,
.gallery a.img-next:focus-visible::before {
    opacity: 1;
}

.gallery a.img-prev::before {
    left: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill='%23fff' d='M41.47 27.88 15.54 2l1-1 26.93 26.88C34.4 37.1 25.1 46.1 16.05 55.38L15 54.4z'/%3E%3C/svg%3E");
    transform: translateY(-50%) scaleX(-1);
}

.gallery a.img-next::before {
    right: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill='%23fff' d='M41.47 27.88 15.54 2l1-1 26.93 26.88C34.4 37.1 25.1 46.1 16.05 55.38L15 54.4z'/%3E%3C/svg%3E");
    transform: translateY(-50%);
}

.gallery a.img-prev:hover::before,
.gallery a.img-next:hover::before {
    background-color: rgba(0, 0, 0, 0.65);
}

.gallery a.img-prev { left: 0; }
.gallery a.img-next { right: 0; }

@media (prefers-reduced-motion: reduce) {
    .gallery a.img-prev::before,
    .gallery a.img-next::before {
        transition: none;
    }
}

.gallery .iframe-wrap {
    position: relative;
    padding-bottom: 66.666666667%;
    width: 100%;
}

.gallery .iframe-wrap iframe {
    position: absolute;
    width: 100%!important;
    height: 100%!important;
}

.gallery .gallery-thumbs {
    position: relative;
    width: 100%;
    margin: 0 0 1.9rem;
    padding-top: 0.65rem;
}

.gallery .thumbs {
    position: absolute;
    width: 100%;
    overflow: hidden;
}

.gallery .thumbs .thumbs-wrap {
    position: relative;
    width: 192rem;
}

.gallery .thumbs a.thumb {
    position: relative;
    display: block;
    float: left;
    margin: 0 0.65rem 0 0;
    overflow: hidden;
    background-color: #D6D7DA;
    text-decoration: none;
}

.gallery .thumbs a.thumb img.image {
    position: absolute;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover;
}

.gallery .thumbs a.thumb span.video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: url('../images/gallery/bg-video.png') 50% 0 no-repeat;
}

.gallery .thumbs a.thumb span.overlay {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    top: 0;
    left: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.gallery .thumbs a.thumb.active span.overlay,
.gallery .thumbs a.thumb:hover span.overlay {
    opacity: 0;
}

.gallery a.thumb-prev,
.gallery a.thumb-next {
    position: absolute;
    display: block;
    top: 0.65rem;
    width: 1.9rem;
    height: 3.2rem;
}

.gallery a.thumb-prev:hover,
.gallery a.thumb-next:hover {
    background-color: #A7A600;
}

.gallery a.thumb-prev,
.gallery a.thumb-next {
    background-color: var(--overlay-hover);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 26'%3E%3Cpath fill='%23fff' d='M15 13 2.6.6 1 2.3 11.6 13 1 23.7l1.6 1.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 1rem 1.65rem;
}

.gallery a.thumb-prev {
    left: -0.65rem;
    transform: scaleX(-1);
}

.gallery a.thumb-next {
    right: -0.65rem;
}

.gallery .vertical {
    position: absolute;
    right: -9.6rem;
    bottom: -1.3rem;
    width: 9.6rem;
    height: 1.3rem;
    transform: rotate(270deg);
    transform-origin: 0 0;
}

.gallery .vertical .copyright {
    text-align: left;
}

.gallery .copyright {
    text-align: right;
    border-style: none;
    font-size: 0.65rem;
    line-height: 1.3rem;
}

@media screen and (max-width: 800px) {
    .gallery .vertical {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        transform: none;
    }
    .gallery .vertical .copyright {
        text-align: right;
    }
}

@media screen and (max-width: 600px) {
    .gallery {
        margin: 0 0 1.3rem;
    }
    .gallery a.thumb-prev,
    .gallery a.thumb-next {
        top: 0.35rem;
        width: 1.5rem;
        height: 2.5rem;
        background-size: 0.75rem 1.3rem;
    }
    .gallery a.img-prev::before,
    .gallery a.img-next::before {
        width: 2.5rem;
        height: 2.5rem;
        background-size: 1.8rem auto;
    }
}
