.garland-strip {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(42, 66, 40, 0.75), transparent 42%), radial-gradient(circle at 70% 40%, rgba(38, 64, 42, 0.7), transparent 40%), linear-gradient(180deg, #17301a 0%, #1e3b21 45%, #19351b 100%);
  padding: 12px 0 12px;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.28);
}

.garland-strip::before {
  content: "";
  position: absolute;
  inset: -18px 0 -18px 0;
  background-image: url("../../img/garland/branch-left.png");
  background-repeat: repeat-x;
  background-size: 360px 180px;
  background-position: 20px -6px;
  opacity: 0.25;
  filter: blur(8px);
  pointer-events: none;
}

.garland-strip::after {
  content: "";
  position: absolute;
  inset: -30px 0 -26px 0;
  background-image: url("../../img/garland/branch-right.png");
  background-repeat: repeat-x;
  background-size: 380px 190px;
  background-position: 60px 12px;
  opacity: 0.22;
  filter: blur(10px);
  pointer-events: none;
}

.garland-strip__branches {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("../../img/garland/branch-left.png"),
    url("../../img/garland/branch-right.png"),
    url("../../img/garland/branch-left.png"),
    url("../../img/garland/branch-right.png");
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x;
  background-size: 460px 230px, 480px 240px, 420px 220px, 400px 210px;
  background-position: -10px -40px, 120px -50px, 60px 6px, 180px -18px;
  opacity: 0.98;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.garland-strip__ornaments {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px 8px;
  margin: 0 auto;
  padding: 6px 18px 10px;
  max-width: 1400px;
  width: 100%;
  list-style: none;
  z-index: 1;
}

.garland-strip__ornament {
  justify-self: center;
  position: relative;
  width: clamp(58px, 9vw, 86px);
  height: clamp(58px, 9vw, 86px);
  transform-origin: top center;
  transition: transform 0.24s ease-out, filter 0.24s ease-out, brightness 0.2s ease, saturate 0.2s ease;
  cursor: pointer;
}

.garland-strip__ornament:nth-child(odd) {
  margin-top: 8px;
}

.garland-strip__ornament:nth-child(3n) {
  margin-top: 16px;
}

.garland-strip__ornament:nth-child(4n) {
  margin-top: 4px;
}

.garland-strip__ornament:nth-child(5n) {
  margin-top: 20px;
}

.garland-strip__ornament img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)) saturate(1.25) brightness(1.05);
}

.garland-strip__ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 2px;
  height: 26px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.12));
}

.garland-strip__ornament:hover {
  animation: garland-sway 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 18px rgba(255, 130, 120, 0.4));
  filter: drop-shadow(0 10px 18px rgba(255, 130, 120, 0.4)) saturate(1.2);
  transform: scale(1.04);
}

.garland-strip__ornament--offset {
  margin-top: 18px;
}

@keyframes garland-sway {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(6deg);
  }
  75% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(4deg);
  }
}

@media (max-width: 768px) {
  .garland-strip {
    padding: 16px 0 10px;
  }

  .garland-strip__ornaments {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 12px 8px;
    max-width: none;
  }

  .garland-strip__ornament {
    width: clamp(58px, 18vw, 80px);
    height: clamp(58px, 18vw, 80px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .garland-strip__ornament:hover {
    animation: none;
    transform: translateY(-2px);
  }
}

@media (max-width: 600px) {
  .garland-strip__ornaments {
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 8px 6px;
    padding: 4px 12px 8px;
  }

  .garland-strip__ornament:nth-child(n+11) {
    display: none;
  }

  .garland-strip__ornament {
    width: clamp(54px, 20vw, 76px);
    height: clamp(54px, 20vw, 76px);
  }
}
