@charset "utf-8";

.portrait-div{
    margin: 20px 40px;
    padding: 10px 20px;
    background-color: #f6f8ff;
}

.main h2{
    font-size: 24px;
    font-weight: bold;
    line-height: 30px;
    text-align: center;
    margin-top: 20px;
}

.main h2::after{
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #383838;
    margin: 20px auto;
}

.portrait-div p{
    font-size: 1.2em;
    line-height: 1.3em;
    text-align: center;
    margin: 20px 0;
}

.portrait-div a{
    color: #534e80;
}

.gallery{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.thumbnail{
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail:hover{
    transform: scale(1.07);
}

.modal{
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal-background{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content{
    z-index: 20;
    max-width: 90%;
    max-height: 90%;
}

.close{
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 30;
    filter: drop-shadow(3px 4px 4px rgba(0, 0, 0, 0.7));
}

.back{
    position: absolute;
    top: calc(50% - 20px);
    left: 5px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 30;
    filter: drop-shadow(3px 4px 4px rgba(0, 0, 0, 0.7));
}

.next{
    position: absolute;
    top: calc(50% - 20px);
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 30;
    filter: drop-shadow(3px 4px 4px rgba(0, 0, 0, 0.7));
}

@media (max-width: 800px){
    .portrait-div{
        margin: 16px 16px;
    }

    .main h2{
        margin-top: 24px;
        font-size: 20px;
    }

    .gallery{
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 6px;
        padding-bottom: 6px;
        margin-right: auto;
        margin-left: auto;
        gap: 2vw;
        justify-content: center;
    }

    .thumbnail{
        height: 100px;
    }
}