.image-modal-popup {
    position: fixed;
    overflow: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    animation: 500ms fadeIn;
    display: none;
    z-index: 99999999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-popup .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    margin-top: 50px;
    position: relative;
}

.image-modal-popup .description {
    text-align: center; 
}

.image-modal-popup img {
    max-height: calc(100vh - 150px);
    max-width: 90vh;
    margin-bottom: 10px;
    cursor: pointer;
}
  
.index-image-modal-popup img {
    width: 60%;
}

.image-modal-popup-x {
    position: sticky;
    text-align: right;
    padding-right: 50px;
    top: 20px;
    font-size: 80px;
    color: white;
    display: none;
    z-index: 999999999999999999999999;
}

.image-modal-popup p {
    margin: 5px auto;
    font-size: 1.1rem;
}


@media screen and (min-width: 900px) {
  
    .index-image-modal-popup p {
        font-size: 22px;
    }
}

@media screen and (max-width: 900px) {
    .image-modal-popup .wrapper {
        margin-top: 200px;
    }

    .image-modal-popup img {
        width: 90%;
    }
}