.portrait-gallery {
  width: 100%;
}

[data-portrait-product-page] .Gallery-module--gallery--ba09d {
  align-self: start;
  position: sticky;
  top: 24px;
}

.portrait-gallery-stage {
  background: #f5f5f5;
  border-radius: 16px;
  height: min(72vh, 720px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.portrait-gallery-image {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.portrait-gallery-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  color: #222;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
  width: 44px;
  z-index: 2;
}

.portrait-gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.portrait-gallery-arrow:focus-visible,
.portrait-gallery-thumbnail:focus-visible,
.portrait-gallery-stage:focus-visible {
  outline: 2px solid #2448c5;
  outline-offset: 2px;
}

.portrait-gallery-arrow svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.portrait-gallery-arrow--previous {
  left: 16px;
}

.portrait-gallery-arrow--next {
  right: 16px;
}

.portrait-gallery-counter {
  background: rgba(24, 24, 24, 0.72);
  border-radius: 999px;
  bottom: 16px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 8px 11px;
  pointer-events: none;
  position: absolute;
  right: 16px;
}

.portrait-gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-color: #b8b8b8 transparent;
  scrollbar-width: thin;
}

.portrait-gallery-thumbnail {
  background: #f2f2f2;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  flex: 0 0 74px;
  height: 86px;
  overflow: hidden;
  padding: 0;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.portrait-gallery-thumbnail:not(.portrait-gallery-thumbnail--active) {
  opacity: 0.68;
}

.portrait-gallery-thumbnail:hover {
  opacity: 1;
}

.portrait-gallery-thumbnail--active {
  border-color: #2448c5;
  opacity: 1;
}

.portrait-gallery-thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

[data-portrait-sizes] [role='button'] {
  cursor: pointer;
}

[data-portrait-gift-hint],
.OrderService-module--actionService--bb2f7 {
  text-decoration: none;
}

.Metadata-module--actionServicesContainer--5ec5f {
  align-items: stretch;
}

.Metadata-module--actionServicesContainer--5ec5f > .OrderService-module--actionService--bb2f7 {
  height: auto;
  min-height: 75px;
  min-width: 0;
  white-space: normal;
}

.Metadata-module--actionServicesContainer--5ec5f > .OrderService-module--actionService--bb2f7 span {
  overflow-wrap: anywhere;
}

.Metadata-module--actionServicesContainer--5ec5f > .OrderService-module--actionService--bb2f7 .OrderService-module--actionPrice--f08ed {
  white-space: nowrap;
}

@media (min-width: 48em) {
  .Metadata-module--actionServicesContainer--5ec5f > .OrderService-module--actionService--bb2f7 {
    flex: 1 1 0;
    width: 0;
  }
}

.portrait-original-details-link {
  flex: 1 1 100%;
  text-decoration: none;
}

#gatsby-focus-wrapper {
  overflow-x: clip;
}

.periodica-local-details-link {
  position: relative;
  z-index: 5;
}

@media (max-width: 767px) {
  [data-portrait-product-page] .Gallery-module--gallery--ba09d {
    position: static;
  }

  .portrait-gallery-stage {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    height: auto;
  }

  .portrait-gallery-arrow {
    height: 40px;
    width: 40px;
  }

  .portrait-gallery-arrow--previous {
    left: 10px;
  }

  .portrait-gallery-arrow--next {
    right: 10px;
  }

  .portrait-gallery-counter {
    bottom: 10px;
    right: 10px;
  }

  .portrait-gallery-thumbnails {
    gap: 7px;
    margin-top: 9px;
  }

  .portrait-gallery-thumbnail {
    flex-basis: 62px;
    height: 72px;
  }
}
