/* Gallery Section CSS */

.gallery-section {
  background: linear-gradient(135deg, rgba(245, 245, 245, 0.5) 0%, rgba(248, 247, 240, 0.3) 100%);
}

.gallery-subtitle {
  font-size: 18px;
  color: var(--body-color);
  margin-top: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 280px;
}

@media (max-width: 767px) {
  .gallery-image-wrapper {
    height: 240px;
  }
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 94, 32, 0.85) 0%,
    rgba(13, 71, 66, 0.9) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h4 {
  font-weight: 600;
  font-size: 22px;
  line-height: 32px;
  color: var(--theme-color-2);
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .overlay-content h4 {
    font-size: 18px;
  }
}

.overlay-content p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .overlay-content p {
    font-size: 14px;
  }
}

.gallery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--theme-color-2);
  color: var(--theme-color-3);
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.gallery-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--theme-color-2);
  transform: scale(1.1);
}

/* Gallery Button Wrapper */
.gallery-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0px;
  padding-top: 30px;
}

@media (min-width: 768px) and (max-width: 991px) {
  .gallery-button-wrapper {
    margin-top: 40px;
    padding-top: 20px;
  }
}

@media (max-width: 767px) {
  .gallery-button-wrapper {
    margin-top: 30px;
    padding-top: 20px;
  }
}

.gallery-button-wrapper .e-primary-btn {
  background: var(--theme-color-2);
  color: var(--theme-color-3);
  border: 2px solid var(--theme-color-2);
  padding: 5px 5px 5px 25px;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}

@media (max-width: 767px) {
  .gallery-button-wrapper .e-primary-btn {
    font-size: 16px;
    padding: 14px 28px;
  }
}

.gallery-button-wrapper .e-primary-btn:hover {
  background: var(--theme-color-3);
  color: var(--white-color);
  border-color: var(--theme-color-3);
}

.gallery-button-wrapper .e-primary-btn .icon-wrap {
  background: var(--theme-color-3);
  color: var(--theme-color-2);
}

.gallery-button-wrapper .e-primary-btn:hover .icon-wrap {
  background: var(--white-color);
  color: var(--theme-color-3);
}
