/* Gallery Page Specific Styles */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  padding: 0 0 6rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background-color: var(--border-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: 1 / 2.1;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2.1 / 1;
}

.gallery-item .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 30px 30px 0 0;
  transition: transform 0.5s ease;
  background-size: cover;
  background-position: center;
}

.gallery-item:hover .image-placeholder {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px 30px 0 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.gallery-overlay span {
  color: var(--white);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }
}
