/* Base styles */
p {
  margin-bottom: var(--padding);
}

/* img {
  margin-bottom: var(--small-padding);
} */

.gallery-item {
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  max-height: 500px; /* Fixed height for consistent look */
  /* object-fit: cover; */
  padding: 0;
}

.gallery-item-caption {
  margin-top: 0.5rem;
  padding: 0 0.5rem;
  font-size: var(--caption-font-size, 0.875rem);
  font-family: 'Times New Roman', Times, serif;
  color: var(--color-text);
}

button.tickets a {
  text-decoration: none;
}

ul {
  max-width: 100vw;
  padding-block-end: 1rem;
}

h3 {
  padding: 0;
}

li {
  padding-bottom: 0;
}

/* Layout */
.main-content {
  display: grid;
  grid-template-areas:
    "title"
    "content";
  padding: 0;
  gap: 2rem;
}

.page-title {
  grid-area: title;
  position: relative;
  display: block;
  padding-top: 2rem;
  padding-left: 2rem;
}

.event-wrapper {
  position: relative;
  display: block;
  grid-area: content;
  padding-block-end: 3em;
}
.event-wrapper img {
  max-width: 50vw;
}
.event-wrapper p {
  max-width: 100vw;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Desktop layout */
@media screen and (min-width: 45rem) {
  .main-content {
    padding: 0;
    max-width: 100%;
  }
.page-title {
  grid-area: title;
     max-width: 800px;
    margin: 0 auto;
    position: relative;
  display: block;
  padding-top: 2rem;
}

}
/* Gallery styling */
figure.gallery {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

figure.gallery > ul {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  width: max-content;
}

figure.gallery li {
  padding: 0;
  flex: 0 0 auto;
  /* Fixed width for each image container */
  /* width: 400px;  */
}
.gallery-item {
  margin: 0;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  max-height: 300px; /* Fixed height for consistent look */
  /* object-fit: cover; */
  padding: 0;
}
.event-wrapper a{
  text-decoration: underline;
}


/* .footer {
} */

 /* .grid > .column {
  margin-bottom: span var(--gutter);
  grid-column: span var(--columns);
 } */

 /* DESKTOP */
@media screen and (min-width: 60rem) {

  li {
    padding-bottom: 1rem;
  }
  /* .grid-event {
    grid-template-columns: repeat(auto-fit, minmax(100px, 200px)); 
  } */

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Default mobile */
  gap: 1rem; /* Space between columns */
}
.event-wrapper p {
  max-width: 50vw;
padding-left: 2rem;
}
}