html {
  scroll-behavior: smooth;
}

.gallery-item {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#lightbox {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#lightbox.flex {
  opacity: 1;
}

.error-msg {
  display: none;
}

input.border-red-500 + .error-msg,
select.border-red-500 + .error-msg,
textarea.border-red-500 + .error-msg {
  display: block;
}

@media (max-width: 640px) {
  .gallery-item img {
    height: 250px;
  }

  #lightbox {
    padding: 8px;
  }

  #lightbox .relative {
    max-width: 100%;
    max-height: 80vh;
  }

  #lightbox img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
  }

  #lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  scroll-margin-top: 80px;
}
