/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    background-color: white;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

section {
    margin-bottom: 60px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 2rem;
    color: #667eea;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

h3 {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 5px;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Media Grid (for images) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 500px), 1fr)
    );
    gap: 30px;
    margin-top: 30px;
}


/* Media List (for audio/video) */
.media-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Media Items */
.media-item {
    background-color: #fafafa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.media-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
}

.media-item audio,
.media-item video {
    width: 100%;
    margin: 0 0;
    border-radius: 4px;
}

.caption {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.media-list .caption {
    text-align: left;
}

.media-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .media-grid-2 {
    grid-template-columns: 1fr;
  }
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    main {
        margin: 20px auto;
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 15px;
    }

    section {
        margin-bottom: 40px;
    }
}

/* A nicer “card” for embedded video */
.video-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive video sizing + centered */
.video-wrapper {
    width: min(900px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden; /* makes rounded corners apply to iframe */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Make iframe fill the wrapper */
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Optional: a little extra spacing if caption is enabled */
.video-card .caption {
    width: min(900px, 100%);
    margin-top: 12px;
}
