/* Basic Gallery Styles */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.gallery-item {
    position: relative;
    margin: 10px;
}
.gallery-item img, .gallery-item video {
    max-width: 200px;
    height: auto;
    cursor: pointer;
}
.gallery-item img[title], .gallery-item video[title] {
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Play icon for videos */
.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 3rem;
    z-index: 2; /* Ensure icon stays on top */
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lightbox img, .lightbox video {
    max-width: 90%;
    max-height: 90%;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}
.lightbox-close {
    top: 20px;
    right: 20px;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.lightbox-title {
    position: absolute;
    bottom: 20px;
    font-size: 1.2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    width: 100%;
    text-align: center;
}
