/* toha/portfolio: reemplazo minimo de Go Portfolio 1.6.1 (estilo "flex", efecto "slide push up").
   Reutiliza las clases del markup original; los valores salen de variables que el PHP pone
   por portafolio desde gw_go_portfolio_portfolios. */

/* Contexto que antes daba el Frontend Builder (.frb_text): fuente, tamano y color heredados. */
.toha-pf { display: flow-root; font-family: "Open Sans", sans-serif; font-size: 14px; line-height: 21px; color: #808080; margin: 0; }
.toha-pf .gw-gopf { position: relative; }
.toha-pf .gw-gopf * { -webkit-tap-highlight-color: rgba(0,0,0,0); }
.toha-pf a { outline: none !important; }
.toha-pf .gw-gopf-clearfix::after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.toha-pf .gw-gopf-clearfix { display: block; }
.toha-pf .gw-gopf img {
	border: none !important; border-radius: 0 !important; box-shadow: none !important; display: inline-block !important;
	height: auto !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; vertical-align: middle; transition: none;
}

/* Filtro */
.toha-pf .gw-gopf-filter { position: relative; z-index: 1; margin-left: calc(-1 * var(--pf-fhspace)); }
.toha-pf .gw-gopf-cats { list-style: none; display: block; margin: -10px 0 var(--pf-fvspace) !important; padding: 0; position: relative; }
.toha-pf .gw-gopf-cats-centered .gw-gopf-cats { text-align: center; }
.toha-pf .gw-gopf-cats-right .gw-gopf-cats { text-align: right; }
.toha-pf .gw-gopf-cats > span { background: none; display: inline-block; margin: 10px 0 0 var(--pf-fhspace); padding: 0; }
.toha-pf .gw-gopf-cats > span a {
	background: var(--pf-c1); border-radius: 0; color: var(--pf-c3); display: block; font-family: inherit; font-size: 12px;
	height: 29px; line-height: 29px; padding: 0 10px; text-decoration: none;
	transition: color .08s ease-in-out, background-color .08s ease-in-out, border-color .08s ease-in-out;
}
.toha-pf .gw-gopf-cats > span a:hover { background: var(--pf-c2); color: var(--pf-c3); text-decoration: none; }
.toha-pf .gw-gopf-cats > span.gw-gopf-current a { background: var(--pf-hl); }

/* Grilla */
.toha-pf .gw-gopf-posts-wrap { position: relative; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.toha-pf .gw-gopf-posts-wrap-inner { position: relative; margin-left: calc(-1 * var(--pf-hspace)); margin-top: calc(-1 * var(--pf-vspace)); }
.toha-pf .gw-gopf-posts { margin-right: -10px; width: 100% !important; position: relative; }
.toha-pf .gw-gopf-col-wrap { float: left; letter-spacing: 0; position: relative; width: 100%; z-index: 2; }
.toha-pf .gw-gopf-2cols .gw-gopf-col-wrap { width: 50%; }
.toha-pf .gw-gopf-3cols .gw-gopf-col-wrap { width: 33.33%; }
.toha-pf .gw-gopf-4cols .gw-gopf-col-wrap { width: 25%; }
.toha-pf .gw-gopf-5cols .gw-gopf-col-wrap { width: 20%; }
.toha-pf .gw-gopf-6cols .gw-gopf-col-wrap { width: 16.66%; }
.toha-pf .gw-gopf-col-wrap:hover { z-index: 3; }
.toha-pf .gw-gopf-posts.toha-pf-laid .gw-gopf-col-wrap { position: absolute; left: 0; top: 0; }
.toha-pf .toha-pf-ready .gw-gopf-posts { transition: height .8s; }
.toha-pf .toha-pf-ready .gw-gopf-col-wrap { transition: transform .8s, opacity .8s; }
.toha-pf .gw-gopf-col-wrap.toha-pf-hidden { opacity: 0; pointer-events: none; z-index: 1; }
.toha-pf .gw-gopf-post-col { position: relative; margin-left: var(--pf-hspace); margin-top: var(--pf-vspace); }

/* Tarjeta */
.toha-pf .gw-gopf-post { position: relative; border-radius: 0; overflow: hidden; }
.toha-pf .gw-gopf-post-header {
	position: relative !important; width: 100%; bottom: -100%; height: 100%;
	transition: height .3s ease-in-out, margin .3s ease-in-out;
}
.toha-pf .gw-gopf-post-media-wrap {
	background-size: cover; background-position: var(--pf-bgpos); overflow: hidden; position: relative; z-index: 1;
	height: 0; padding-bottom: var(--pf-ratio);
}
.toha-pf .gw-gopf-post-media-wrap img { width: 100% !important; visibility: hidden; }

/* Overlay (hover) */
.toha-pf .gw-gopf-post-overlay, .toha-pf .gw-gopf-post-overlay-bg {
	background: transparent; height: 100%; opacity: 0; overflow: hidden; position: absolute; text-align: center; width: 100%; z-index: 3;
	transition: opacity .1s ease-in-out, height .1s .1s ease-in-out, top .1s .1s ease-in-out, bottom .1s .1s ease-in-out;
}
.toha-pf .gw-gopf-post-overlay { display: none; top: 0; }
.toha-pf .gw-gopf-has-overlay .gw-gopf-post-overlay { display: block; }
.toha-pf .gw-gopf-post-overlay-bg { display: block; left: 0; top: 0; z-index: -1; background-color: var(--pf-ov); opacity: var(--pf-ovop); }
.toha-pf .gw-gopf-post-header:hover .gw-gopf-post-overlay {
	opacity: 1; transition: opacity .3s ease-in-out, height .3s ease-in-out, top .3s ease-in-out, bottom .3s ease-in-out;
}
.toha-pf .gw-gopf-post-overlay::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; margin-right: -.25em; }
.toha-pf .gw-gopf-post-overlay-inner {
	display: inline-block; left: 1px; padding-top: 20px; position: relative; text-align: center; top: -40px; vertical-align: middle; visibility: hidden;
	transition: opacity 0s .1s ease-in-out, top 0s .1s ease-in-out, padding 0s .1s ease-in-out;
}
.toha-pf .gw-gopf-post-header:hover .gw-gopf-post-overlay-inner {
	padding-top: 0; top: -5px; visibility: visible;
	transition: opacity .3s ease-in-out, top .15s ease-in-out, padding .15s .1s ease-in-out;
}
.toha-pf a.gw-gopf-circle {
	background: var(--pf-hl); border-radius: 22px; display: inline-block; height: 44px; line-height: 44px; position: relative;
	margin: 10px 3px 0; width: 44px; vertical-align: top;
	transition: color .08s ease-in-out, background-color .08s ease-in-out, border-color .08s ease-in-out;
}
.toha-pf a.gw-gopf-circle:hover { background: var(--pf-c1); }
.toha-pf .gw-gopf-circle img { vertical-align: 0 !important; }

/* Contenido (oculto bajo la imagen; sube en hover) */
.toha-pf .gw-gopf-post-content-wrap { overflow: hidden; position: absolute; top: 100%; width: 100%; z-index: 1; transition: all .3s ease-in-out; }
.toha-pf .gw-gopf-post-content-wrap::before {
	content: ""; display: block; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: -1; background-color: var(--pf-cbg);
}
.toha-pf .gw-gopf-post-content {
	box-sizing: border-box; overflow: hidden; text-align: left; color: var(--pf-c1); font-family: inherit; font-size: 12px; line-height: 15px; padding: var(--pf-pad);
}
.toha-pf .gw-gopf-post-content a, .toha-pf .gw-gopf-post-content a:hover { text-decoration: none; }
.toha-pf .gw-gopf-post-content a { color: var(--pf-hl); }
.toha-pf .gw-gopf-post-content a:hover { color: var(--pf-c1); }
.toha-pf .gw-gopf-post-content h2 {
	clear: both; color: var(--pf-c1) !important; font-family: inherit !important; font-size: 16px !important; font-weight: 300;
	line-height: 20px !important; margin: 0 0 3px !important; padding: 0;
}
.toha-pf .gw-gopf-post-content h2 a { color: inherit; font-size: inherit !important; line-height: inherit !important; margin: 0 0 3px !important; padding: 0; }
.toha-pf .gw-gopf-post-content h2 a:hover { color: var(--pf-hl); }
.toha-pf .gw-gopf-post-more { margin-top: 15px; text-align: center; }
.toha-pf .gw-gopf-post-more a { color: var(--pf-hl); font-size: 12px; font-weight: bold; }
.toha-pf .gw-gopf-post-more a:hover { color: var(--pf-c1); }

/* Responsivo (general settings de Go Portfolio: 768-959 = 2 col, <768 = 1 col, <480 max 400px) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	.toha-pf .gw-gopf { margin: 0 auto; }
	.toha-pf .gw-gopf .gw-gopf-col-wrap { width: 50% !important; }
	.toha-pf .gw-gopf-1col .gw-gopf-col-wrap { width: 100% !important; }
}
@media only screen and (max-width: 767px) {
	.toha-pf .gw-gopf { margin: 0 auto; }
	.toha-pf .gw-gopf .gw-gopf-col-wrap { width: 100%; }
}
@media only screen and (max-width: 479px) {
	.toha-pf .gw-gopf { max-width: 400px; }
}
@media (prefers-reduced-motion: reduce) {
	.toha-pf *, .toha-pf-lightbox * { transition: none !important; }
}

/* Lightbox propio (reemplaza Magnific Popup) */
.toha-pf-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.toha-pf-lightbox-bg { position: absolute; inset: 0; background: #0b0b0b; opacity: .8; }
.toha-pf-lightbox figure { position: relative; margin: 0; padding: 40px 0; max-width: calc(100vw - 100px); text-align: left; }
.toha-pf-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; box-shadow: 0 0 8px rgba(0,0,0,.6); }
.toha-pf-lightbox figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; color: #bababa; font-size: 16px; line-height: 20px; }
.toha-pf-lightbox figcaption small { font-size: 12px; white-space: nowrap; }
.toha-pf-lightbox button { position: absolute; border: 0; padding: 0; cursor: pointer; opacity: .65; background-color: transparent; background-repeat: no-repeat; }
.toha-pf-lightbox button:hover { opacity: 1; }
.toha-pf-lightbox .toha-pf-lb-close { right: 0; top: 16px; width: 18px; height: 18px; background-image: url(img/icon_close.png); background-size: 18px auto; }
.toha-pf-lightbox .toha-pf-lb-prev, .toha-pf-lightbox .toha-pf-lb-next { top: 50%; margin-top: -45px; width: 90px; height: 90px; background-position: 50% 50%; background-size: 34px auto; }
.toha-pf-lightbox .toha-pf-lb-prev { left: 0; background-image: url(img/icon_lb_prev.png); }
.toha-pf-lightbox .toha-pf-lb-next { right: 0; background-image: url(img/icon_lb_next.png); }
@media (min-resolution: 2dppx) {
	.toha-pf-lightbox .toha-pf-lb-close { background-image: url(img/icon_close@2x.png); }
	.toha-pf-lightbox .toha-pf-lb-prev { background-image: url(img/icon_lb_prev@2x.png); }
	.toha-pf-lightbox .toha-pf-lb-next { background-image: url(img/icon_lb_next@2x.png); }
}
