/*
 * Product image zoom (Phase 3, §17.5): replaces the commercial MagicZoomPlus of the live site with the theme's own
 * code (assets/js/product-zoom.js). Same markup classes (MagicToolbox* / mz-*) and the same look, measured on the
 * live page: inner round magnifier, hint pill at the bottom, 100px selectors on the left, click = full-size view.
 */

/* Container with the selectors (left) and the main image. */
div.MagicToolboxContainer { text-align: center; }
div.MagicToolboxContainer.minWidth { min-width: 250px; }
div.MagicToolboxMainContainer { max-width: 100%; }
div.MagicToolboxContainer.selectorsLeft { display: inline-table; height: 100%; }
div.MagicToolboxContainer.selectorsLeft .MagicToolboxMainContainer,
div.MagicToolboxContainer.selectorsLeft .MagicToolboxSelectorsContainer { display: table-cell; vertical-align: top; height: 100%; padding-right: 5px; }
div.MagicToolboxContainer.selectorsLeft .MagicToolboxSelectorsContainer { position: relative; }
div.MagicToolboxContainer.selectorsLeft .MagicToolboxSelectorsContainer a { display: block; }
div.MagicToolboxSelectorsContainer img { max-width: 100%; }

/* Main image. */
.MagicZoom, .mz-figure, .mz-zoom-window, .mz-hint, .mz-thumb img { box-sizing: border-box; }
a.MagicZoom { display: inline-block; position: relative; vertical-align: middle; z-index: 1; cursor: pointer; outline: 0; }
.mz-figure { display: inline-block; position: relative; vertical-align: middle; overflow: hidden; margin: 0; z-index: 1; }
.mz-figure > img { display: block; width: 100%; height: auto; margin: 0 auto; }
/* Question popup (tmpl=component): the image sits directly in <body>, full popup width as on live. */
body.component .mz-figure > img { width: auto; max-width: calc(100vw - 5px); }
.mz-figure.mz-active { overflow: visible; cursor: none; }

/* Round magnifier inside the image. */
.mz-zoom-window { position: absolute; top: -100000px; left: 0; z-index: 2000; overflow: hidden; border-radius: 100%;
	background: rgba(255, 255, 255, .3); box-shadow: 0 0 3px rgba(0, 0, 0, .2); pointer-events: none; }
.mz-zoom-window::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: 100%;
	border: 1px solid rgba(170, 170, 170, .7); box-shadow: inset 0 0 20px 1px rgba(0, 0, 0, .3); }
.mz-zoom-window img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; }

/* Hint «Για zoom μετακινήστε το ποντίκι στη φωτογραφία». */
.mz-hint { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 1000; margin: 0; padding: 0 10%; text-align: center;
	color: #eee; font: 12px/1.2em "Lucida Grande", "Lucida Sans Unicode", Verdana, "Helvetica Neue", Arial, Helvetica, sans-serif;
	pointer-events: none; -webkit-font-smoothing: antialiased; transition: opacity .25s, z-index .25s; }
.mz-hint-message { display: inline-block; padding: .7em 1.1em; border-radius: 2em; background: rgba(49, 51, 61, .7); }
.mz-hint-message::before { content: "\2295"; margin-right: 6px; font-family: serif; font-size: 1.5em; vertical-align: -2px; }
.mz-hint-hidden { opacity: 0; z-index: -1; transition-delay: .6s; }

/* Selectors. */
.mz-thumb, .mz-thumb:focus { display: inline-block; line-height: 0; outline: 0; }
.mz-thumb img { border: 0; box-shadow: 0 0 1px 0 rgba(0, 0, 0, .3); }
.mz-thumb:hover:not(.mz-thumb-selected) img { filter: brightness(75%); }
.mz-thumb-selected img { filter: brightness(60%); }
a.mz-thumb:hover, a.mz-thumb:active, a.mz-thumb:focus { background: none !important; }

/* Full-size view (click on the image). */
.ec-zoom-expand { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; background: rgba(255, 255, 255, .95);
	display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.ec-zoom-expand img { max-width: 92vw; max-height: 92vh; box-shadow: 0 0 20px rgba(0, 0, 0, .2); }
.ec-zoom-expand button { position: absolute; border: 0; background: rgba(49, 51, 61, .7); color: #eee; font: 14px "Roboto Condensed", sans-serif;
	padding: 8px 14px; border-radius: 2em; cursor: pointer; }
.ec-zoom-expand .ec-zoom-close { top: 16px; right: 16px; }
.ec-zoom-expand .ec-zoom-prev { left: 16px; top: 50%; }
.ec-zoom-expand .ec-zoom-next { right: 16px; top: 50%; }
