.editions {
  text-align: center;
  padding: 60px 1rem;
}

.editions h1 {
  font-family: 'Alice', serif;
  font-size: 45px;
  letter-spacing: 2.25px;
  text-transform: uppercase;
  color: #E7BF71;
  margin-bottom: 2rem;
}

.editions p {
  text-align: center;
  font: normal normal normal 17px/20px Alice;
  letter-spacing: 0.26px;
  color: #FFFFFF;
  opacity: 1;
  max-width: 70%;
  margin: 0 auto;
}

.edition-columns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.column {
  flex: 1;
  display: flex;
  justify-content: center;
  /* horizontally center content */
  align-items: center;
  /* vertically center content */
}

.image-column img {
  max-width: 70%;
  height: auto;
  display: block;
}

.image-column {
  flex: 0 0 40%;
}

.text-column {
  flex: 0 0 55%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.edition-title {
  font: normal normal normal 20px/25px Alice;
  letter-spacing: 0.2px;
  color: #FFC403;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 1rem;
}

.edition-description {
  text-align: left;
  color: #FFFFFF;
  font: normal normal normal 15px/20px Alice;
  letter-spacing: 0.23px;
  opacity: 1;
  margin: 1.5rem auto 1rem auto;
  width: 100%;
}

.more-info-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #e8c071;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: 'Alice', serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.more-info-btn:hover {
  background-color: #d8ae4f;
}

.event-section {
  text-align: center;
  padding: 3rem 1rem;
}

.back-button {
  background-color: #e8c071;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-family: 'Alice', serif;
  font-size: 16px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #FFC400;
  color: black;
}

.event-posters {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.event-posters img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: 0;
  cursor: pointer;
}

.event-header {
  text-align: left;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.event-description {
  text-align: left;
  font: normal normal normal 15px/20px Alice;
  letter-spacing: 0.23px;
  color: #FFFFFF;
  opacity: 1;
}

.event-section p {
  text-align: left;
  color: #FFFFFF;
  font: normal normal normal 15px/20px Alice;
  letter-spacing: 0.23px;
  opacity: 1;
  margin: 1.5rem auto 1rem auto;
  max-width: 900px;
  width: 100%;
  padding: 0 1rem;
}

.swiper {
  width: 100%;
  padding: 10px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.swiper-slide img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 6px;
  margin: 0;
}

.event-gallery-swiper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: #FFC400;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 6px #000, 0 0 6px #000;
  transition: transform 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.2);
  /* Zoom in */
}

.image-modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-modal.hidden {
  display: none;
}

.image-modal .modal-content {
  max-height: 100vh;
  max-width: 100vw;
  width: auto;
  height: auto;
  object-fit: contain;
}


.close-modal {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #bbb;
}

.event-gallery {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
}

/* Modal Styles */
.gallery-modal {
    display: none; 
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;     
    justify-content: center; 
}

/* New class to show the modal */
.gallery-modal.is-visible {
    display: flex; 
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* this helps preserve aspect ratio */
}

.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}


.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover, .close:hover {
    color: #ccc;
}

@media (max-width: 768px) {
  .edition-columns {
    flex-direction: column;
    display: block;
    /* Override flex layout */
    text-align: center;
  }

  .image-column,
  .text-column {
    width: 100%;
    flex: none;
    margin-bottom: 1.5rem;
  }

  .image-column img {
    max-width: 90%;
    margin: 0 auto;
  }

  .text-column {
    align-items: center;
    text-align: center;
  }

  .edition-description {
    text-align: center;
    padding: 0 1.5rem;
  }

  .contact-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .contact-item {
    width: 100%;
    text-align: center !important;
  }
}