/* Gallery Demo - Fan-style montage styles */

.gallery-page .gallery-header {
  position: relative;
  padding: 6rem 0 2rem;
  overflow: hidden;
}

.montage-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.montage-fan {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.montage-image {
  position: relative;
  flex: 1;
  margin: 0 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.montage-image.montage-left {
  transform: rotate(-15deg) translateX(-20px);
  transform-origin: bottom center;
}

.montage-image.montage-center {
  transform: scale(1.05);
  transform-origin: bottom center;
  z-index: 2;
}

.montage-image.montage-right {
  transform: rotate(15deg) translateX(20px);
  transform-origin: bottom center;
}

.montage-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.montage-image:hover img {
  transform: scale(1.05);
}

.gallery-page .gallery-header h1 {
  position: relative;
  z-index: 3;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  color: #3b3228;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-page .gallery-header .tagline {
  position: relative;
  z-index: 3;
  font-size: 1.2rem;
  font-style: italic;
  color: #8a7a68;
  margin-bottom: 1.5rem;
}