
.gallery {
  padding: 15px;
  background: var(--white);
  max-width: 1200px;
  margin: 2rem auto;
  user-select: none;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  /* filter: drop-shadow(0 0 1px var(--black)); */
}
.gallery__container {
  max-width: 1200px;
  margin: 0 auto;
}
.gallery__title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--blue);
  font-family: "MyFont2";
  text-shadow: 1px 2px 3px var(--black);
  font-size: 2rem;
}
.gallery__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}
.gallery__card {
  position: relative;
  height: 120px;
  background-color: var(--white);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.gallery__card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.8);
}
.gallery__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.gallery__card:hover .gallery__card-image {
  transform: scale(1.03);
}
.gallery__card:hover .gallery__card-info {
  transform: translateY(0);
  opacity: 1;
}
.gallery__popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(10px);
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  z-index: 10;
  transition: opacity 0.3s ease;
}
.gallery__popup--open {
  visibility: visible;
  opacity: 1;
}
.gallery__popup-scroll {
  height: 100vh;
  overflow-y: auto;
}
.gallery__popup-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  justify-content: center;
  align-items: center;
  place-items: center;
}
.gallery__popup-close {
  position: absolute;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 2rem;
  right: 2rem;
  font-size: 56px;
  font-weight: bolder;
  color: var(--white);
  cursor: pointer;
  z-index: 11;
}
.gallery__popup-close:hover {
  opacity: 0.6;
}
.gallery__popup-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.gallery__popup-arrow:hover {
  color: #cecece;
}
.gallery__popup-arrow--left {
  left: 2rem;
}
.gallery__popup-arrow--right {
  right: 2rem;
}
.gallery__popup-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  cursor: default;
}
@media (max-width: 600px) {
  .gallery__popup-arrow--left {
    left: 0.4rem;
  }
  .gallery__popup-arrow--right {
    right: 0.4rem;
  }
}
