body {
    font-family: Arial, sans-serif;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.popup-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80%;
    overflow: auto;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {margin-top: -300px; opacity: 0;}
    to {margin-top: 10%; opacity: 1;}
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-image,
.popup-video {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    cursor: pointer;
}

.popup-image:hover,
.popup-video:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}