* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* Nav Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 35px;
  justify-content: center;
}

/* Gallery Container */
.gallery-section {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 4px 20px;  
}

.gallery-wrapper {
  max-width: 1000px;
  margin-top: 0; 
  padding: 5px 20px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flyer {
  display: flex;
  justify-content: center;
}

.flyer img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

/* Home Navigation (Desktop) */
.home-nav {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.home-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 60px;
  height: 60px;
  font-size: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.75);
  color: #fff;
  cursor: pointer;
}

.home-nav .left {
  left: -30px;
}

.home-nav .right {
  right: -30px;
}

/* Desktop */
@media (max-width: 1024px) {
  .gallery-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
  .flyer img {
    max-width: 90%;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .gallery-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .flyer img {
    max-width: 90%;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .gallery-wrapper {
    grid-template-columns: 1fr;
  }
  .flyer img {
    max-width: 90%;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
}

.modal-content img {
  max-width: 95vw;
  max-height: 90vh;
  margin-top: 65px;
  border-radius: 8px;
}

/* Modal Controls */
.modal-top-right {
  position: absolute;
  top: 55px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.close-btn,
.download-icon {
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  margin-top: 25px;
  border-radius: 50%;
  font-size: 15px;
  padding: 6px 6px;
  cursor: pointer;
  text-decoration: none;
}

.close-btn:hover,
.download-icon:hover{
  background: rgba(0,0,0,0.2);
}