/* Ensure proper rendering and touch zooming on mobile devices */
@viewport {
    width: device-width;
    initial-scale: 1.0;
  }
  
  /* General body styling */
  body {
    font-family: Hepta Slab, sans-serif;
    font-weight: 500;
    background: #efecdb;
    color: #5D4037;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
  }
  
  /* Apply box-sizing globally */
  * {
    box-sizing: border-box;
  }
  
  /* Hide scrollbar for webkit browsers */
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  
  ::-webkit-scrollbar-button {
    width: 0;
    height: 0;
  }
  
  /* External container styles */
  .external {
    overflow: hidden;
    height: 100vh;
  }
  
  /* Horizontal scroll wrapper styles */
  .horizontal-scroll-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vh;
    transform: rotate(-90deg) translate3d(0, -100vh, 0);
    transform-origin: right top;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    height: 100vw;
    perspective: 1px;
    transform-style: preserve-3d;
    padding-bottom: 10rem;
  }
  
  /* Image wrapper styles */
  .img-wrapper {
    transform: rotate(90deg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    transform-origin: center;
    transition: 1s;
  }
  
  .img-wrapper:hover {
    min-height: 65vh;
  }
  
  /* Image wrapper transformation variations */
  .slower {
    transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(0%) translateY(16vh);
  }
  
  .slower1 {
    transform: rotate(90deg) translateZ(-.25px) scale(1.05) translateX(0%) translateY(8vh);
  }
  
  .slower2 {
    transform: rotate(90deg) translateZ(-.3px) scale(1.3) translateX(0%) translateY(2vh);
  }
  
  .slower-down {
    transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(0%) translateY(16vh);
  }
  
  .faster {
    transform: rotate(90deg) translateZ(.15px) scale(0.8) translateX(0%) translateY(14vh);
  }
  
  .faster1 {
    transform: rotate(90deg) translateZ(.05px) scale(0.8) translateX(0%) translateY(10vh);
  }
  
  .fastest {
    transform: rotate(90deg) translateZ(.22px) scale(0.7) translateX(-10vh) translateY(-15vh);
  }
  
  .vertical {
    transform: rotate(90deg) translateZ(-.15px) scale(1.15) translateX(0%) translateY(0%);
  }
  
  .last {
    transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(25vh) translateY(-8vh);
  }
  
  /* Scroll info and header positioning */
  .scroll-info, header {
    position: absolute;
    left: 1rem;
  }
  
  header {
    bottom: 1rem;
  }
  
  .scroll-info {
    top: 1rem;
    display: flex;
    align-items: center;
  }
  
  /* Link styles */
  a {
    color: inherit;
    font-weight: 500;
    text-decoration: none; /* Remove underline from links */
  }
  
  /* Heading styles */
  h1 {
    font-weight: 300;
    font-size: 1rem;
  }
  
  /* Image wrapper styles */
  .img-wrapper a {
    overflow: hidden;
    display: block;
    padding: 1vh;
    background: #efecdb;
    box-shadow: 0 10px 50px #5f2f1182;
  }
  
  /* Image styles */
  img {
    max-width: 45vh;
    max-height: 50vh;
    transition: 0.5s;
    vertical-align: top;
    filter: saturate(40%) sepia(30%) hue-rotate(5deg);
  }
  
  /* Hover effect for images */
  a:hover img {
    filter: none;
  }
  
  /* Paragraph styles */
  p {
    margin: 0;
  }
  
  /* Icon styles */
  .icon svg {
    width: 50px;
    fill: currentcolor;
  }
  
  /* Responsive design adjustments */
  @media (max-width: 768px) {
    .horizontal-scroll-wrapper {
      width: 100vw;
      height: 100vh;
      transform: rotate(0deg) translate3d(0, 0, 0);
      padding-bottom: 5rem;
    }
  
    .img-wrapper {
      min-height: 50vh;
      transform: rotate(0deg) translateZ(0) scale(1) translateX(0) translateY(0);
    }
  
    .img-wrapper:hover {
      min-height: 70vh;
    }
  
    img {
      max-width: 80vw;
      max-height: 80vh;
    }
  
    .scroll-info {
      left: 0.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .horizontal-scroll-wrapper {
      padding-bottom: 3rem;
    }
  
    .img-wrapper {
      min-height: 60vh;
    }
  
    .scroll-info {
      left: 0.25rem;
    }
  }
  