/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hidden by default to match your request */
.afsnai_2026_gallery, .afsnai_2026_h1 {
  display: none;
}

/* Modal Overlay */
.afsnai_2026_modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease;
}

/* Your specific Modal Content Settings */
.afsnai_2026_modal_content {
  position: relative;
  width: 100vw;
  height: 100vh;
  object-fit: cover; 
  border-radius: 5px;
  overflow: hidden;
  animation: afsnai_2026_zoomIn 0.5s forwards;
}

/* Your specific Animation */
@keyframes afsnai_2026_zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

/* Outro: Direct fly-out to bottom-left */
@keyframes afsnai_2026_flyToBottomLeft {
  to {
    transform: translate(-100vw, 100vh) scale(0);
    opacity: 0;
  }
}

.afsnai_2026_modal.afsnai_2026_show {
  display: flex;
  opacity: 1;
}

.afsnai_2026_modal_exit .afsnai_2026_modal_content {
  animation: afsnai_2026_flyToBottomLeft 0.7s ease-in forwards;
}

/* Your specific Close Button Settings */
.afsnai_2026_close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 100001;
}

/* Your specific Caption Settings */
.afsnai_2026_caption {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 24px;
  z-index: 100001;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  padding: 0 20px;
}

.afsnai_2026_caption a {
  color: #00d4ff;
  text-decoration: underline;
  display: block;
  margin-top: 10px;
}

/* Your specific Media Queries adjusted for prefixes */
@media screen and (max-width: 768px) {
  .afsnai_2026_caption {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .afsnai_2026_caption {
    font-size: 16px;
    bottom: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding-bottom: 20px;
  }
}