﻿/* Container */
.project-gallery {
    max-width: 800px;
    margin: auto;
}

/* Main display (images or videos) */
.main-display img,
.main-display video {
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}



/* Main display container */
.main-display {
    width: 100%;
    max-width: 800px; /* optional: max width */
    aspect-ratio: 16 / 9; /* fixed ratio for all media */
    background: #000; /* optional: black padding for non-16:9 images */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: auto;
}

    /* Images inside main display */
    .main-display img.main-media {
        width: 100%;
        height: 100%;
        object-fit: contain; /* maintain image ratio without stretching */
    }

    /* Videos inside main display */
    .main-display iframe {
        width: 100%;
        height: 100%;
    }
















/* Fade + slide animation */
#mainDisplay {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-out {
    opacity: 0;
    transform: translateX(-15px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}

/* Smooth entrance for media */
.gallery-media {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}





/* Thumbnails (images + video) */
.thumb {
    width: 120px; /* fixed width for all thumbnails */
    height: 90px; /* fixed height for all thumbnails */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

/* Image inside thumbnail */
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the container */
}

/* Video thumbnail */
.video-thumb {
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Video icon inside video thumbnail */
    .video-thumb i {
        font-size: 40px;
        color: #FF0000;
        width: 100%; /* force it to fill container width */
        text-align: center; /* center horizontally */
    }

/* Hover effect for any thumbnail */
.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Active thumbnail */
.thumb.active {
    border: 3px solid #2C3E50;
    opacity: 1;
}







/*thumbnail center y and x start*/


.thumbnail-row {
    display: flex; /* enable flex */
    flex-wrap: wrap; /* wrap if too many thumbnails */
    justify-content: center; /* CENTER thumbnails horizontally */
    gap: 12px; /* spacing between thumbnails */
    margin-top: 15px; /* space from main display */
}


.thumbnail-row .thumb {
    display: flex;
    align-items: center; /* vertical center inside thumbnail */
    justify-content: center; /* horizontal center inside thumbnail */
}

/*thumbnail center y and x end*/




