body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: helvetica;
}

body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 32px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

h1 a {
    color: inherit;
    text-decoration: none;
    font-weight: lighter;
    font-size: 16px;
}

footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #333;
    flex-shrink: 0;
}

footer a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

footer a:hover {
    color: #1da1f2;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    margin: 0;
    padding: 0;
}

iframe {
    width: 100%;
    height: 120px;
    border: none;
}

header {
    margin-top: 0;
    padding-top: 0;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.2em;
}

header nav ul {
    margin-top: 0;
    padding-top: 0;
}

h1 {
    width: 100%;
    text-align: center;
    margin: 0.2em 0 0.2em 0;
    font-size: 24px;
}

.band-image {
    margin-bottom: 0.2em;
    margin-top: 0;
    display: block;
}

.logo-crop {
    width: 300px;
    height: 150px; /* Adjust based on your logo's aspect ratio; 50% of 300px if original is 300x150 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 32px;
}

.logo-img {
    width: 300px;
    height: 150px;
    object-fit: cover;
    object-position: center 50%;
    display: block;
    margin: 0 auto;
}

main h1 {
    font-size: 16px;
}

main h1 a[href^="mailto:"] {
    font-size: 16px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    margin: 40px 0;
}

.video-grid iframe {
    aspect-ratio: 16 / 9;
    width: auto;
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

@media (min-width: 800px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin: 40px auto; /* Center the grid horizontally */
        max-width: 1100px; /* Adjust as needed for your preferred width */
        width: 100%;
        justify-items: center;
    }
    .video-grid iframe {
        width: 100%;         /* Fill the grid column */
        max-width: 500px;    /* Prevents from getting too wide */
        aspect-ratio: 16 / 9;
        height: auto;        /* Let height be determined by aspect-ratio */
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .video-grid iframe:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    }
}

@media (max-width: 600px) {
  html, body {
    font-size: 18px;
    min-height: 100vh;
    overflow-x: hidden;
  }
  nav ul {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }
  nav ul li {
    display: inline;
  }
  header {
    padding-top: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .logo-crop, .logo-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-width: 300px;
    height: auto;
  }
  header h1 {
    font-size: 22px;
    font-weight: normal;
    margin: 0.2em 0 0.2em 0;
    width: 100%;
    text-align: center;
  }
  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  nav ul {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }
  main {
    padding: 12px 4px 70px 4px; /* bottom padding for footer */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .bandcamp-container, .logo-crop, .logo-img, .band-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  iframe {
    width: 100%;
    height: 100px;
  }
  footer {
    font-size: 18px;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    justify-content: center;
    z-index: 100;
    background-color: #333;
    padding: 15px 0;
  }
  .logo-crop {
    margin-top: 32px !important;
  }
}

.bit-widget-container {
  margin-top: 10px;
}

.bit-widget-container,
.bit-widget-container > * {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

main {
  padding-bottom: 10px;
}

footer {
  margin-top: 0;
}

.bandcamp-widget-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  margin-top: 10px;
}

.bandcamp-widget {
  width: 100%;
  max-width: 700px;
  min-width: 250px;
  height: 307px;
  /* Optionally, use aspect-ratio for better scaling: */
  aspect-ratio: 700 / 307;
}

@media (max-width: 500px) {
  .bandcamp-widget {
    height: 200px;
    min-width: 0;
  }
  .bandcamp-widget-container {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }
  main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  header, nav {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .bandcamp-widget-container {
    margin-top: -100px !important; /* Adjust value as needed */
  }
}

@media (max-width: 600px) {
  .bandcamp-widget {
    height: 400px !important; /* or another value that fits your needs */
  }
}

.press-section {
    text-align: center;
    margin: 40px auto 60px auto;
    max-width: 40vw;
    width: 100%;
}

@media (max-width: 600px) {
    .press-section {
        max-width: 90vw;
    }
}

.press-quote {
    margin-bottom: 2em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5em;
}

.press-source {
    font-weight: normal;
    display: inline;
    margin-top: 0;
    margin-left: 0.5em;
}

footer a img[src$="linktree.svg"] {
    height: 24px;
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    filter: invert(1) brightness(2);
    margin: -5px 0 0 -3px; /* up 2px, left 2px */
    padding: 0;
    transition: filter 0.2s;
}

footer a img[src$="apple-music.png"] {
    height: 24px;
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    margin: -6px 0 0 -2px; /* up 2px, left 2px */
    padding: 0;
    transition: filter 0.2s;
}

footer a:hover img[src$="linktree.svg"] {
    filter: invert(62%) sepia(99%) saturate(749%) hue-rotate(163deg) brightness(95%) contrast(92%);
    /* Matches the hover color of other icons */
}