/* Gallery Layout */
.section {
    margin: 60px auto;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px 0;
}

/* Gallery Image Styling */
.gallery img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 3px solid #e50914;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover Effect */
.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(90%);
}


.video-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-item iframe {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-title {
    margin-top: 10px;
    font-size: 14px;
    text-align: -webkit-center;
}

.video-container {
    padding-left: 20px;
    padding-right: 20px;
}


.intro-text {
    max-width: 680px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.intro-text::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e50914;
    margin: 15px auto 0;
    border-radius: 2px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item iframe {
    border: 3px solid #e50914;
    border-radius: 6px;
}


@media (max-width: 768px) {
    .video-wrapper {
        position: relative;
        margin-bottom: 10px;
    }

    .video-wrapper:not(:last-child)::after {
        content: "";
        display: block;
        height: 1px;
        background-color: #e50914;
        width: 80%;
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .gallery img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .gallery img {
        width: 100px;
        height: 100px;
    }

    .section {
        margin: 60px auto;
    }
}


