/* --------------------------------------------------
   SLIDESHOW (FULLY FIXED)
-------------------------------------------------- */
.slideshow-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Slideshow fade animation (unique name) */
.fade {
    animation: slideFade 1.5s ease-in-out;
}

@keyframes slideFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* --------------------------------------------------
   FILTER BUTTONS
-------------------------------------------------- */
.filter-section {
    text-align: center;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #00aaff;
}

/* --------------------------------------------------
   MASONRY GALLERY
-------------------------------------------------- */
.gallery-container {
    column-count: 3;
    column-gap: 15px;
}

.gallery-item {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #333;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}
/* --- Masonry Layout --- */
.gallery-container {
    column-count: 4;           /* number of columns on desktop */
    column-gap: 15px;          /* space between columns */
    padding: 20px;
}

.gallery-item {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: inline-block;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .gallery-container { column-count: 3; }
}
@media (max-width: 900px) {
    .gallery-container { column-count: 2; }
}
@media (max-width: 600px) {
    .gallery-container { column-count: 1; }
}

/* --------------------------------------------------
   VIDEO THUMBNAIL
-------------------------------------------------- */
.video-thumb {
    background: #222;
    color: #00aaff;
    padding: 40px;
    text-align: center;
    font-size: 22px;
    border-radius: 8px;
    border: 2px solid #333;
    cursor: pointer;
    margin-bottom: 15px;
}

/* --------------------------------------------------
   LIGHTBOX
-------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

/* --------------------------------------------------
   VIDEO POPUP (FULLY FIXED)
-------------------------------------------------- */
.video-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.95);
    padding: 20px;
    border-radius: 10px;
    z-index: 99999;
    animation: popupFade 0.3s ease;
}

/* Unique animation name (no conflict with slideshow) */
@keyframes popupFade {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.video-popup video {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
}

.close-video {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* --- Gallery Image Size Fix --- */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery-item {
    width: 280px; /* Adjust as needed */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

