.a_hero{
    display: flex;
    flex-direction: column !important;
}
.a_hero .tab_list{
    padding: 1rem;
    font-size: .9rem;
    color: white;
}

body {
  overflow-x: hidden;
}

 

.tab_list span{
    padding: 1rem;
    color: white;
    font-size: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    padding-bottom: .5rem;

    transition: .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.tab_list span:hover{
    padding: 1.1rem;
    font-size: 1rem;
    color: rgb(227, 227, 227);
    padding-bottom: 1rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.941);

}


.tab_list span.active{
    border-bottom: 1px solid rgba(255, 255, 255, 0.359);


}

.img_content {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dynamic flexible grid */
.img_grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 90%;
  max-width: 1400px;
}

/* Each image container */
.img_item {
  border: 8px solid #121212;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

/* Staggered animation - applied via JavaScript */
.img_item.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Images adapt to their natural width and height */
.img_item img {
  display: block;
  height: auto;
  max-height: 300px; /* optional limit */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.5s ease;
  opacity: 0;
}

.img_item.loaded img {
  opacity: 1;
}

/* Hover zoom */
.img_item:hover img {
  transform: scale(1.05);
}

/* Button section */
.fw {
  margin-top: 3rem;
}

.pl {
  padding: 1rem 3rem;
  background-color: #121212;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.pl:hover {
  background-color: #333;
}


/* ---------- Modal styles ---------- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Image inside the modal */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Caption text (optional) */
#caption {
  margin: 15px auto;
  text-align: center;
  color: #ccc;
  font-size: 1rem;
  max-width: 80%;
}

/* Close button */
.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover {
  color: #bbb;
}

/* Make modal image responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }
}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
  z-index: 10000;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  color: #bbb;
}

.prev, .next {
  display: none;
}
