/* Base styles */
body {
    font-family: 'Kritik', sans-serif;
}
/* Jury Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
@keyframes fadeOut {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}
@keyframes fadeOutShow {
  0% {
    opacity: 1; /* Start visible */
  }
  30% {
    opacity: 1; /* Show for 3 seconds */
  }
  31% {
    opacity: 0; /* Fade out in 1 second */
  }
  100% {
    opacity: 0; /* Stay hidden for the rest of the cycle (6 more seconds) */
  }
}

.content-text p {
    padding-bottom: 0.5rem;
}
.content-text b {
  letter-spacing: 0.05rem;
  font-weight: 600;
}
.\[\&\>ul\>li\]\:text-gray-700>ul>li {
  color: #000000 !important;
}
.diagonal-container {
    display: inline-block; /* Shrink to fit content width */
    position: relative; /* Confines the diagonal-line elements */
    overflow: hidden; /* Ensures no overflow outside container */
  }
  
  .diagonal-line {
    position: absolute;
    width: 100%; /* Match the width of the container */
    height: 3px; /* Visible height of the line */
    background-color: black; /* Line color */
    top: 30%; /* Center line vertically relative to container */
    transform: translateY(-50%) rotate(-3deg); /* Adjust angle */
    transform-origin: left; /* Keeps rotation anchored to the left */
  }
  
  .diagonal-line-after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%; /* Matches the container width */
    height: 3px; /* Line thickness */
    background-color: black; /* Line color */
    transform: translateY(-50%) rotate(-3deg); /* Adjust angle */
    transform-origin: left;
  }
  .diagonal-bg {
    position: relative;
    overflow: hidden;
}

.diagonal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #808180;
    transform: skewY(8deg);
    transform-origin: 100% 0%;
    z-index: -1;
}

/* GALLERY CAROUSEL */

.gcarousell {
  position: relative;
  overflow: hidden;
  height: 80vh; /* Taller height to match mockup */
  width: 100%; /* Full width */
  margin-bottom: 4rem; /* Add space for captions */
}
.gcarousell img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95%;
  max-height: 95%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.gcarousell img.active {
  opacity: 1;
  z-index: 1;
}

/* Modal styling to match mockup */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999; 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.modal-content {
  background: white !important;
  width: 100%;
  height: 100%;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10000;
}
.modal-content-news {
  background: #c2cdc3 !important;
  width: 100%;
  height: 100%;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10000;
}

.gcarousell-container {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Add fixed height */
}

/* Style the close button */
.close-modal {
  position: fixed; /* Changed from absolute to fixed */
  top: 0rem;
  right: 2rem;

  background: transparent;
  border: none;
  color: #000000; /* Changed from #333 to white for better visibility */
  transition: color 0.3s ease;
  font-size: 5rem;
  cursor: pointer;
  z-index: 10001; /* Higher than modal content */
}

/* Style the navigation buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #000;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  padding: 2rem;
  transition: color 0.3s ease;
}

.nav-button:hover,
.close-modal:hover  {
  color: #666;
}

.nav-button.prev {
  left: 2rem;
}

.nav-button.next {
  right: 2rem;
}

/* Style the caption area */
.caption-container {
  position: absolute; /* Change to absolute positioning */
  bottom: 0; /* Fix to bottom */
  left: 0;
  right: 0;
  margin-top: 0; /* Remove margin */
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding: 1rem;
  pointer-events: none; /* Prevent interaction with captions */
  z-index: 10001;
}

.caption-container.active {
  opacity: 1;
  z-index: 1;
}

.image-caption {
  font-weight: 500;
  color: #000;
  margin-bottom: 0.5rem;
}

.image-credits {
  color: #666;
}
.winners-bg {
  clip-path: polygon(16% 36%, 92% 20%, 85% 100%, 7% 100%);
}
.special-mentions-bg {
  clip-path: polygon(10% 36%, 94% 20%, 90% 100%, 7% 100%);
}


/* News Slideshow styles */
.slideshow-container-news {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #c2cdc3; /* Match the page background */
}

.slide-news {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-news.active {
    opacity: 1;
}

.slide-news img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.slide-caption-news {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-news.active .slide-caption-news {
    opacity: 1;
}

.image-caption-news {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #000;
}

.image-credits-news {
    font-size: 0.7rem;
    color: #666;
}

/* Navigation buttons for news slideshow */
.nav-button-news {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    padding: 2rem;
    transition: color 0.3s ease;
}

.nav-button-news:hover {
    color: #666;
}

.nav-button-news.prev {
    left: -4rem;
}

.nav-button-news.next {
    right: -4rem;
}