* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f6f7;
}


  /* Header */
.header {
  text-align: center;
  text-transform: uppercase;
  padding: 32px;
  background: linear-gradient(135deg, #0a0a23, #1a1a40);
  color: #fff;
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(90deg, #ff9800, #ffc107, #ff9800);
  border-image-slice: 1;
  letter-spacing: 2px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 179, 0, 0.3);
}



/* Gallery Layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 10px;
}

/* Gallery Items */
.gallery-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  
}

/* Hover effect (optional) */
.gallery-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .gallery-item img {
    height: 200px;
  }
}
.hidden{
  display: none;
}

.lightbox{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content{
  position: relative;
  z-index: 2;
  text-align: center;
}

.lightbox-content img{
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox-content img.visible {
  opacity: 1;
}

.caption{
  color: white;
  margin-top: 10px;
  font-size: 1rem;
}
button.close, button.prev, button.next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 50%;
  position: fixed;
  z-index: 10000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

button.close {
  top: 20px;
  right: 40px;
}

button.prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

button.next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px #fdb347;
}


@media (max-width: 600px) {
  .gallery-item {
    aspect-ratio: 4/3; /* more rectangular layout on phones */
  }
}
