.photo-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-card img {
    width: 100%;
    height: 180px;   /* fixed height for uniform cards */
    object-fit: cover; /* ensures images fit nicely */
    display: block;
}

.photo-card h4 {
    font-size: 16px;
    margin: 10px 0;
}
.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card .thumb img {
    width: 100%;
    height: 180px;   /* fixed height for uniform cards */
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Video Modal */
.modal {
    display: none;              /* hidden until a video is clicked */
    position: fixed;            /* fixed keeps it locked to viewport */
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);

    /* Flexbox centers the video perfectly */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #000;
    padding: 10px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;         /* keeps close button inside */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modal-content iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.close {
    position: absolute;
    top: 10px; right: 15px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
