.ody-gallery {
  position: relative;
  z-index: 1;
  margin-top: clamp(-6rem, -7vw, -3.5rem);
  padding: clamp(6.5rem, 10vw, 10rem) 1rem clamp(8rem, 13vw, 13rem);
  background-color: transparent;
  background-image: var(--ody-gallery-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ody-gallery__container {
  position: relative;
  top: -55px;
  max-width: 1320px;
}

.ody-gallery__slider {
  position: relative;
  width: 96%;
  max-width: 940px;
  margin: 0 auto clamp(2.5rem, 5vw, 5rem);
  padding-inline: clamp(2.75rem, 7vw, 6.25rem);
}

.ody-gallery__frame {
  aspect-ratio: 1.49 / 1;
  margin: 0;
  overflow: hidden;
  border: clamp(5px, 0.55vw, 9px) solid #fd7e14;
  border-radius: clamp(28px, 4vw, 64px);
  background: #fd7e14;
  box-shadow: 0 18px 45px rgba(113, 55, 7, 0.18);
}

.ody-gallery__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.14s ease;
}

.ody-gallery__frame img.is-changing {
  opacity: 0;
}

.ody-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: clamp(44px, 6vw, 86px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.ody-gallery__arrow img {
  display: block;
  width: 100%;
  height: auto;
}

.ody-gallery__arrow--previous img {
  clip-path: inset(0 0 0 3px);
}

.ody-gallery__arrow--next img {
  clip-path: inset(0 3px 0 0);
}

.ody-gallery__arrow--previous {
  left: 0;
}

.ody-gallery__arrow--next {
  right: 0;
}

.ody-gallery__arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.ody-gallery__arrow:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

.ody-gallery__arrow:focus-visible,
.ody-gallery__card:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.ody-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.25rem);
  width: 96%;
  max-width: 1120px;
  margin: 0 auto;
}

.ody-gallery__card {
  grid-column: span 3;
  aspect-ratio: 1.48 / 1;
  padding: 0;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: clamp(14px, 1.6vw, 25px);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 57, 112, 0.13);
  cursor: pointer;
}

.ody-gallery__card--wide {
  grid-column: span 4;
}

.ody-gallery__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ody-gallery__card:hover img,
.ody-gallery__card:focus-visible img {
  transform: scale(1.045);
}
