/*
 * Visual Portfolio item-style positioning and hover behavior previously
 * provided by the Elysium parent theme's main.css (lines ~975-1205).
 *
 * The Elysium VP custom item styles ("minimal", "creative", "alternative")
 * declare HTML markup (caption-box, caption-center-box, etc.) via templates
 * the child theme already ships under `visual-portfolio/items-list/`. The
 * actual positioning, opacity, and hover transition logic lived in Elysium's
 * main stylesheet — not in the per-style style.css. Without these rules the
 * caption-box renders as a static block under the image instead of fading in
 * as an overlay on hover.
 *
 * Ported verbatim from the Elysium source so production parity is exact.
 */

/* ===== item-style-creative ===== */

.item-style-creative .vp-portfolio__item-img {
	position: relative;
	overflow: hidden;
}

.item-style-creative:hover .vp-portfolio__item-img img {
	transform: scale(1.5);
	transition: all 0.4s linear;
}

.item-style-creative .vp-portfolio__item-img a {
	height: 100% !important;
	width: 100%;
	position: relative !important;
	top: 0;
	left: 0;
}

.item-style-creative .vp-portfolio__item-img img {
	max-width: 100%;
	width: 100%;
	height: auto;
	display: block;
	transition: all 0.4s linear;
}

.item-style-creative .caption-box {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	transition: all 0.3s ease-in-out;
}

.item-style-creative:hover .caption-box {
	background-color: rgba(255, 255, 255, 0.9);
	opacity: 1;
}

.item-style-creative .caption-box .caption-center-box {
	border: 1px solid #000;
	transform: scale(0.9);
	display: table;
	height: 100%;
	width: 100%;
	transition: all 0.4s ease-in-out;
}

.item-style-creative .caption-box:hover .caption-center-box {
	transform: scale(1);
}

.item-style-creative .caption-box .caption-body {
	display: flex;
	height: 100%;
	width: 100%;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.item-style-creative .caption-box a.vp-portfolio__item-meta {
	height: 100%;
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 999;
	padding: 25px;
}

.item-style-creative .caption-box .vp-portfolio__item-meta-title {
	font-size: 1.5em;
	font-weight: 400;
	color: #000;
	display: table-cell;
	vertical-align: middle;
	padding: 15px;
}

.item-style-creative .caption-box .vp-portfolio__item-meta-categories {
	padding-top: 50px;
	text-align: center;
	position: absolute;
	display: block;
	left: 0;
	right: 0;
	bottom: 0;
	color: #000;
	padding: 10px;
	text-transform: lowercase;
}

.item-style-creative .caption-box .vp-portfolio__item-meta-category {
	display: inline-block;
}

/* ===== item-style-minimal ===== */

.item-style-minimal .vp-portfolio__item-img {
	position: relative;
	overflow: hidden;
}

.item-style-minimal:hover .vp-portfolio__item-img img {
	transition: all 0.4s linear;
}

.item-style-minimal .vp-portfolio__item-img a {
	height: 100% !important;
	width: 100%;
	position: relative !important;
	top: 0;
	left: 0;
}

.item-style-minimal .vp-portfolio__item-img img {
	max-width: 100%;
	width: 100%;
	height: auto;
	display: block;
	transition: all 0.4s linear;
}

.item-style-minimal .caption-box {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	transition: all 0.3s ease-in-out;
}

.item-style-minimal:hover .caption-box {
	background-color: rgba(255, 255, 255, 0.9);
	opacity: 1;
}

.item-style-minimal .caption-box .caption-center-box {
	display: table;
	height: 100%;
	width: 100%;
	transition: all 0.4s ease-in-out;
}

.item-style-minimal .caption-box .caption-body {
	display: flex;
	height: 100%;
	width: 100%;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.item-style-minimal .caption-box a.vp-portfolio__item-meta {
	height: 100%;
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 999;
	padding: 25px;
}

.item-style-minimal .caption-box .vp-portfolio__item-meta-title {
	font-size: 1.5em;
	font-weight: 400;
	color: #000;
	display: table-cell;
	vertical-align: middle;
	padding: 15px;
}

.item-style-minimal .caption-box .vp-portfolio__item-meta-categories {
	padding-top: 50px;
	text-align: center;
	position: absolute;
	display: block;
	left: 0;
	right: 0;
	bottom: 0;
	color: #000;
	padding: 10px;
	text-transform: lowercase;
}

.item-style-minimal .caption-box .vp-portfolio__item-meta-category {
	display: inline-block;
}

/* ===== item-style-alternative ===== */

.item-style-alternative figcaption {
	text-align: center;
}

.item-style-alternative .caption-box .caption-body h2 {
	font-size: 1.5em;
	font-weight: 400;
	line-height: 25px;
	margin-bottom: 5px;
	margin-top: 15px;
}

.item-style-alternative .caption-box .vp-portfolio__item-meta-categories {
	text-transform: lowercase;
	font-style: italic;
}

.item-style-alternative .caption-box .vp-portfolio__item-meta-category {
	display: inline-block;
}
