.vl-webcam {
  padding-block: clamp(1.75rem, 5vw, 4rem);
  width: min(1600px, calc(100% - 40px));
  max-width: 1600px;
}

.vl-webcam__location {
  color: #176777;
  font-weight: 650;
}

.vl-webcam__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
}

.vl-webcam__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 1rem;
  background: #152532;
}

@media (max-width: 1050px) {
  .vl-webcam__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vl-webcam__grid > section:first-child {
  overflow: hidden;
  align-self: start;
  border-radius: 1rem;
}

.vl-webcam__player {
  margin-top: -64px;
}


.vl-webcam__weather {
  align-self: start;
  padding: 26px;
  border: 1px solid #dbeaf1;
  border-radius: 24px;
  background: linear-gradient(155deg, #f0fbff 0%, #ffffff 56%, #f2f7ff 100%);
  color: #183448;
  box-shadow: 0 12px 32px #071c2b14;
}
.vl-weather-label {
  color: #4f7185;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vl-webcam__weather h2 {
  margin: 4px 0 0;
  color: #183448;
  font-size: 28px;
  line-height: 1.2;
}
.vl-webcam__weather .vl-weather-time {
  margin: 8px 0 24px;
  color: #60798a;
  font-size: 13px;
}
.vl-weather-temperature {
  position: relative;
  padding: 22px 0 26px;
  overflow: hidden;
}
.vl-weather-temperature strong {
  position: relative;
  display: block;
  color: #d54561;
  font-size: 76px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.06em;
}
.vl-weather-temperature strong span {
  margin-left: 7px;
  font-size: 30px;
  font-weight: 500;
  vertical-align: top;
  letter-spacing: -.03em;
}
.vl-weather-temperature p {
  position: relative;
  margin: 12px 0 0;
  color: #60798a;
  font-size: 13px;
}
.vl-weather-orb {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -25px;
  top: -2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d3f6ff, #aed6fa 60%, #d6dafa);
  opacity: .65;
}
.vl-weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.vl-weather-metrics div {
  padding: 15px 13px;
  border: 1px solid #e1ebf3;
  border-radius: 15px;
  background: #ffffffb3;
}
.vl-weather-metrics div:last-child {
  grid-column: 1 / -1;
}
.vl-weather-metrics dt {
  color: #60798a;
  font-size: 12px;
}
.vl-weather-metrics dd {
  margin: 7px 0 0;
  color: #2867b1;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
}
.vl-weather-metrics div:nth-child(2) dd {
  color: #087c78;
}
.vl-weather-metrics div:nth-child(3) dd {
  color: #7953b0;
}
.vl-webcam__weather small {
  display: block;
  padding-top: 15px;
  border-top: 1px solid #deebf2;
  color: #647d8d;
  font-size: 10px;
  line-height: 1.6;
}
.vl-webcam__weather a {
  color: #41677c;
}

@media (max-width: 760px) {
  .container.vl-webcam {
    box-sizing: border-box;
    width: 100%;
    padding: calc(var(--header-h) + 12px) 12px 28px;
  }

  .vl-webcam h1 {
    margin: 0;
    font-size: clamp(23px, 5.5vw, 30px);
    line-height: 1.2;
  }

  .vl-webcam__grid {
    gap: 12px;
    margin-top: 14px;
  }

  .vl-webcam__grid > section:first-child {
    --webcam-top-crop: 56px;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
  }

  .vl-webcam__player {
    position: absolute;
    top: calc(-1 * var(--webcam-top-crop));
    left: 50%;
    width: calc((100% * 4 / 3 + var(--webcam-top-crop)) * 16 / 9);
    max-width: none;
    height: calc(100% + var(--webcam-top-crop));
    margin-top: 0;
    border-radius: 0;
    transform: translateX(-50%);
  }

  .vl-webcam__weather {
    padding: 14px;
    border-radius: 16px;
  }

  .vl-weather-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }

  .vl-webcam__weather h2 {
    margin: 0;
    font-size: 20px;
  }

  .vl-webcam__weather .vl-weather-time {
    margin: 4px 0 8px;
  }

  .vl-weather-temperature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 12px;
  }

  .vl-weather-temperature strong {
    font-size: clamp(44px, 12vw, 58px);
    white-space: nowrap;
  }

  .vl-weather-temperature strong span {
    font-size: 22px;
  }

  .vl-weather-temperature p {
    margin: 0;
  }

  .vl-weather-orb {
    display: none;
  }

  .vl-weather-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 9px;
  }

  .vl-weather-metrics div {
    padding: 8px 6px;
    border-radius: 10px;
  }

  .vl-weather-metrics div:last-child {
    grid-column: auto;
  }

  .vl-weather-metrics dd {
    margin-top: 4px;
    font-size: clamp(14px, 4vw, 18px);
    white-space: nowrap;
  }

  .vl-webcam__weather small {
    padding-top: 7px;
  }
}
