body.ecommerce.productDetail .product-page .product-main-image {
    display: flex;
    flex: 0 0 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}
body.ecommerce.productDetail .product-page .product-main-image:not(.initialized-loaded) .product-cover-wrapper {
    position: relative;
    display: inline-block;
}
body.ecommerce.productDetail .product-page .product-main-image:not(.initialized-loaded) .product-cover-wrapper>.productImage {
	padding: var(--dgl-fotorama-padding, 0);
}
body.ecommerce.productDetail .product-page .product-main-image:not(.initialized-loaded) .product-cover-wrapper>.productImage>img.img-responsive {
	max-width: var(--dgl-fotorama-max-width, 300);
}
body.ecommerce.productDetail .product-page .product-main-image:not(.initialized-loaded) .product-cover-wrapper>.gallery-placeholder {
	height: calc(var(--dgl-fotorama-thumb-height) + 2px + 2px);
	margin-top: 0.75rem;
}
body.ecommerce.productDetail .product-page .product-main-image:not(.initialized-loaded) .fotorama {
    position: absolute;
    opacity: 0;
    left: 0;
    right: 0;
    top: 0;
}
body.ecommerce.productDetail .product-page .product-main-image.initialized-loaded .fotorama {
    position: static;
    opacity: 1;
}
body.ecommerce.productDetail .product-page .product-main-image.initialized-loaded .product-cover-wrapper {
	cursor: pointer !important;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}
body.ecommerce.productDetail .product-page .product-main-image.initialized-loaded .product-cover-wrapper.gallery-setted {
	bottom: 74px;
}
body.ecommerce.productDetail .product-page .product-main-image.initialized-loaded .product-cover-wrapper>.productImage {
	display: none;
}


.product-main-image>img {
	max-width: 100%;
	height: auto;
	width: auto;
}

.product-main-image .fotorama>a>img {
	width: auto;
	height: auto;
	max-width: 100%;
}
.product-main-image .fotorama .fotorama__nav {
	margin-top: .75rem;
}
.product-main-image .fotorama .fotorama__nav .fotorama__thumb {
	margin: .25rem .75rem .25rem 0;
	width: calc(100% - .75rem);
	height: calc(100% - .75rem);
	outline: solid 1px rgba(var(--dgl-bs-primary-rgb),.5);
}
.product-main-image .fotorama .fotorama__nav img.fotorama__img {
	position: relative !important;
	width: 100% !important;
    height: 100% !important;
    inset: auto !important;
    object-fit: cover !important;
    object-position: center !important;
}
.product-main-image .fotorama .fotorama__nav .fotorama__active  .fotorama__thumb {
	outline-color: rgba(var(--dgl-bs-primary-rgb),1);
}
.product-main-image .fotorama .fotorama__thumb-border {
	display: none !important;
}
.product-main-image .fotorama .fotorama__nav--thumbs .fotorama__nav__frame:not(.fotorama__active) {
	opacity: .3;
}
.product-main-image .fotorama .fotorama__nav:after ,
.product-main-image .fotorama .fotorama__nav:before ,
.product-main-image .fotorama .fotorama__stage:after ,
.product-main-image .fotorama .fotorama__stage:before {
	content: none !important;
}
.product-main-image .fotorama .fotorama__wrap>.open-product-slideshow {
	position: absolute;
	display: block;
	left: 0;
	right: 0;
	top: 0;
	height: auto !important;
	width: auto !important;
	z-index: 999;
	cursor: pointer;
}
.product-main-image .fotorama {
	visibility: hidden;
}
.product-main-image.initialized .fotorama {
	visibility: visible;
}

.product-slideshow {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: rgba(var(--dgl-black-rgb),.80);
	z-index: 999;
}
.product-slideshow .fotorama__wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 100% !important;
	height: 100% !important;
	max-width: 800px !important;
	max-height: calc(100% - 40px) !important;
}
.product-slideshow .fotorama__stage {
	height: 100% !important;
	width: 100% !important;
	max-height: calc(100% - 80px) !important;
}
.product-slideshow .fotorama__wrap--toggle-arrows .fotorama__arr ,
.product-slideshow .fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__fullscreen-icon {
	opacity:1
}
.product-slideshow .fotorama__arr--disabled {
	opacity: .1 !important;
}
.product-slideshow .fotorama__wrap--toggle-arrows .fotorama__arr--prev ,
.product-slideshow .fotorama__wrap--toggle-arrows .fotorama__arr--next {
	background: transparent;
	border: solid 1px #fff;
	color: #fff;
	font-size: 20px;
	display: block;
	text-align: center;
	line-height: 30px;
}
.product-slideshow .fotorama__wrap--toggle-arrows .fotorama__arr--prev:before {
	content: "\f104";
	font-family: "Font Awesome 5 Pro";
}
.product-slideshow .fotorama__wrap--toggle-arrows .fotorama__arr--next:before {
	content: "\f105";
	font-family: "Font Awesome 5 Pro";
}
.product-slideshow button.close-product-slideshow {
	position: fixed;
	top: 30px;
	right: 30px;
	width: 40px;
	height: 40px;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	background: none !important;
	border: none !important;
	z-index: 99;
}
.product-slideshow button.close-product-slideshow>i {
	font-size: 30px;
	color: #fff;
}
.product-slideshow .fotorama__caption {
	position: absolute;
	z-index: 12;
	bottom: auto;
	left: auto;
	right: auto;
	font-family: inherit;
	font-weight: 300;
	font-size: 14px;
	line-height: 22px;
	color: #fff;
	text-align: center;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 66px;
}
.product-slideshow .fotorama__caption .fotorama__caption__wrap {
	padding: 0 0 0 0;
	background: transparent;
	max-height: 66px;
}
.product-slideshow .fotorama__stage .fotorama__img {
	position: relative !important;
	width: auto !important;
	height: auto !important;
	max-width: calc(100% - 100px) !important;
	max-height: calc(100% - 100px) !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%,calc(-50% - 40px)) !important;
	box-shadow: 0 10px 10px rgba(0 0 0,.5) !important;
}
.product-slideshow .fotorama__nav-wrap {
	margin: 0 0 0 0;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}
.product-slideshow .fotorama .fotorama__nav--thumbs .fotorama__nav__frame:not(.fotorama__active) {
	opacity: .3;
}
.product-slideshow .fotorama .fotorama__thumb-border {
	background: transparent !important;
	border-color: rgba(var(--dgl-bs-white-rgb),.5) !important;
}
.product-slideshow .fotorama .fotorama__nav .fotorama__thumb {
	margin: 5px 5px 5px 5px;
	width: calc(100% - 10px);
	height: calc(100% - 10px);
}