/* Dearca Premium 3.0: galleria proprietaria WooCommerce senza FlexSlider.
 * La separazione non dipende dal viewport del plugin. */
.woocommerce div.product .images.dearca-book-gallery,
.woocommerce-page div.product .images.dearca-book-gallery {
  display:block !important;
  float:left;
  width:39%;
  max-width:460px;
  margin:0 0 42px !important;
  padding:0 !important;
  overflow:visible !important;
  box-sizing:border-box;
}
.woocommerce div.product .dearca-book-gallery__main {
  width:100%;
  min-width:0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  margin:0 !important;
  padding:0 !important;
  position:static;
  line-height:0;
}
.woocommerce div.product .dearca-book-gallery__full {
  display:block;
  max-width:100%;
  width:100%;
  text-align:center;
  cursor:zoom-in;
  line-height:0;
}
.woocommerce div.product .dearca-book-gallery__featured {
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  max-height:555px !important;
  margin:0 auto !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center;
  box-shadow:0 13px 26px rgba(18,34,40,.10);
  border:0;
  border-radius:4px;
}
.woocommerce div.product .dearca-book-gallery__thumbs {
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:stretch !important;
  justify-content:center !important;
  gap:20px !important;
  width:100% !important;
  clear:both !important;
  margin:38px 0 0 !important;
  padding:19px 0 0 !important;
  border-top:1px solid #e6ded2;
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  overflow:visible !important;
  list-style:none;
  box-sizing:border-box;
}
.woocommerce div.product .dearca-book-gallery__thumb {
  all:unset;
  appearance:none;
  -webkit-appearance:none;
  display:flex !important;
  flex:0 0 128px !important;
  width:128px !important;
  height:174px !important;
  padding:7px !important;
  margin:0 !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  border:1px solid #e3ddd3 !important;
  border-radius:5px !important;
  overflow:hidden !important;
  background:#fff !important;
  box-shadow:0 5px 16px rgba(18,34,40,.08) !important;
  cursor:pointer;
  opacity:.83;
  transition:opacity .15s, border-color .15s, box-shadow .15s;
}
.woocommerce div.product .dearca-book-gallery__thumb:hover,
.woocommerce div.product .dearca-book-gallery__thumb.is-active {
  opacity:1;
  border-color:#c4a370 !important;
  box-shadow:0 7px 17px rgba(18,34,40,.13) !important;
}
.woocommerce div.product .dearca-book-gallery__thumb:focus-visible {
  outline:3px solid #c5a06d;
  outline-offset:3px;
}
.woocommerce div.product .dearca-book-gallery__thumb-photo {
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;height:100%;
  overflow:hidden;
}
.woocommerce div.product .dearca-book-gallery__thumb-photo img {
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  box-shadow:none !important;
  background:transparent !important;
  transform:none !important;
}
@media(max-width:1100px) {
  .woocommerce div.product .images.dearca-book-gallery,
  .woocommerce-page div.product .images.dearca-book-gallery {width:40%;}
}
@media(max-width:780px) {
  .woocommerce div.product .images.dearca-book-gallery,
  .woocommerce-page div.product .images.dearca-book-gallery {
    float:none !important;
    width:100% !important;
    max-width:none !important;
    margin-bottom:42px !important;
  }
  .woocommerce div.product .dearca-book-gallery__featured {max-height:480px !important;}
  .woocommerce div.product .dearca-book-gallery__thumbs {margin-top:32px !important;gap:16px !important;}
}
@media(max-width:480px) {
  .woocommerce div.product .dearca-book-gallery__thumbs {margin-top:28px !important;gap:14px !important;}
  .woocommerce div.product .dearca-book-gallery__thumb {
    flex-basis:110px !important;width:110px !important;height:150px !important;
  }
}
