* {
    box-sizing: border-box;
}

div.content {
    width: 90%;
    margin: 0 auto;
    max-width: 1280px;
}

div.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

div.gallery-item {
    margin: 5px;
    border: 1px solid #ccc;
    width: calc(25% - 11px);
}

div.gallery-item:hover {
    border: 1px solid #777;
}

div.gallery-item img {
    width: 100%;
    height: auto;
}

div.gallery-item div.desc {
    padding: 15px;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    div.gallery-item {
        width: calc(50% - 11px);
    }
}

@media only screen and (max-width: 480px) {
    div.gallery-item {
        width: calc(100% - 11px);
    }
}

hr.separator {
    border: none;
    height: 1px;
    background-color: #ccc;
}

.overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stays on top of the page */
    z-index: 1000;
    /* High z-index to ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black background with opacity */
    overflow: auto;
    /* Enable scroll if content is too big */
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center the content */
    background-color: rgba(1, 1, 1, 0);
    /* Or any other background for the video container */
    padding: 1px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    max-width: 90%;
    /* Limit content width */
    max-height: 90%;
    /* Limit content height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
    /* Position close button to the top-right */
    margin-bottom: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#videoPlayer {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#imagePlayer {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}