/* Simple responsive styles for Bad Trips website */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: #333;
}

.bio {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.events {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.events h2 {
  margin-bottom: 1rem;
}

.events ul {
  list-style: none;
  padding: 0;
}

.events li {
  margin-bottom: 0.5rem;
}

.hero {
  text-align: center;
  margin: 2rem 0;
}

.hero img {
  width: 90%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Album cover gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery-item {
  flex: 0 0 400px;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Ensure linked covers fill their container when wrapped in an <a> */
.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* On mobile, show hero section above bio section */
@media (max-width: 600px) {
  main {
    display: flex;
    flex-direction: column;
    /* small side gutter on mobile */
    padding: 0 1rem;
  }
	.hero {
	  order: 1;
	}
	.bio {
	  order: 2;
	  margin: 0;
	}
	.bio p {
	  margin: 0;
	}
	.events {
	  order: 3;
	  margin: 0;
	}
	.gallery {
	  order: 4;
	  margin: 2rem 0;
	  /* ensure side gutter around gallery on mobile */
	  padding: 0 1rem;
	}
}

/* On desktop, make hero image width match two gallery images */
@media (min-width: 601px) {
  .gallery {
    max-width: calc(2 * 400px + 1rem);
  }
  .hero img {
    width: auto;
    max-width: calc(2 * 400px + 1rem);
  }
}
