@import 'main.css';

/* Article Layout */
.layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.featured-image {
    width: 100%;
    height: 60vh;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(16, 42, 67, 0.8));
    pointer-events: none;
}

.featured-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: var(--color-background) !important;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

/* Filter out the featured image from the content */
.article-content img[src*="featured"] {
    display: none;
}

/* or match the exact path if we know it */
.article-content img[src="{{ featured_image }}"] {
    display: none;
}

.additional-content {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--color-dark);
    border-radius: 8px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 2em auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .layout {
        padding: 1rem;
    }
    
    .featured-image {
        height: 50vh;
    }

    .featured-title {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 800px) {
    .featured-image {
        height: 40vh;
    }
    
    .featured-title {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .content {
        padding: 0 1rem;
    }
} 