.yr,
.yr * {
  box-sizing: border-box;
}

.yr {
  --yr-blue: #2d8ce5;
  --yr-ink: #202224;
  --yr-muted: #73777b;
  --yr-paper: #f5f2e9;
  --yr-orange: #f68b3c;
  width: 100%;
  margin: 22px auto 54px;
  padding: 56px 24px 48px;
  color: var(--yr-ink);
  background: var(--yr-paper);
  border-top: 1px solid #e1ddd3;
  border-bottom: 1px solid #e1ddd3;
  font-family: Arial, Helvetica, sans-serif;
}

.yr__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.yr__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.yr__eyebrow {
  margin: 0 0 7px;
  color: #a84a2b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.yr__title {
  margin: 0;
  color: var(--yr-ink);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.05;
}

.yr__all-link,
.yr__source {
  color: #176faf;
  text-decoration: none;
}

.yr__all-link {
  flex: 0 0 auto;
  padding-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(23, 111, 175, .35);
}

.yr__all-link:hover,
.yr__all-link:focus,
.yr__source:hover,
.yr__source:focus {
  color: #0b4f83;
}

.yr__all-link:focus-visible,
.yr__source:focus-visible,
.yr__arrow:focus-visible {
  outline: 3px solid rgba(45, 140, 229, .55);
  outline-offset: 4px;
}

.yr__rating {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 104px;
  margin-bottom: 26px;
  padding: 21px 30px;
  background: #fff;
  border: 1px solid #e1ded7;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(45, 41, 30, .07);
}

.yr__rating-main {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.yr__rating-value {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.yr__stars,
.yr__review-stars {
  color: var(--yr-blue);
  letter-spacing: .05em;
}

.yr__stars {
  font-size: 28px;
  line-height: 1;
}

.yr__rating-counts,
.yr__freshness {
  margin: 0;
  color: #8a8d90;
}

.yr__rating-counts {
  justify-self: end;
  font-size: 20px;
  white-space: nowrap;
}

.yr__freshness {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -11px;
  font-size: 15px;
}

.yr__freshness-dot {
  width: 9px;
  height: 9px;
  background: var(--yr-orange);
  border-radius: 50%;
}

.yr__carousel {
  position: relative;
}

.yr__viewport {
  height: 650px;
  min-height: 650px;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(39, 35, 25, .13);
  touch-action: pan-y pinch-zoom;
}

.yr__slide {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .95fr);
  height: 650px;
  min-height: 650px;
  background: #fff;
}

.yr__slide[hidden] {
  display: none !important;
}

.yr__photo {
  position: relative;
  height: 650px;
  min-height: 650px;
  margin: 0;
  overflow: hidden;
  background: #ddd9cf;
}

.yr__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 650px;
  object-fit: cover;
  object-position: center;
}

.yr__photo-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(20, 22, 24, .72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.yr__review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 42px;
}

.yr__review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.yr__review-stars {
  font-size: 21px;
}

.yr__review-date {
  color: #999b9d;
  font-size: 14px;
  white-space: nowrap;
}

.yr__quote-mark {
  height: 46px;
  color: #ef7a3b;
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: .9;
}

.yr__review-text {
  margin: 11px 0 31px;
  color: #343638;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.38;
}

.yr__review-author {
  margin: auto 0 7px;
  font-size: 18px;
  font-weight: 700;
}

.yr__source {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
}

.yr__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  color: #31373b;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(35, 42, 47, .13);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(29, 33, 36, .18);
  cursor: pointer;
  transform: translateY(-50%);
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.yr__arrow:hover {
  color: #fff;
  background: #176faf;
}

.yr__arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.yr__arrow--prev {
  left: -27px;
}

.yr__arrow--next {
  right: -27px;
}

.yr__status {
  display: grid;
  grid-template-columns: auto minmax(120px, 260px) 1fr;
  align-items: center;
  gap: 17px;
  padding: 20px 7px 0;
}

.yr__counter {
  min-width: 48px;
  color: #575b5e;
  font-size: 14px;
  font-weight: 700;
}

.yr__progress {
  height: 4px;
  overflow: hidden;
  background: #d8d4ca;
  border-radius: 999px;
}

.yr__progress span {
  display: block;
  width: 6.666%;
  height: 100%;
  background: #176faf;
  border-radius: inherit;
  transition: width .28s ease;
}

.yr__swipe-hint {
  justify-self: end;
  color: #85888b;
  font-size: 13px;
}

.yr__loading {
  display: grid;
  grid-template-columns: 1.65fr .95fr;
  min-height: 650px;
  background: #fff;
}

.yr__loading-photo,
.yr__loading-copy {
  display: block;
  background: linear-gradient(110deg, #e8e4da 8%, #f6f4ed 18%, #e8e4da 33%);
  background-size: 200% 100%;
  animation: yr-loading 1.2s linear infinite;
}

.yr__loading-copy {
  margin: 48px 42px;
  border-radius: 18px;
}

.yr__error,
.yr__noscript {
  padding: 44px 24px;
  text-align: center;
}

@keyframes yr-loading {
  to { background-position-x: -200%; }
}

@media (max-width: 1240px) {
  .yr__arrow--prev { left: 14px; }
  .yr__arrow--next { right: 14px; }
}

@media (max-width: 900px) {
  .yr__slide {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 1fr);
  }

  .yr__review {
    padding: 36px 30px;
  }

  .yr__rating {
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .yr {
    margin: 16px auto 42px;
    padding: 36px 0 34px;
  }

  .yr__heading,
  .yr__rating,
  .yr__status {
    margin-left: 18px;
    margin-right: 18px;
  }

  .yr__heading {
    display: block;
    margin-bottom: 20px;
  }

  .yr__title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .yr__all-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
  }

  .yr__rating {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
  }

  .yr__rating-main {
    gap: 12px;
  }

  .yr__rating-value {
    font-size: 33px;
  }

  .yr__stars {
    font-size: 25px;
  }

  .yr__rating-counts {
    justify-self: start;
    font-size: 17px;
  }

  .yr__freshness {
    grid-column: 1;
    margin-top: 0;
    font-size: 14px;
  }

  .yr__viewport {
    height: auto;
    min-height: 0;
    border-radius: 0;
    box-shadow: 0 18px 48px rgba(39, 35, 25, .12);
  }

  .yr__slide {
    display: block;
    height: auto;
    min-height: 0;
  }

  .yr__photo {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .yr__photo img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .yr__review {
    min-height: 300px;
    padding: 30px 52px 34px;
  }

  .yr__review-top {
    margin-bottom: 16px;
  }

  .yr__review-text {
    margin: 3px 0 24px;
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.36;
  }

  .yr__quote-mark {
    height: 38px;
    font-size: 60px;
  }

  .yr__arrow {
    top: clamp(190px, 61vw, 340px);
    width: 48px;
    height: 48px;
  }

  .yr__arrow--prev { left: 8px; }
  .yr__arrow--next { right: 8px; }

  .yr__status {
    grid-template-columns: auto 1fr;
    margin-top: 0;
    padding: 18px 0 0;
  }

  .yr__swipe-hint {
    display: none;
  }

  .yr__loading {
    display: block;
    min-height: 720px;
  }

  .yr__loading-photo {
    height: 125vw;
    max-height: 700px;
  }

  .yr__loading-copy {
    height: 220px;
    margin: 28px 30px;
  }
}

@media (max-width: 380px) {
  .yr__review {
    min-height: 285px;
    padding-right: 45px;
    padding-left: 45px;
  }

  .yr__review-text {
    font-size: 20px;
  }

  .yr__arrow {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yr__progress span,
  .yr__loading-photo,
  .yr__loading-copy {
    animation: none;
    transition: none;
  }
}
