@font-face {
    font-family: 'NanumSquareRound';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

:root {
    --white: #fefefe;
    --title: #4c4c4c;
    --text: #6f6f6f;
    --tag-background: #dddddd;
}

body {
    color: var(--text);
}

.box {
    padding: 0;
    background-color: var(--white);
}



#main {
    min-width: 80%;
    max-width:80%;
}

#gallery {
    padding: 10px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    
    a {
        min-width: 200px; max-width: 0px;
        max-height: fit-content;
    }

    .box {
        max-width: 400px;
        padding: 10px;
        border: 1px solid var(--tag-background);
        border-radius: 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 5px;
        background-color: white;
        color: var(--text);
    }

    .box:hover .photo-desc {
        max-height: 400px;
    }
}

.photo {
    width: 100%; 
    object-fit: contain;
}


.photo-title {
    color: var(--title);
    font-size: large;
    font-family: 'NanumSquareRoundEB';
}

.photo-desc {
    margin-bottom: 5px;
    padding-left: 5px;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    width: fit-content; 
    padding: 5px; 
    border-radius: 15px; 
    background-color: var(--tag-background); 
    font-family: 'NanumSquareRoundEB';
    color: white;
}

#photo-popup-canvas {
    width: 100vw; height: 100vh;
    position: fixed;
    top:0%; left: 0%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(1, 1, 1, 0.5);
    color: var(--text);
}

#photo-popup-canvas #photo-popup {
    width: 80%; height: 50%;
    padding: 20px;
    border-radius: 15px;
    
    display: flex;
    flex-direction: row;
    gap: 10px;
    
    
    background-color: white;
}

#photo-popup-canvas #photo-popup #photo {
    min-width: 40%; max-width: 50%; 
    object-fit: contain;
}

#photo-popup-canvas #photo-popup .photo-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;

    h3 {
        margin: 10px 0px;
        padding: 0px;
    }
}

#photo-popup-canvas #photo-popup .photo-info #photo-title {
    margin: 10px 0px;
    font-size: 32px;
    font-family: 'NanumSquareRoundEB';
    color: var(--title);
}

#photo-popup-canvas #photo-popup .photo-info #photo-desc {
    margin: 10px 0px;
    padding-left: 10px;
    font-size: 20px;
    font-family: 'NanumSquareRoundB';
}

#photo-popup-canvas #photo-popup .photo-info #photo-tags {
    width: 100%; 
    min-height: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#photo-popup-canvas #photo-popup .photo-info #photo-tags .tag {
    height: fit-content;
}