﻿/*** Modal Popup ***/

.modal-bg
{
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    animation-name: modal-fadein;
    animation-duration: 0.5s
}

@keyframes modal-fadein
{
    from
    {
        opacity: 0
    }

    to
    {
        opacity: 1
    }
}

.modal-content
{
    position: relative;
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    max-height: 100%;
    overflow-y: auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: fadein;
    animation-duration: 0.5s
}

    .modal-content > header
    {
        font-size: 1.75rem;
        text-align: center;
        margin: 0 0 1rem 0;
    }

@media screen and (max-width: 520px)
{
    .modal-content
    {
        width: 100%;
    }
}

.popup-wide
{
    max-width: 1200px;
}

.popup-close
{
    color: #aaaaaa;
    float: right;
    font-weight: bold;
    transition: color 0.4s ease;
    cursor: default;
}

    .popup-close:hover, .popup-close:focus
    {
        color: #000;
        text-decoration: none;
    }

.popup-message
{
    font-size: 1.125rem;
    line-height: 1.5rem;
    text-align: center;
    margin: 1.5rem;
}

.popup-buttons
{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 0.375rem;
    margin: 1rem 0 0 0;
}

    .popup-buttons > button,
    .popup-buttons > input[type="submit"]
    {
        flex: 0 1 10rem;
    }

.popup-button
{
    font-size: 1.125rem;
    padding: 0.5rem 1.25rem;
}


@media screen and (max-width: 900px)
{
    .modal-bg
    {
        padding: 0;
    }
}


/*** Photo Popup ***/

.photo-popup
{
    max-width: 1000px;
}

    .photo-popup > img
    {
        margin: 0 auto;
    }
