/* Reset margin/padding and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Make html & body take full viewport */
  html, body {
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Allow vertical scrolling */
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  /***************** Header  ****************/

  .name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 400; 
    font-style: italic;
    color: white;
    margin: 0;
    letter-spacing: 0.05em;
  }

  .profession {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 4vh;
    color: white;
    letter-spacing: 0.1em;
    margin: 0.3em 0 0;
    text-transform: lowercase;
  }

  /***************** Plus Menu  ****************/

  .plus-menu {
    position: fixed;
    top: 5vh;
    right: 3vw;
    z-index: 999;
    display: flex;
    gap: 1%;
    flex-direction: row-reverse;
    align-items: flex-end;
    font-family: 'DM Serif Display', sans-serif;
  }
  
  .plus-toggle {
    font-size: 8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .menu-items {
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .plus-menu:hover .menu-items {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  
  .plus-menu:hover .plus-toggle {
    transform: rotate(180deg);
  }
  
  .menu-items a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 2rem;
    transition: background 0.2s;
    white-space: nowrap;
  }
  
  .menu-items a:hover {
    background-color: rgba(255,255,255,0.2);
  }  
  
/***************** Ripple JS  ****************/

  /* For your ripple container */
  .ripple-box {
    width: 100vw;           /* Full viewport width */
    height: 100vh;          /* Full viewport height */
    background-size: cover; /* Cover whole area */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Prevent tiling */
    scroll-snap-align: start;
    /* margin: 0;  */             /* No margin */
    display: flex;         /* Ensure block-level for sizing */
    flex-direction: row; /* for portrait-duo */
    position: relative;
    overflow: hidden;
    /* object-fit: cover; */      /* For images, but not needed for background */
    /* border: 2px solid red;  *//* temporary */
  }

/***************** Title h1  ****************/

.hero-title {
  position: absolute;
  top: 50vh;
  left: 55%;
  transform: translate(-30%, -30%);
  color: white;
  z-index: 10;
  text-align: center;
  white-space: nowrap;
}

.ripple-box {
  position: relative; /* Ensure absolute children are positioned within */
}

.ripple-box h1 {
  position: absolute;
  bottom: 10px;
  right: 10px;
  margin: 0;
  color: white;
  z-index: 10;
  font-size: 10vh;
  background-color: transparent;
  white-space: nowrap;
  font-family: 'DM Serif Display', serif;
}
  
/***************** Landscape ****************/

/* Landscape single background */
.ripple-box.landscape {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

/* Specific hero image box */
.ripple-box.landscape.hero {
    background-image: url('../images/hero_stargate.jpg');
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  .ripple-box.landscape.abstract {
    background-image: url('../images/abstract/l/007.jpg');
  }
  
.ripple-box.landscape.nightlife {
    background-image: url('../images/hero_glory_canon.jpg');
  }

.ripple-box.landscape.fashion {
    background-image: url('../images/fashion/l/001.jpg');
  }

/***************** Portrait  ****************/

/* Side-by-side portrait layout */
.portrait-duo {
    position: relative; /* for positioning h1 */
    display: flex;
    flex-direction: column; /* stack h1 and portraits vertically */
    height: 100vh;
  }
  
.portrait-wrapper {
    flex: 1; /* fill remaining space */
    display: flex;
    flex-direction: row; /* keep portraits side by side */
  }
  
.portrait {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }

.ripple-box.portrait-duo .portrait1 {
    background-image: url('../images/portraits/p/001.jpg');
  }

.ripple-box.portrait-duo .portrait2 {
    background-image: url('../images/portraits/p/002.jpg');
  }

.ripple-box.portrait-duo .studio1 {
    background-image: url('../images/studio/p/001.jpg');
  }

.ripple-box.portrait-duo .studio2 {
    background-image: url('../images/studio/p/002.jpg');
  }

.ripple-box.portrait-duo .street1 {
    background-image: url('../images/street/p/001.jpg');
  }

.ripple-box.portrait-duo .street2 {
    background-image: url('../images/street/p/002.jpg');
  }

.ripple-box.portrait-duo .travel1 {
    background-image: url('../images/travel/p/001.jpg');
  }

.ripple-box.portrait-duo .travel2 {
    background-image: url('../images/travel/p/002.jpg');
  }

.ripple-box.landscape.prints {
  background-color: black;
}

/***************** About  ****************/

.about-overlay {
  position: fixed;
  top: 15vh; /* 15% from top */
  right: -35vw; /* hidden to the right */
  width: 30vw;
  height: 70vh;
  background: rgba(172, 169, 169, 0.416);
  color: white;
  z-index: 9999;
  transition: right 0.6s ease;
  padding: 2rem;
  overflow-y: auto;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* disable scroll to allow vertical centering */
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-overlay.active {
  right: 2vw; /* slide into view with a small padding */
}

#close-about {
  margin-top: 2rem;
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#close-about:hover {
  background: white;
  color: black;
}

/***************** Gallery  ****************/

#gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* for ripples */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* required for ripples */
}

#gallery-overlay.hidden {
  display: none;
}

#gallery-image-wrapper {
  position: relative;
  max-width: 80vw;
  max-height: 90vh;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1s ease;
}

.bg-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg-image-layer.active {
  opacity: 1;
  z-index: 1;
}

.teaser {
  position: absolute; /* or absolute, depending on layout */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;  /* full viewport width */
  height: 100vh; /* full viewport height */
  pointer-events: none; /* optional if you don't want it to interfere with clicks */
  font-family: 'DM Serif Display', serif;
}

.ripple-box.landscape.prints p {
  font-size: 15vh;
  margin: 0;
  color: white;
  font-style: oblique;
  text-align: center;
}

/* ======= Mobile Styles ======= */
@media (max-width: 600px) {

  .name {
    font-size: 5vh;
    letter-spacing: 0.02em;
  }

  .profession {
    font-size: 3vh;
  }

  .ripple-box {
    width: 100vw;           
    height: 87vh;         /* Make for URL & navigation space */
  }
  /* Make html & body take full viewport */
  .plus-menu {
    flex-direction: column;
    align-items: flex-end;
  }

  .menu-items {
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(10px);
  }

  .plus-menu:hover .menu-items {
    transform: translateY(0);
  }

  .about-overlay {
    top:3vh;
    width: 85vw;
    height: 80vh;
    left: -90vw; /* move almost completely off-screen */
  }

  .about-overlay.active {
    left: 1vw; /* slide into view with a small padding */
  }

  .about-content {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .about-content p {
    margin-bottom: 1rem;
  }  

  .hero-title {
    left: 33%;
    width: 95vw;
  }

  .ripple-box.landscape.hero {
    background-image: url('../images/abstract/p/026.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .ripple-box.landscape.abstract {
    background-image: url('../images/abstract/p/025.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .ripple-box.landscape.nightlife {
    background-image: url('../images/nightlife/p/031.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .ripple-box.landscape.fashion {
    background-image: url('../images/fashion/p/001.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .ripple-box.portrait-duo .portrait-wrapper.portraits .portrait1, 
  .ripple-box.portrait-duo .portrait-wrapper.portraits .portrait2,
  .ripple-box.portrait-duo .portrait-wrapper.street .street1,
  .ripple-box.portrait-duo .portrait-wrapper.street .street2,
  .ripple-box.portrait-duo .portrait-wrapper.travel .travel1,
  .ripple-box.portrait-duo .portrait-wrapper.travel .travel2 {
    display: none;
  }  

  .ripple-box.portrait-duo .portrait-wrapper.portraits {
    background-image: url('../images/portraits/p/001.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .ripple-box.portrait-duo .portrait-wrapper.street {
    background-image: url('../images/street/p/001.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .ripple-box.portrait-duo .portrait-wrapper.travel {
    background-image: url('../images/travel/p/002.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #gallery-image-wrapper {
    min-width: 90vw;
    bottom:3vh;
  }

}
