﻿/* Container settings */
.reel-container {
    margin-top: 30px;
}

/* Ensure each video reel takes equal size in both rows */
.reel {
    position: relative;
    cursor: pointer;
    opacity: 0.9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Same size for all videos in both rows */
.col-md-3, .col-md-4 {
    padding: 10px; /* To prevent videos from touching each other */
}

.reel-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

/* Highlight the active video with animation */
.reel.active {
    opacity: 1;
    transform: scale(1.05); /* Zoom effect */
    z-index: 1;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Increase shadow when active */
}

/* Title styling */
.reel-title {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    transition: transform 0.3s ease;
}

/* Ensure both rows take the same height */
.row {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Make sure the videos take equal height */
}

/* Responsiveness */
@media (max-width: 768px) {
    /* Make videos smaller on smaller screens */
    .col-md-3 {
        width: 45%; /* 4 videos in the first row */
    }

    .col-md-4 {
        width: 45%; /* 3 videos in the second row */
    }
}

@media (max-width: 576px) {
    /* Full width for very small screens */
    .reel {
        width: 100%;
    }
}
