.gastro-section {
  box-sizing: border-box;
  padding: 4px 8px;
}

.gastro-pdv {
  --gastro-pdv-video-scale: 1;
  --gastro-pdv-video-top: 35%;
  --gastro-pdv-video-translate-y: 0%;

  position: relative;
  min-height: 350vh;
  background: #fff;
}

.gastro-pdv__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
}

.gastro-pdv__content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

.gastro-pdv__title {
  position: absolute;
  z-index: 1;
  top: 152px;
  left: 50%;
  width: calc(100% - 320px);
  max-width: 844px;
  margin: 0;
  color: #282834;
  font-family: 'Proxima Nova Alt', 'Proxima Nova', sans-serif;
  font-size: 72px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -2.88px;
  text-align: center;
  font-feature-settings: 'salt' on, 'calt' off;
  transform: translate3d(-50%, -50%, 0);
  will-change: opacity;
}

.gastro-pdv__video-frame {
  position: absolute;
  z-index: 2;
  top: var(--gastro-pdv-video-top);
  left: 50%;
  width: min(72%, 1040px, calc((100vh - 160px) / 0.76819));
  aspect-ratio: 1924 / 1478;
  padding: 28px 38px;
  border: 3px solid #d7d8dc;
  border-radius: 48px;
  background: #111;
  box-shadow: 0 4px 0 rgb(0 0 0 / 10%);
  box-sizing: border-box;
  transform: translate3d(-50%, var(--gastro-pdv-video-translate-y), 0)
    scale(var(--gastro-pdv-video-scale));
  transform-origin: center center;
  will-change: transform;
}

.gastro-pdv__frame-btn {
  position: absolute;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
}

.gastro-pdv__frame-btn--top {
  top: 46%;
}

.gastro-pdv__frame-btn--bottom {
  top: 53%;
}

.gastro-pdv__video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: fill;
}

@media only screen and (min-width: 768px) and (max-width: 1365px) {
  .gastro-pdv__title {
    top: 128px;
    width: calc(100% - 160px);
    max-width: 760px;
    font-size: 48px;
    letter-spacing: -1.92px;
  }

  .gastro-pdv__video-frame {
    width: min(67%, 640px);
    padding: 20px 28px;
    border-radius: 36px;
  }

  .gastro-pdv__video {
    border-radius: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .gastro-pdv {
    --gastro-pdv-video-scale: 1;
    --gastro-pdv-video-top: auto;
    --gastro-pdv-video-translate-y: 0;

    display: block;
    min-height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .gastro-pdv__sticky {
    position: static;
    height: auto;
  }

  .gastro-pdv__content {
    display: flex;
    flex-direction: column;
    height: 728px;
    min-height: 728px;
    padding: 24px 24px 0;
    border-radius: 0;
    overflow: hidden;
  }

  .gastro-pdv__title {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 344px;
    margin: 0;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -1.28px;
    text-align: left;
    transform: none;
    opacity: 1;
  }

  .gastro-pdv__video-frame {
    position: relative;
    top: auto;
    left: auto;
    align-self: flex-start;
    flex: 0 0 auto;
    width: 344px;
    height: 485px;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    margin-top: auto;
    margin-left: -3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: hidden;
  }

  .gastro-pdv__frame-btn {
    display: none;
  }

  .gastro-pdv__video {
    width: 415px;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: left bottom;
  }
}
