/* The homepage opening and product gallery. */
@media (min-width: 1101px) {
  .vdo-container { width: min(calc(100% - 30px), 1630px); }
  .vdo-ref-opening { grid-template-columns: minmax(0, .665fr) minmax(0, 1fr) minmax(0, 1.134fr); }
}
.vdo-ref-opening-ad {
  background: radial-gradient(circle at 48% 76%, #343642, #1b1d24 65%, #111219);
  color: #f4f0d2;
  text-align: center;
  padding: 30px 20px;
}
.vdo-ref-opening-ad:after { display: none; }
.vdo-ref-opening-ad .vdo-ref-ad-label { color: #d9d49d; }
.vdo-ref-opening-ad h1 { font-size: 24px; line-height: 1.08; }
.vdo-ref-opening-ad p { color: #d4d2ca; margin: 7px auto 0; max-width: 280px; }
.vdo-ref-opening-ad > img {
  inset: auto 7% 4%;
  width: 86%;
  height: 58%;
  object-fit: contain;
  object-position: center bottom;
}
.vdo-ref-opening-ad > a {
  color: #fff;
  background: rgba(17,18,25,.72);
  border-radius: 30px;
  padding: 8px 12px;
  left: 12px;
  bottom: 10px;
}
.vdo-ref-ad-variant { position: absolute; z-index: 2; bottom: 18px; right: 17px; color: #ddd8ce; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.vdo-ref-model-heading { display: flex; align-items: center; justify-content: space-between; }
.vdo-ref-model-controls { display: none; gap: 4px; }
.vdo-ref-model-controls button { border: 0; background: transparent; color: #706e75; font-size: 27px; line-height: 1; cursor: pointer; }

.vdo-ref-opening-category-grid.vdo-ref-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 166px);
  grid-auto-flow: row;
  gap: 12px 10px;
  overflow: visible;
  height: auto;
}
.vdo-ref-model { display: block; min-width: 0; text-align: center; color: #23182e; }
.vdo-ref-model-art { position: relative; display: block; height: 126px; isolation: isolate; }
.vdo-ref-model-art:before { content: ''; position: absolute; z-index: -1; left: 0; top: 30px; width: 78px; height: 78px; border-radius: 50%; background: #fff; }
.vdo-ref-model-art img { position: absolute; z-index: 1; left: -8px; top: 0; display: block; width: 78px; max-width: none; height: 124px; object-fit: contain; margin: 0; filter: drop-shadow(0 4px 4px rgba(17,12,34,.15)); }
.vdo-ref-model-art strong { position: absolute; left: 60px; right: 0; top: 46px; z-index: 2; display: block; text-align: left; line-height: .9; }
.vdo-ref-model-art b { display: block; white-space: nowrap; font-size: 22px; font-weight: 900; letter-spacing: -.08em; color: #100826; }
.vdo-ref-model-art em { display: block; margin-top: 4px; font-size: 12px; line-height: 1; font-weight: 900; font-style: normal; color: #eb435d; }
.vdo-ref-model-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.23; min-height: 30px; }
.vdo-ref-model:hover .vdo-ref-model-name { color: #e84960; }
.vdo-ref-model--8 .vdo-ref-model-art img { transform: rotate(-90deg) scale(1.2); }

.vdo-ref-slide.vdo-ref-slide-catalog { background: radial-gradient(circle at 65% 68%, #f8ebd5 0%, #eed9c1 78%); }
.vdo-ref-slide.vdo-ref-slide--6 { background: radial-gradient(circle at 65% 68%, #edeafb 0%, #dcd5ee 78%); }
.vdo-ref-slide.vdo-ref-slide--22 { background: radial-gradient(circle at 65% 68%, #e5f4ee 0%, #cde5de 78%); }
.vdo-ref-slide.vdo-ref-slide-catalog > img.vdo-ref-slide-product {
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: 5%;
  left: 5%;
  width: 90%;
  height: 61%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  filter: drop-shadow(0 15px 12px rgba(55,35,24,.25));
}
.vdo-ref-slide.vdo-ref-slide--6 > img.vdo-ref-slide-product { height: 54%; }
.vdo-ref-slide-catalog .vdo-ref-slide-copy { max-width: 100%; }
.vdo-ref-slide-catalog .vdo-ref-slide-copy > span { color: #846b5e; }
.vdo-ref-slide-catalog .vdo-ref-slide-copy h2 { color: #49383a; font-size: 35px; line-height: 1.08; margin: 12px 0 7px; font-weight: 800; }
.vdo-ref-slide-highlight { color: #75594b; font-size: 19px; font-weight: 700; margin: 0 0 20px; }
.vdo-ref-slide-facts { display: flex; gap: 7px; margin-bottom: 18px; }
.vdo-ref-slide-facts span { display: flex; align-items: center; justify-content: center; width: 69px; height: 52px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.9); color: #493b38; text-align: center; font-size: 13px; font-weight: 800; line-height: 1.1; }
.vdo-ref-slide-catalog .vdo-ref-slide-copy a { background: #fff; color: #302b2b; }
.vdo-ref-slide-note { position: absolute; z-index: 2; left: 25px; bottom: 12px; color: #66564d; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.vdo-ref-slide-catalog ~ .vdo-ref-slide-prev,
.vdo-ref-slide-catalog ~ .vdo-ref-slide-next { color: #443832; text-shadow: none; }

@media (min-width: 1500px) {
  .vdo-ref-model-art img { width: 96px; }
  .vdo-ref-model-art strong { left: 76px; }
  .vdo-ref-model-art b { font-size: 25px; }
  .vdo-ref-model-art:before { width: 90px; height: 90px; top: 23px; }
  .vdo-ref-model-name { font-size: 13px; }
}

@media (max-width: 1100px) {
  .vdo-ref-model-art b { font-size: 18px; }
  .vdo-ref-model-art em { font-size: 9px; }
  .vdo-ref-model-name { font-size: 11px; }
  .vdo-ref-model-art:before { width: 60px; height: 60px; }
  .vdo-ref-model-art img { left: -7px; width: 62px; }
  .vdo-ref-model-art strong { left: 40px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .vdo-ref-model-controls { display: flex; }
  .vdo-ref-opening-category-grid.vdo-ref-model-grid { grid-template-columns: none; grid-template-rows: repeat(2, 166px); grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; height: 344px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vdo-ref-opening-category-grid.vdo-ref-model-grid::-webkit-scrollbar { display: none; }
  .vdo-ref-model { scroll-snap-align: start; }
  .vdo-ref-model-art img { left: -8px; width: 83px; }
  .vdo-ref-model-art strong { left: 70px; }
  .vdo-ref-model-art b { font-size: 25px; }
  .vdo-ref-model-art em { font-size: 11px; }
  .vdo-ref-model-name { font-size: 13px; }
  .vdo-ref-model-art:before { width: 78px; height: 78px; }
}
@media (max-width: 760px) {
  .vdo-ref-opening-category-grid.vdo-ref-model-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(4, 166px); overflow: visible; height: auto; }
  .vdo-ref-model-art b { font-size: 27px; }
  .vdo-ref-model-art em { font-size: 12px; }
  .vdo-ref-model-name { font-size: 12px; }
  .vdo-ref-model-art:before { width: 76px; height: 76px; }
  .vdo-ref-model-art img { left: -8px; width: 91px; }
  .vdo-ref-model-art strong { left: 78px; }
  .vdo-ref-slide-catalog .vdo-ref-slide-copy { max-width: 100%; }
  .vdo-ref-slide-catalog .vdo-ref-slide-copy h2 { font-size: 28px; }
  .vdo-ref-slide-highlight { font-size: 15px; margin-bottom: 15px; }
  .vdo-ref-slide-facts { gap: 4px; }
  .vdo-ref-slide-facts span { width: 46px; height: 46px; font-size: 10px; border-radius: 13px; }
  .vdo-ref-opening-slider { height: 480px; }
  .vdo-ref-slide.vdo-ref-slide-catalog > img.vdo-ref-slide-product { left: 3%; bottom: 6%; width: 94%; height: 40%; }
}

@media (min-width: 1000px) {
  .vdo-product-gallery .woocommerce-product-gallery {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }
  .vdo-product-gallery .woocommerce-product-gallery > .flex-viewport {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .vdo-product-gallery .woocommerce-product-gallery > .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 !important;
    padding: 0;
  }
  .vdo-product-gallery .flex-control-thumbs li {
    width: 88px !important;
    height: 88px;
    margin: 0 !important;
    border: 1px solid #ececf1;
    border-radius: 5px;
  }
  .vdo-product-gallery .flex-control-thumbs li:has(img.flex-active) {
    border-color: #e84960;
  }
  .vdo-product-gallery .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .vdo-product-gallery .woocommerce-product-gallery__image {
    height: auto;
    aspect-ratio: 1;
  }
  .vdo-product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }
}

@media (max-width: 999px) {
  .vdo-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    grid-template-columns: none;
  }
  .vdo-product-gallery .flex-control-thumbs li {
    width: 90px !important;
    height: 90px;
    flex: 0 0 90px;
    border: 1px solid #ececf1;
    border-radius: 5px;
  }
  .vdo-product-gallery .flex-control-thumbs li:has(img.flex-active) {
    border-color: #e84960;
  }
  .vdo-product-gallery .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
