html, body {
    height:100%;
    margin:0.1
} 
body 
    {
        background-color: white;
        background-image: url("background.png");
        background-size: auto 100%;
        /* background-repeat: no-repeat; */
        background-position: center;
        height: 100%;
    }

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 20%;
    cursor: pointer;
    }

  .link {
      width: 20%;
      float: left;
      text-align: center;
  }

  .masonry {
      columns: 3 400px;
      column-gap: 1rem;
      padding: 1rem;
    }
    
    .item {
      break-inside: avoid;
      margin-bottom: 1rem;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .item img {
      width: 100%;
      height: auto;
      display: block;
      cursor: pointer;
    }

  .item:hover {
      transform: translateY(-10px);
  }

  .image-dialog {
      border: none;
      background: rgba(0, 0, 0, 0.8);
      padding: 0;
      margin: auto;
      width: 90vw;
      height: 90vh;
      max-width: 1000px;
      max-height: 90vh;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 12px;
      overflow: hidden;
      animation: fadeIn 0.3s ease;
    }
    
    .image-dialog img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      display: block;
    }
    
    
    /* Fade animation */
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    dialog:not([open]) {
      display: none;
    }

    dialog:focus {
      outline: 2px solid black;
    }


  .gif-gallery {
      display: flex;
      justify-content: center;
      gap: 0px; /* Space between gifs */
      /* padding: 2rem;
      flex-wrap: wrap; Allows them to wrap if screen is small */
      margin-top: 0.25rem; /* <-- Add this for space on top */
    }
    
    .gif-item {
      flex: 0 0 auto; /* Prevent shrinking */
      width: 20%; /* Set width for each GIF item */
      cursor: pointer;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }
    
    .gif-item img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.3s ease;
    }

    .frosted-box {
      max-width: 600px;
      margin: 2rem auto;
      padding: 2rem 2rem;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: black;
      text-align: left;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
      font-size: 1.2rem;
      margin-bottom: 0;
      padding-bottom: 0rem; /* optional, adjust as needed */
      margin-top: 0;
      padding-top: 2rem; /* optional, adjust as needed */
    }
    .poem-line {
      display: block;
      padding-left: 2em;
      text-indent: -2em;
      white-space: normal;
      word-break: break-word;
    }

  body.aerated-background {
    background-image: url("aerated_and_condemned/catfish.jpeg");
  }

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* <-- reduced opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  transition: transform 0.3s;
}

.image-modal.hidden {
  display: none;
}

.image-modal:hover img {
  transform: scale(1.02);
}

.carousel-page {
  overflow-x: clip;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 400px; /* Set desired image height */
  background-color: black;
}

.carousel-track {
  display: flex;
  animation: scroll 10s linear infinite;
  animation-play-state: running;
}

.carousel-track:hover{
  animation-play-state: running;
}

.carousel-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  flex-shrink: 0;
  background-color: black;
}

.carousel-image-wrapper img {
  height: 400px;
  width: auto;
  display: block;
  object-fit: contain;
}
  
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#crossfade-gallery {
  display: flex;
  gap: 0px;
  justify-content: center;
  margin: 40px 0;
}

.crossfade-slot {
  position: relative;
  width: 33.33vw;           /* wider than 1/3 of screen */
  height: 60vh;           /* taller display */
  overflow: hidden;
  background: #000;
}

.crossfade-slot div {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;           /* ✅ Fills and crops slightly */
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.crossfade-slot .fade-in {
  opacity: 1;
  z-index: 2;
}


