/*
Theme Name: Giraldez Arquitectura
Author URI: http://www.ken.es
Description: Un tema desarrollado por KEN en exclusiva para Giraldez Arquitectura.
Author: Estudio Ken S.L.
Version: 1.0
License: GNU/GPL Version 2 or later. http://www.gnu.org/licenses/gpl.html
Copyright: (c) 2018  Estudio Ken S.L.
*/

/* Normalize */
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}

*,
*::after,
*::before {	box-sizing: border-box; }

body {
	/* Grid gap */
	--gap: 10px;
	/* Color scheme */
	--body-text: #424240;
	--body-bg: #f5f5f5;
	--link-text: #000000;
	--link-text-hover: #424240;
	--grid-name-text: #424240;
	--grid-title-text: #424240;
	--grid-nav-text: #f5f5f5;
	--grid-nav-bg: #000000;
	--grid-nav-text-hover: #f5f5f5;
	--grid-nav-bg-hover: #424240;
	--grid-text: #424240;
	font-family: 'Libre Franklin', Helvetica, Arial, sans-serif;
	min-height: 600px;
	color: #424240;
	color: var(--body-text);
	background: #f5f5f5;
	background: var(--body-bg);
}

a { text-decoration: none; color: #000000; color: var(--link-text); outline: none; }
a:hover, a:focus { color: #424240; color: var(--link-text-hover); }
.hidden { position: absolute; overflow: hidden; width: 0; height: 0; pointer-events: none; }

/* Icons */
.icon { display: block; width: 1.5em; height: 1.5em; margin: 0 auto; fill: currentColor; }

/* Page Loader */
.js .loading::before { content: ''; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background: #f5f5f5; background: var(--body-bg); }
.js .loading::after { content: ''; position: fixed; z-index: 10000; top: 50%; left: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; pointer-events: none; background: #424240; background: var(--body-text); transform-origin: 0% 50%; animation: loaderAnim 1.5s linear infinite alternate forwards; }

@keyframes loaderAnim {
	0% { transform: scale3d(0,1,1); transform-origin: 0% 50%; } 
	50% { transform: scale3d(1,1,1); transform-origin: 0% 50%; } 
	51% { transform: scale3d(1,1,1); transform-origin: 100% 50%; } 
	100% { transform: scale3d(0,1,1); transform-origin: 100% 50%; }
}

/* Frame */
.frame {
	top: 0;
	left: 0;
	position: fixed;
	display: grid;
	width: 100%;
	height: 100vh;
	z-index: 100;
	pointer-events: none;
	padding: 2em;
	grid-template-columns: 50% 50%;
	grid-template-rows: auto auto 4em;
	grid-template-areas: 	"header header"
							"... ..."
}

.no-js .frame {
	position: relative;
	display: block;
	height: auto;
}

.frame a {
	pointer-events: auto;
}

.message {
	background: #424240;
	background: var(--body-text);
	color: #ccd8e4;
	color: var(--body-bg);
	text-align: center;
	padding: 1em;
	display: none;
}

/* Grid */
.grid {
	display: grid;
	width: calc(100% - 6em);
	height: calc(100vh - 6em);
	grid-auto-rows: calc((calc(100vh - 6em) / 30) - var(--gap));
	grid-auto-columns: calc((calc(100% - 6em) / 30) - var(--gap));
	justify-content: center;
	align-content: center;
	grid-gap: var(--gap);
	pointer-events: none;
}

.no-js .grid { margin: 0 0 15vh; }
.js .grid { position: absolute; top: 3em; left: 3em; opacity: 0; }
.js .grid--current { opacity: 1; pointer-events: auto; }
.grid__item { position: relative; padding: 1em; background-repeat: no-repeat; background-position: 50% 50%; background-color:#424240;background-size: cover; transition: transform 0.2s ease-out; }
.grid__item--title, .grid__item--text { padding: 0; margin: 0; }
.grid__item--title { background-color:transparent;line-height: 0.8; font-family: 'Libre Franklin', sans-serif; font-size: 3.5vh; text-transform: uppercase; -webkit-writing-mode: vertical-lr; writing-mode: vertical-lr; text-align: right; display: flex; justify-content: flex-end; color: #424240; color: var(--grid-title-text); }
.grid__item--text { background-color:transparent;font-size: 0.85em; line-height: 1.2; /*display: flex;*/ color: inherit; color: var(--grid-text); }
.grid__item--nav { background: #000000; background: var(--grid-nav-bg); color: #f5f5f5; color: var(--grid-nav-text); display: flex; align-items: center; cursor: pointer; }
.grid__item--nav:hover { background: #424240; background: var(--grid-nav-bg-hover); color: #f5f5f5; color: var(--grid-nav-text-hover); }
.grid__item--nav-next .icon--nav-arrow { margin: 0 0 0 auto; }
.grid__item--nav-prev .icon--nav-arrow { transform: rotate(180deg); margin: 0; }
.no-js .grid__item--nav { display: none; }
.grid__item--animateOut { animation: animateOut 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
.grid__item--bio {background-color:#000000}
.grid__item--bio a h2 {display:block !important}

@keyframes animateOut {	to { opacity: 0; } }
.grid__item--animateIn { animation: animateIn 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes animateIn { from { opacity: 0; } to { opacity: 1; } }

/*** REVEALER ***/

.revealer { position: absolute; width: calc(100% + 4px); height: calc(100% + 4px); 
/* Firefox and Safari gap hack */ background: #f5f5f5; top: -2px; left: -2px; opacity: 0; pointer-events: none; }

/* Direction control */ 
.revealer--right { transform-origin: 100% 50%; }
.revealer--left { transform-origin: 0% 50%; }
.revealer--top { transform-origin: 50% 0%; }
.revealer--bottom { transform-origin: 50% 100%; }
.revealer--showX, .revealer--hideX, .revealer--showY, .revealer--hideY, .revealer--visible { opacity: 1; }

/* Hide from left/right */ 
.revealer--hideX { animation: hideX 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes hideX { from { transform: scale3d(0,1,1); } to { transform: scale3d(1,1,1); } }

/* Show from left/right */ 
.revealer--showX { animation: showX 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes showX { to { transform: scale3d(0,1,1); } }

/* Hide from top/bottom */ 
.revealer--hideY { animation: hideY 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes hideY { from { transform: scale3d(1,0,1); } to { transform: scale3d(1,1,1); } }

/* Show from top/bottom */ 
.revealer--showY { animation: showY 0.8s cubic-bezier(0.7,0,0.3,1) forwards; }
@keyframes showY { to { transform: scale3d(1,0,1); } }

/*** Error 404 ***/

.error404 .show_error {color:#f5f5f5;background:#000000}
.error404 .show_error h1 {margin:0}
.error404 .show_error a {color:#f5f5f5}
.error404 .show_error a:hover {color:#424240}

/*** PURE ***/

.pure-button {background: #000;color:#f5f5f5}
.pure-button:hover, .pure-button:focus {background: #424240;color:#f5f5f5}
.button-xsmall { font-size: 70%; }
.button-small { font-size: 85%; }
.button-large { font-size: 110%; }
.button-xlarge { font-size: 125%; }

/*** PROYECTOS ***/

.grid__item h2 {display:none;position:absolute;top:0;font-size:14px;left:0;right:0;padding:10px;color:#f5f5f5;margin:0;text-transform:none;z-index:99}
.grid__item .velo {display:none;position:absolute;top:0;left:0;right:0;bottom:0;background:#424240}
.fancybox-caption {width:100% !important}

/*** PÁGINAS ***/

.content {margin-top:0}
.content img {width:100%}
.l-box { padding: 1em;}
.success-message {display:none}
.error {border:1px solid red !important}

/*** MEDIA ***/

@media screen and (max-width: 45em) {
	.message { display: block; } 
	.frame { display: block; height: auto; position: relative; text-align: center; } 
	main .grid { height: auto; top: auto !important; width: 100%; left: auto !important; padding: 0 2em; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: auto !important; grid-auto-columns: auto !important; grid-gap: 1vw; }
 	.grid__item { min-height: 200px; grid-area: auto !important; }
 	.grid__item br { content: ''; display: none; }
 	.grid__item--title, .grid__item--text { grid-column: 1 / -1 !important; justify-content: flex-start; min-height: 0; padding: 1vh 0; text-align: left !important; }
 	.grid .grid__item--title { -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb; }
	.grid__item--text { display: block; }
	.grid__item--text br {display:block}
	.grid__item--nav, .grid__item--bio {min-height:100px !important}
}

/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) { 
	
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { 
	.fancybox-caption {width:50% !important}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width:1200px) {
	.fancybox-caption {width:25% !important}
	
}
