.pop-up-background {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
    z-index: 2;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity: 0;
    pointer-events:none;
    transition:0.3s;
}

.pop-up-background.active {
    opacity: 1;
    pointer-events: auto;
}

.panel {
    display: none;
    position:relative;
    width: clamp(320px, 90%, 700px);
    height: 80%;
    background: white;
    border-radius:12px;
    overflow: hidden;
    opacity: 0;
    flex-direction: column;
}

@media (max-width: 520px) {
    .panel {
        height: 90%;
    }
}

.panel.active {
    display: flex;
    opacity: 1;
}

.panel .close-btn {
    position:absolute;
    top: 1rem;
    right: 1rem;
    width: clamp(1.4rem, 2vw, 2rem);
    height: clamp(1.4rem, 2vw, 2rem);
    background: darkred;
    justify-content: center;
    border:none;
    font-size: clamp(1rem, 2vw, 1.4rem);
    cursor:pointer;
    color: black;
    border: 1px solid gray;
    border-radius: 50%;
}

.panel .close-btn:hover {
    background: red;
    color: white;
}

.panel .main-area {
    width:100%;
    height:50%;
    background-color: black;
}

.main-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel .content {
    padding: clamp(5px, 2vw, 10px) clamp(10px, 2vw, 30px) clamp(5px, 2vw, 10px);
    overflow-y:auto;
    flex:1;
    display:flex;
    overflow-y: scroll;
    scrollbar-width: auto;
    flex-direction:column;
    gap:12px;
}

.panel .content img {
    object-fit: contain;
}

.panel .content .title {
    font-weight: 600;
    text-align: center;
    font-size: 25px;
    margin: 0.8rem;
    padding-bottom: 8px;
    border-bottom: 1px solid
}

.panel .content .description {
    margin: 0;
    font-size: 16px;
    padding: 0 1rem 1rem;
}

.panel-area {
    background:#f5f5f5;
    padding:18px;
    border-radius:10px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.panel-area-title {
    font-weight:600;
    border-bottom:1px solid #ddd;
    padding-bottom:8px;
}

.contributor-info {
    display: grid;
    grid-template-columns: 1fr auto;
}

.contributor-info a {
    padding: 0.5rem;
}

.contributor-item {
    display:flex;
    flex-direction:column;
    gap:2px;
    padding-left:12px;
    border-left:3px solid var(--background-color);
}

.contributor-item .name {
    font-weight: bold;
    font-size: 14px;
}

.contributor-item .position {
    font-size:14px;
    color:#555;
}

.panel-area a {
    width: fit-content;
    height: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    background-color: rgba(255,255,255,0.5);
    box-shadow: 0 2px 1px rgba(0,0,0,0.2);
}

.panel-area a:hover {
    background: gainsboro;
}

.panel-area img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.panel-area-software img {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.panel-area-source {
    justify-content: flex-start;
    gap: 12px;
}

.panel-area-screenshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.panel-area-uv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}


.panel-area-screenshot img,
.panel-area-uv img {
    height: auto;
    background: black;
    width: 100%;
    max-height: 110px;
    object-fit: cover;
}
