html {
  scroll-behavior: smooth;
}

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1533743983669-94fa5c4338ec?ixlib=rb-4.0.3');
  background-size: cover;
  background-position: center;
}

.drawing-bg {
  background-color: #f1f5f9; /* slate-100 */
}

.custom-shape-divider-bottom-1688386754 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1688386754 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}

.custom-shape-divider-bottom-1688386754 .shape-fill {
  fill: #f0fdf4;
}

/* Masonry columns for responsive breakpoints */
#masonry-gallery {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 640px) {
  #masonry-gallery {
    column-count: 2 !important;
  }
}

@media (min-width: 1024px) {
  #masonry-gallery {
    column-count: 3 !important;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Add to existing styles */
.masonry-gallery {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-gallery {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
}

.overlay {
  opacity: 0;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Masonry layout styles */
.masonry-gallery {
  column-count: 1;
  column-gap: 1rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-gallery {
    column-count: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.download-icon {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.gallery-item:hover .download-icon {
  transform: translateY(2px);
}

.expand-icon img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s;
}

.expand-icon:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(22, 101, 52, 0.5));
}

#expand-modal {
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.expand-icon img,
.download-icon i,
.download-icon svg {
  width: 2rem;
  height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-block;
  vertical-align: middle;
  border-radius: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s, filter 0.2s;
}

.expand-icon:hover img,
.download-icon:hover i,
.download-icon:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(22, 101, 52, 0.5));
}

/* Styles for gallery navigation links */
.gallery-filter-link {
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

@media (min-width: 641px) {
  .gallery-filter-link {
    background-color: #ffffff;
    color: #64748b; /* slate-500 */
    padding: 0.5rem 1.5rem;
    border-radius: 9999px; /* Fully rounded */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  .gallery-filter-link:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #334155; /* slate-700 */
  }
  /* Active state for selected link on desktop */
  .gallery-filter-link.active {
    background-color: #64748b; /* slate-500 */
    color: #fff;
  }
}

@media (max-width: 640px) {
  .gallery-filter-link {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
  }
  .gallery-filter-link:hover {
    color: #334155; /* slate-700 */
    text-decoration: underline;
  }
  .gallery-nav-container {
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 0; /* No extra gap */
    font-size: 0;
  }
  .mobile-text {
    font-size: 0.875rem; /* Reset font size for text */
  }
  /* Active state for selected link on mobile */
  .gallery-filter-link.active {
    background-color: #64748b; /* slate-500 */
    color: #fff;
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
  }
  /* Hide separator on the last item */
  .gallery-filter-link:last-child .mobile-separator {
    display: none;
  }
}
