@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --responsive-header-logo-width: 40%;
    --responsive-header-right-font-size: 0.67em;
    --responsive-header-icon-font-size: 1em;
    --responsive-navbar-toggler-font-size: 0.625rem;
    --responsive-navbar-toggler-color: var(--primary-color);
    --responsive-navbar-toggler-background: none;
    --responsive-navbar-toggler-border: none;
    --responsive-navbar-collapse-text-align: center;
    --responsive-news-article-flex: 0 0 100%;
    --responsive-news-article-max-width: 100%;
    --responsive-news-article-margin-bottom: 2rem;
    --responsive-news-article-margin-right: 0;
    --responsive-news-article-margin-left: 0;
    --responsive-about-band-members-flex-wrap: wrap;
    --responsive-about-band-members-justify-content: space-between;
    --responsive-about-band-member-flex: 0 0 48%;
    --responsive-about-band-member-margin-bottom: 1rem;
    --responsive-about-band-member-full-width: 100%;
    --responsive-about-band-member-half-width: 48%;
    --responsive-about-img-height: auto;
    --responsive-about-img-max-height: 60vh;
    --responsive-about-band-member-h4-span-display: inline;
    --responsive-about-band-member-h4-br-display: none;
}

/* iPhone size devices */
@media (max-width: 767px) {
    .header-logo {
        width: 40%; /* Reduce the logo size */
    }

    .header-left, .header-right {
        display: flex; /* Ensure left and right header sections are displayed */
        justify-content: center;
        align-items: center;
    }

    .header-center {
        flex: 1;
        justify-content: center;
    }

    .header-right a {
        font-size: 0.67em; /* Halve the size of the Webstore link */
    }

    .header-icon {
        font-size: 1em; /* Halve the size of the icons */
    }

    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-nav .nav-item {
        flex: 0 0 33.333%; /* Each item takes up 1/3 of the row */
        text-align: center;
        margin-bottom: 10px;
    }

    .album {
        flex: 0 0 100%; /* Each album takes up 100% of the row */
        max-width: 100%;
        margin-bottom: 20px;
    }

    .album .card {
        margin-bottom: 20px;
    }

    .modal-fullscreen .modal-body img {
        max-height: 40vh; /* Smaller image height for modals */
    }

    .header .container {
        flex-direction: row; /* Keep header items in a row */
        justify-content: space-between;
        align-items: center;
    }

    .header-center {
        margin-bottom: 0;
    }

    .navbar-toggler {
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 0.625rem; /* Half the original size */
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .navbar-toggler-text {
        text-align: center;
        width: 100%;
    }

    .navbar-collapse {
        text-align: center;
    }
}

/* Large devices (min-width: 769px) */
@media (min-width: 769px) {
    .header-logo {
        width: 80%; /* Original size */
    }

    .header-left {
        justify-content: flex-start; /* Align left section to the start */
    }

    .header-right {
        justify-content: flex-end; /* Align right section to the end */
    }

    .header-left, .header-right {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navbar-nav {
        flex-direction: row;
        justify-content: center; /* Center the navbar menu */
    }

    .album {
        flex: 0 0 calc(50% - 1rem); /* Each album takes up 50% of the row minus the gap */
        max-width: calc(50% - 1rem);
        margin-bottom: 40px;
        margin-right: 0.5rem; /* Add gap between album cards */
        margin-left: 0.5rem; /* Add gap between album cards */
    }

    .album .card {
        margin-bottom: 40px;
    }

    .modal-fullscreen .modal-body img {
        max-height: 60vh; /* Original image height for modals */
    }

    .header .container {
        flex-direction: row;
        align-items: center;
    }

    .header-center {
        margin-bottom: 0;
    }

    #order .col-md-12.text-center img {
        width: 60%; /* Set the width to 2/3 of the container */
        height: auto;
    }
    .news-article {
        flex: 0 0 calc(50% - 1rem); /* Each article takes up 50% of the row minus the gap */
        max-width: calc(50% - 1rem);
        margin-bottom: 2rem;
        margin-right: 0.5rem; /* Add gap between news articles */
        margin-left: 0.5rem; /* Add gap between news articles */
    }
}

/* Small devices (max-width: 768px) */
@media (max-width: 768px) {
    .news-article {
        flex: 0 0 100%; /* Each article takes up 100% of the row */
        max-width: 100%;
        margin-bottom: 2rem;
        margin-right: 0; /* Remove right margin */
        margin-left: 0; /* Remove left margin */
    }

    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-nav .nav-item {
        flex: 0 0 33.333%; /* Each item takes up 1/3 of the row */
        text-align: center;
        margin-bottom: 10px;
    }

    #about .band-members {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    #about .band-member {
        flex: 0 0 48%; /* Each member takes up 48% of the row */
        margin-bottom: 1rem; /* Add space between members */
    }
    #about .band-member:nth-child(1),
    #about .band-member:nth-child(3),
    #about .band-member:nth-child(5) {
        flex: 0 0 100%; /* Full width for Lee Deane, Sam, and Mark */
    }
    #about .band-member:nth-child(2),
    #about .band-member:nth-child(4) {
        flex: 0 0 48%; /* Half width for Toby and Alex */
    }

    #about .band-members {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: space-between; /* Distribute space evenly */
    }
    #about .band-member {
        flex: 0 0 48%; /* Each member takes up 48% of the row */
        margin-bottom: 1rem; /* Add space between members */
    }

    #about .band-members {
        flex-direction: column; /* Change to column layout */
        width: 100%; /* Match the width of the image above */
    }
    #about .band-member {
        margin-bottom: 1rem; /* Add space between members */
    }

    #about img {
        height: auto; /* Ensure the image maintains its aspect ratio */
        max-height: 60vh; /* Increase the maximum height */
    }

    #about .band-member h4 span {
        display: inline; /* Combine spans to display name on one line */
    }
    #about .band-member h4 br {
        display: none; /* Hide <br> elements */
    }

    .header-right a {
        display: none; /* Hide the Main Website link on small devices */
    }
}

/* Medium devices (min-width: 769px and max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-logo {
        width: 80%; /* Same size as large devices */
    }

    .header-left {
        justify-content: flex-start; /* Align left section to the start */
    }

    .header-right {
        justify-content: flex-end; /* Align right section to the end */
    }

    .header-left, .header-right {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navbar-nav {
        flex-direction: row;
        justify-content: center; /* Center the navbar menu */
    }

    .album {
        flex: 0 0 calc(50% - 1rem); /* Each album takes up 50% of the row minus the gap */
        max-width: calc(50% - 1rem);
        margin-bottom: 40px;
        margin-right: 0.5rem; /* Add gap between album cards */
        margin-left: 0.5rem; /* Add gap between album cards */
    }

    .album .card {
        margin-bottom: 40px;
    }

    .modal-fullscreen .modal-body img {
        max-height: 60vh; /* Original image height for modals */
    }

    .header .container {
        flex-direction: row;
        align-items: center;
    }

    .header-center {
        margin-bottom: 0;
    }

    #order .col-md-12.text-center img {
        width: 60%; /* Set the width to 2/3 of the container */
        height: auto;
    }

    .news-article {
        flex: 0 0 calc(50% - 1rem); /* Each article takes up 50% of the row minus the gap */
        max-width: calc(50% - 1rem);
        margin-bottom: 2rem;
        margin-right: 0.5rem; /* Add gap between news articles */
        margin-left: 0.5rem; /* Add gap between news articles */
    }

    .navbar-nav {
        justify-content: center; /* Center the navbar menu */
    }

    .navbar-toggler {
        display: none; /* Hide the navbar toggle button */
    }

    .navbar-collapse {
        display: flex !important; /* Ensure the navbar is always displayed */
    }
}

/* Large devices (min-width: 769px) */
@media (min-width: 769px) {
    .news-article {
        flex: 0 0 calc(50% - 1rem); /* Each article takes up 50% of the row minus the gap */
        max-width: calc(50% - 1rem);
        margin-bottom: 2rem;
        margin-right: 0.5rem; /* Add gap between news articles */
        margin-left: 0.5rem; /* Add gap between news articles */
    }
}