﻿html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.MyGallery-image {
    cursor: pointer;
    transition: transform .2s ease-in-out,border-color .2s ease-in-out;
}

    .MyGallery-image:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
    }

.MyGallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-in-out,visibility .3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

    .MyGallery-overlay.MyGallery-active {
        opacity: 1;
        visibility: visible;
    }

.MyGallery-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.MyGallery-overlay .MyGallery-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border-style: none !important;
    border-width: 0 !important;
    box-shadow: 0 0 20px rgba(0,0,0,.7);
    border-radius: 5px;
    vertical-align: middle !important;
}

.MyGallery-nav-arrow, .MyGallery-close-button {
    position: absolute;
    background-color: rgba(255,255,255,.2);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 2.5em;
    user-select: none;
    border-radius: 50%;
    transition: background-color .2s ease-in-out;
    z-index: 10000;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 2px #222;
}

    .MyGallery-nav-arrow:hover, .MyGallery-close-button:hover {
        background-color: rgba(255,255,255,.4);
    }

    .MyGallery-nav-arrow.MyGallery-left {
        left: 20px;
        transform: translateY(-50%);
        top: 50%;
    }

    .MyGallery-nav-arrow.MyGallery-right {
        right: 20px;
        transform: translateY(-50%);
        top: 50%;
    }

.MyGallery-close-button {
    top: 20px;
    right: 20px;
    font-size: 2em;
    border-radius: 5px;
    padding: 10px 15px;
}

@media (max-width:768px) {
    .MyGallery-nav-arrow {
        font-size: 2em;
        padding: 10px 15px;
    }

        .MyGallery-nav-arrow.MyGallery-left {
            left: 10px;
        }

        .MyGallery-nav-arrow.MyGallery-right {
            right: 10px;
        }

    .MyGallery-close-button {
        top: 10px;
        right: 10px;
        font-size: 1.5em;
        padding: 8px 12px;
    }
}
