/* ==============================
   General Styling
   ============================== */
body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    text-align: center;
    transition: all 0.3s ease-in-out;
    overflow-x: hidden;
}

/* ==============================
   Header Navigation
   ============================== */
header {
    background: #2d2d2d;
    color: #f4f4f4;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 5px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
}

.header-navigation button {
    background: #5a5a5a;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: none;
    padding: 8px 10px;
    margin: 3px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-navigation button:hover {
    background: #3d3d3d;
    transform: scale(1.05);
}

/* ==============================
   Landing Page Styling
   ============================== */
.main-content {
    margin-top: 180px;
    transition: margin-top 0.3s ease-in-out;
}

.landing-content {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-content h2 {
    font-size: 26px;
    color: #222;
    margin-bottom: 15px;
}

.landing-content p.large-text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.main-image {
    width: 90%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 180px auto 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: margin 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .main-image {
        width: 95%;
        max-width: 400px;
        margin-top: 200px; /* Ensuring spacing below the header in mobile */
    }

    .main-content {
        margin-top: 200px; /* Adjusted for header spacing */
    }

    .header-hidden + .main-content {
        margin-top: 120px; /* Adjusted when header is hidden */
    }
}
/* ==============================
   Picture Gallery Styling
   ============================== */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    max-width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    margin-top: 140px;
}

.gallery-container a {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-container a img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* ==============================
   Video Gallery Styling
   ============================== */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    max-width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    margin-top: 140px;
}

.video-wrapper {
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ==============================
   Music Gallery Styling
   ============================== */
.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin-top: 140px;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
    max-width: 90%;
    margin: auto;
    scroll-behavior: smooth;
    justify-content: center;
    align-items: center;
}

.audio-tile {
    background: #f4f4f4;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.audio-tile:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

/* ==============================
   Footer Styling
   ============================== */
footer {
    background: #2d2d2d;
    color: #f4f4f4;
    padding: 10px;
    margin-top: 15px;
    font-size: 14px;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px 10px 0 0;
    width: 100%;
}

/* ?? YouTube Embed Styles */
.youtube-container {
    text-align: center;
    width: 100%;
    max-width: 100vw; /* Ensures full width */
    margin: 20px auto;
    padding: 0 10px;
}

/* Unique YouTube wrapper */
.youtube-video-wrapper {
    position: relative;
    width: 80%; /* Default width for desktops */
    max-width: 1200px; /* Prevents excessive stretching */
    margin: 0 auto;
    padding-bottom: 45%; /* Aspect ratio for wider screens */
    height: 0;
    overflow: hidden;
}

/* Make YouTube iframe fill the container */
.youtube-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .youtube-video-wrapper {
        width: 90%;
        padding-bottom: 56.25%;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .youtube-video-wrapper {
        width: 95%;
        padding-bottom: 56.25%;
    }
}

/* Video Gallery Styles */
.video-wrapper {
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}
