/* Gallery section */
#gallery-section {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 50px 0;
  box-sizing: border-box;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  padding: 0;
  background-color: #fff;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background-color: #f8f8f8;
  position: relative;
}

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

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

.more-container {
  text-align: center;
  margin: 30px 0;
}

.load-more-btn {
  background: none;
  border: 1px solid #eee;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:active {
  background-color: #f9f9f9;
  transform: scale(0.98);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 35px;
  color: #333;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  z-index: 2100;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.arrow:hover {
  opacity: 1;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 35px;
  color: #333;
  cursor: pointer;
  line-height: 1;
  z-index: 2200;
}

.caption {
  margin-top: 25px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #999;
  font-family: sans-serif;
}
