/*** OVERRIDES ***/

.cloudzoom-zoom-inside {
  cursor: zoom-in;
  z-index: 1;
}
.thumbelina {
  left: 0;
  right: 0;
  width: 70px;
  margin: 0 auto;
}
.thumbelina li img, .thumbelina li img:hover {
  height: 70px;
  border: none;
  width: 70px;
  object-fit: cover;
}
.thumbelina-but.vert {
  line-height: 28px;
}

/*** CUSTOM ***/

#thumbnails {
  position: relative;
  width: 300px;
  float: left;
  margin-top: 20px;
  z-index: 2;
}
#thumbnails a {
  width: 100%;
  display: inline-block;
  text-align: center;
}
/* Prevent FOUC */
#thumbnails ul {
  visibility: hidden;
}
#thumbnails ul.thumbelina {
  visibility: visible;
}
#product-image {
  position: relative;
  /*display: inline-block;*/
  float: left;
  width: 85%;
  line-height: 0;
  margin-left: 1rem;
}

#zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: fadeout 0.5s; /* Sync with JS */
  background: url('http://res.cloudinary.com/thdoan/image/upload/v1498133706/carousel/watch01-large.jpg') no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  cursor: zoom-out;
  display: none;
  opacity: 0;
  z-index: 1;
}

.fullscreen {
  overflow: hidden;
}
.fullscreen .cloudzoom-zoom-inside {
  visibility: hidden; /* Prevent FOUC */
}
/*.fullscreen #thumbnails {
  position: fixed;
  top: 8px;
  left: 8px;
  opacity: 0.8;
}*/
.fullscreen #zoom-overlay {
  animation: fadein 0.5s; /* Sync with JS */
  display: block;
  opacity: 1;
}

@keyframes fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeout {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
/*custom fa css*/
.cloudzoom-blank {
    display: none !important;
}
.thumbelina{
    display: table;
    margin: 0 auto;
    width: 100%;
}
.thumbelina-but.vert {
    bottom: -5px !important;
}
.fl_scr {
    display: flex;
}
@media only screen and (max-width: 380px) {
.thumbelina li {
    padding: 3px;
}
div#product-image img {
    width: 80%;
}
.thumbelina li img, .thumbelina li img:hover {
    object-fit: cover;
}
}
div#product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media only screen and (min-width: 810px) {
div#thumbnails div:nth-child(2) {
    height: 95% !important;
    top: -5px;
}
}
@media only screen and (max-width: 991px) {
.thumbelina-but.vert {
    height: 20px;
    line-height: 20px;
    display: table;
    margin: 0 auto;
    width: 100%;
}
  }
@media only screen and (min-width: 992px) {
.thumbelina-but.vert {
    height: 20px;
    line-height: 20px;
    display: table;
    margin: 0 auto;
    width: 100%;
}
div#product-image img {
    width: 100%;
    object-fit: contain;
}
}
@media only screen and (max-width: 809px) {
div#thumbnails div:nth-child(2) {
    height: 88% !important;
    width: 100% !important;
}
div#product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#thumbnails{
  width: 15%;
  float: left;
}
#product-image{
    float: left;
    width: 85%;
}
.thumbelina-but.vert {
    width: 100% !important;
    display: table;
    margin: 0 auto;
}
}
.thumbelina-but.vert {
  z-index: -1;
}
.thumbelina-but.vert.top.disabled {
    color: #ac8a8a;
    cursor: not-allowed;
}
.thumbelina-but.vert.bottom.disabled {
    color: #ac8a8a;
    cursor: not-allowed;
}
div#zoom-overlay {
    display: none !important;
}

/*End custom fa css*/