﻿.mediaGallery .mediaGallery__contentImage img {
    max-width: 300px;
    height: 200px;
    object-fit: cover;
}

.mediaGallery .mediaGallery__contentImage {
    position: relative;
    display: block;
}

.mediaGallery .mediaGallery__text {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
    font-family: tp-sans, sans-serif;
    font-size: 16px;
    line-height: 24px;
    pointer-events: none;
}

.mediaGallery .ldr-modal__close svg {
    width: 24px;
    height: 24px;
    display: block;
}

.mediaGallery .ldr-modal__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.mediaGallery .ldr__arrow {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: var(--tpc-arrow-bg, var(--bg-default));
    color: var(--title-primary-strong);
    -webkit-backdrop-filter: blur(7.5px);
    backdrop-filter: blur(7.5px);
    overflow: hidden;
    isolation: isolate;
    /*transition: color var(--t-base) var(--ease), background var(--t-base) var(--ease);*/
}

.mediaGallery .ldr__arrow-accent {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg-primary-strong);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--t-base) var(--ease);
}

.mediaGallery .ldr__arrow:hover .ldr__arrow-accent {
    transform: scaleX(1);
}

.mediaGallery .ldr__arrow--prev .ldr__arrow-icon svg {
    transform: rotate(180deg);
}


.mediaGallery .ldr__arrow-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .mediaGallery .ldr__arrow svg {
        position: absolute;
        width: 16.7151px;
        height: 16px;
        display: block;
        z-index: 1;
    }

.mediaGallery .ldr__arrow--prev svg {
    transform: rotate(180deg);
}

.mediaGallery .ldr__arrow:hover {
   /* background: var(--bg-primary-strong);*/
    color: var(--title-inverse);
}

.mediaGallery .ldr__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

    .mediaGallery .ldr__arrow:disabled:hover {
        background: var(--bg-default);
        color: var(--icon-default);
    }

#mediaGalleryModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

    #mediaGalleryModal[hidden] {
        display: none !important;
    }

    #mediaGalleryModal .mediaGalleryModal__close {
        position: absolute;
        top: 5%;
        right: 5%;
        z-index: 10;
        color: #fff;
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
    }

    #mediaGalleryModal .ldr-modal__container {
        position: relative;
        width: auto;
        max-width: 100%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #mediaGalleryModal .ldr-modal__card {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 90vw;
        max-height: 80vh;
        background: transparent;
    }

    #mediaGalleryModal .mediaGalleryModal__image {
        display: block;
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 60vh;
        object-fit: contain;
        margin: 0;
    }

    #mediaGalleryModal .ldr-modal__action {
        margin-top: 14px;
    }

@media (min-width:576px) {
    .mediaGallery .mediaGallery__contentImage img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {

    #mediaGalleryModal .ldr-modal__container {
        max-width: 90vw;
    }
}

@media (min-width:992px) {
    .mediaGallery .mediaGallery__contentImage img {
        max-width: 100%;
        height: 400px;
    }

    #mediaGalleryModal {
        padding: 20px;
    }

        #mediaGalleryModal .mediaGalleryModal__close {
            right: 13%;
        }
}
