* {
  margin: 0;
  padding: 0;
}
@media only screen and (min-width: 200px) {
  .gallery_basket {
    padding: 10px 20px;
  }
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    border: 4px solid #00152642;
    border-radius: 5px;
  }
  .gallery img:hover {
    transform: scale(1.05);
  }

  .pagination {
    margin: 25px 0 5px;
    text-align: center;
  }
  .pagination button {
    font-size: 20px;
    padding: 5px 7px;
    border: 1px solid #a2acb7;
    cursor: pointer;
  }
  .image_gallery_previous {
  }
  .pagination button.active {
    background-color: #2373b4;
    color: white;
    font-weight: bold;
    border: 1px solid transparent;
    cursor: default;
  }

  .fullscreen {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
  }

  .fullscreen.active {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    pointer-events: all;
  }

  .fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
  }

  .fullscreen.active .fullscreen-content {
    transform: scale(1);
  }

  .fullscreen img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .fullscreen.active img {
    opacity: 1;
    transform: scale(1);
    border: 10px solid #4b555d;
    border-radius: 10px;
  }

  .fullscreen .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
    opacity: 0;
  }

  .fullscreen.active .nav-button {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .fullscreen .nav-button:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
  }

  .fullscreen .prev {
    left: 20px;
  }

  .fullscreen .next {
    right: 20px;
  }

  .fullscreen .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
    opacity: 0;
    transform: scale(0.9);
  }

  .fullscreen.active .close-btn {
    opacity: 1;
    transform: scale(1);
  }

  .fullscreen .close-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
  }

  /* Animation classes */
  .slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
  }

  .slide-out-right {
    transform: translateX(100%);
    opacity: 0;
  }

  .slide-in-left {
    animation: slideInLeft 0.3s forwards;
  }

  .slide-in-right {
    animation: slideInRight 0.3s forwards;
  }

  @keyframes slideInLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}
@media only screen and (min-width: 360px) {
  .gallery {
    gap: 15px;
  }
}
@media only screen and (min-width: 410px) {
  .gallery img {
    height: 300px;
  }
  .pagination button {
    padding: 7px 9px;
  }
}
@media only screen and (min-width: 600px) {
  .gallery_basket {
    padding: 10px 45px;
  }
  .gallery {
    gap: 27px;
  }
  .gallery img {
    height: 390px;
  }
}
@media only screen and (min-width: 712px) {
  .gallery_basket {
    padding: 10px 60px;
  }
  .gallery {
    gap: 40px;
  }
  .gallery img {
    height: 475px;
  }
}
@media only screen and (min-width: 768px) {
  .gallery {
    gap: 20px;
  }
  .gallery img {
    height: 280px;
    width: 47%;
  }
}
@media only screen and (min-width: 912px) {
  .gallery {
    gap: 15px;
  }
  .gallery img {
    height: 310px;
  }
}
@media only screen and (min-width: 1024px) {
  .gallery {
    gap: 17px;
  }
  .gallery img {
    height: 270px;
    width: 31%;
  }
  @media only screen and (height: 600px) {
    .gallery {
      gap: 11px;
    }
    .gallery img {
      height: 190px;
      width: 23%;
    }
  }
}
@media only screen and (min-width: 1280px) {
  .gallery {
    gap: 15px;
  }
  .gallery img {
    height: 240px;
    width: 23%;
  }
}
@media only screen and (min-width: 1366px) {
  .gallery img {
    width: 24%;
  }
}
