.swiper {
  width: 100%;
  position: relative;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 50vh;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
  border-radius: 5px;
}

.swiper-slide img:hover,
.swiper-slide img:focus {
  transform: scale(1.05);
  outline: none;
}

.swiper-button-prev,
.swiper-button-next {
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  border: none;
  padding: 0;
}

.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  opacity: 0.2;
}


.swiper-button-prev:hover,
.swiper-button-next:hover,
.swiper-button-prev:focus,
.swiper-button-next:focus {

  outline: none;
  border-radius: 4px;
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: none;
}

.arrow-icon {
  fill: #ffffff;
  color: white;
  width: 2rem;
  height: 2rem;
  transition: fill 0.3s ease;
}

.swiper-button-prev:hover .arrow-icon,
.swiper-button-next:hover .arrow-icon,
.swiper-button-prev:focus .arrow-icon,
.swiper-button-next:focus .arrow-icon {
  fill: #ffffff;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  user-select: none;
  object-fit: contain;
}

#modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.modal-navigation {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  padding: 0 20px;
  box-sizing: border-box;
}

.modal-button-prev,
.modal-button-next {
  background: none;
  border: none;
  color: white;
  padding: 20px;
  cursor: pointer;
  font-size: 24px;

}

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;

  padding: 5px 15px;
  border-radius: 20px;
  font-size: 1rem;
  z-index: 1001;
}


.modal-close-button {
  position: fixed;
  top: 32px;
  right: 32px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-close-button svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.3s ease;
}

.modal-close-button:hover svg,
.modal-close-button:focus svg {
  stroke: #ffffff;
  outline: none;
}


@media (max-width:800px) and (min-height:400px) {
  .swiper-slide img {
    width: 100%;
    height: 50vh;
  }
}

@media (min-width: 801px) and (orientation: portrait) {
  .swiper-slide img {
    height: 100%;
  }
} 