/* General Body Styles */
body {
    background-image: none; /* Remove background image for this page */
    background-color: #0a0a0a; /* Darker background */
    color: #ccc; /* Lighter default text for readability */
    font-family: 'Inter', sans-serif;
}

/* Ensure headers and footers don't have conflicting backgrounds */
.main-header, .main-footer {
    background-color: transparent;
}

/* Header alignment fix */
.main-nav a, .dropbtn { line-height: 1.0; }

/* Page Hero Section */
.page-hero {
    text-align: center;
    padding: 60px 20px;
}

.page-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Gallery Layout */
.video-gallery .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Individual Video Item Styling */
.video-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.video-item:hover {
    transform: translateY(-8px) scale(1.04); /* Reduced expansion */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85); /* Enhanced shadow */
}

.video-container {
    width: 100%;
    position: relative;
    /* Default aspect ratio for vertical video */
    aspect-ratio: 9 / 16;
    background-color: #000;
}

/* Specific rule for the horizontal video */
.horizontal-video-item {
    grid-column: span 2;
}

.horizontal-video-item .video-container {
    aspect-ratio: 16 / 9; /* Set aspect ratio for 16:9 video */
}


.video-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* So you can click the video */
    text-align: center;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.video-container .video-overlay p {
    font-size: 1.1rem;
    padding: 20px;
}


.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 20px;
    flex-grow: 1;
}

.video-info h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #ffffff; /* Bright white for titles */
}

.video-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0; /* Slightly muted text for description */
}

.instagram-button {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #666;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.instagram-button:hover {
    background-color: #007BFF;
    border-color: #007BFF;
    color: white;
}

/* Fade-in Animations (modified to not conflict with hover transforms) */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay classes */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }


/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .video-gallery .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-item {
        width: 100%;
        margin: 0 auto;
    }

    .horizontal-video-item {
        grid-column: span 1;
    }

    .video-container {
        aspect-ratio: 9 / 16 !important;
        max-height: 70vh !important;
        width: 100% !important;
        height: auto !important;
    }

    .video-container video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .horizontal-video-item .video-container {
        aspect-ratio: 16 / 9 !important;
        max-height: 50vh;
    }
}
