.gallery-section {
  padding: 60px 20px;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--color-background-light);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  padding: 40px;
}

.gallery-title {
  font-size: 28px;
  color: var(--text-heading);
  text-align: center;
  font-weight: bold;
  margin: 0;
}

.gallery-underline {
  display: block;
  width: 30%;
  margin: 4px auto 20px auto;
  height: 3px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-small);
  margin-top: 4px;
}

.gallery-description {
  text-align: center;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 30px;
}

.gallery-description p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  height: 200px;
  border-radius: var(--radius-medium);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-main);
  box-shadow: var(--transition-main);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(249, 248, 243, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  max-width: 100%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-medium);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--text-light);
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: var(--color-accent);
}

/* Lightbox Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-primary-dark);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.lightbox-arrow:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-left {
  left: 40px;
}

.lightbox-arrow-right {
  right: 40px;
}
