body {
  background-image: url("../images/Avantages3.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin: 0 auto;
  list-style: none;
}

.gallery-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 30%;
}

.gallery-link:hover {
  transform: scale(1.05);
}

.lightbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.lightbox-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-btn-left {
  left: 20px;
}

.lightbox-btn-right {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
}
