/* Video grid container */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible columns */
    gap: 20px;
    padding: 20px;
}

/* Each video container */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* Aspect ratio 9:16 for reels format */
    background-color: #000;
}

/* Video element styled to fit the container */
video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the container */
}

/* Sound control button */
.sound-control {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}