/* Styles that only apply to case001.html */

body {
  background-color: #FFFFFF;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(#root *, #root *::before, #root *::after) {
  border-style: solid;
  border-width: 0;
  border-color: #e5e7eb;
}

/* Base class for elements that will animate */
.reveal-base {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* Active state when element is in view */
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation from below - starts further down */
.reveal-from-below {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* Stagger effect using transform to maintain gap */
.stagger-up {
  transform: translateY(-120px);
}

@media (min-width: 768px) {
  .stagger-up {
    transform: translateY(-180px);
  }
}

/* Parallax container for intro image */
.sticky-image-container {
  position: relative;
  overflow: visible;
  z-index: 10;
}

/* Rellax parallax wrapper */
.rellax-container {
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0); /* Hardware acceleration */
}

/* Parallax image with scale for zoom effect */
.parallax-image {
  width: 110%; /* Scale up slightly */
  height: 110%;
  margin: -5%; /* Center the scaled image */
  transform-origin: center center;
  will-change: transform;
}

.rellax {
  transform-origin: center center;
}

/* Photo frame to ensure gaps between images - completely invisible */
.photo-frame {
  padding: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .photo-frame {
    padding: 20px;
  }
}

/* Special handling for rounded corner images - use margin, no padding */
.photo-frame.has-rounded-corner {
  padding: 0 !important;
  margin: 12px;
  background: transparent;
  border: none;
}

@media (min-width: 768px) {
  .photo-frame.has-rounded-corner {
    margin: 20px;
  }
}

/* Fix for rounded corners on images */
.rounded-corner-img {
  overflow: hidden;
  display: block;
  border: none;
}

img {
  display: block;
  border: none;
}
