/* Skanaus Regular */
@font-face {
  font-family: Skanaus;
  src:  url('../fonts/eot/Skanaus Regular.eot'); /* IE9 Compat Modes */
  src:  url('../fonts/eot/Skanaus Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('../fonts/woff2/Skanaus Regular.woff2') format('woff2'), /* Super Modern Browsers */
      url('../fonts/woff/Skanaus Regular.woff') format('woff'); /* Pretty Modern Browsers */
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Skanaus Display */
@font-face {
  font-family: Skanaus Display;
  src:  url('../fonts/eot/Skanaus Display.eot'); /* IE9 Compat Modes */
  src:  url('../fonts/eot/Skanaus Display.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('../fonts/woff2/Skanaus Display.woff2') format('woff2'), /* Super Modern Browsers */
      url('../fonts/woff/Skanaus Display.woff') format('woff'); /* Pretty Modern Browsers */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CSS RESET */

* {
  box-sizing: border-box;
}
html, body {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
h1, h2, h3, h4 {
  margin-block-start: 0em;
  margin-block-end: 0em;
  font-weight: normal;
  font-size: inherit
}

button {
  background: transparent;
  box-shadow: 0px 0px 0px transparent;
  border: 0px solid transparent;
  text-shadow: 0px 0px 0px transparent;
  padding: 0;
}

button:hover {
  background: transparent;
  box-shadow: 0px 0px 0px transparent;
  border: 0px solid transparent;
  text-shadow: 0px 0px 0px transparent;
}

button:active {
  outline: none;
  border: none;
}

button:focus {
  outline: 0;
}

/* END CSS RESET */

:root {
  --dark: #000000;
  --light: #F1F6F2;
  --green: #DDE2D7;
  --primary-font: 'Public Sans', sans-serif;
  --secondary-font: 'Skanaus', serif;
  --tertiary-font: 'Skanaus Display', serif;
  --standard-margin-top: 150px;
  --standard-margin-bottom: 75px;
  --large-margin-top: 200px;
  --gutter: 1.5rem;
  --font-size: 15px;
  --space-1: 20px;
  --space-2: 30px;
  /* --font-weight: 400;
  --font-scale-xxs: 0.6rem;
  --font-scale-xs: 0.75rem; */
  --font-scale-s: 12px;
  --secondary-font-scale-s: 16px;
  --secondary-font-m: 24px;
  /* --font-scale-m: 1.05rem;
  --font-scale-l: 1.3rem;
  --font-scale-xl: 1.8rem;
  --font-scale-xxl: 5rem;
  --spacing-xxs: .5rem;
  --spacing-xs: 1rem;
  --spacing-s: 2rem;
  --spacing-m: 2.8rem;
  --spacing-l: 60px;
  --spacing-xl: 70px;
  --spacing-xxl: 200px; */
 /* --page-top-padding: 170px; */
  font-size: var(--font-size);
  font-family: var(--primary-font);
  color: var(--dark);
  background-color: var(--light); 
  /* line-height: 18px; */
}

/* ***** TABLET ***** */

@media screen and ( max-width: 768px ) {
:root {
  --standard-margin-top: 30px;
  --standard-margin-bottom: 75px;
  --large-margin-top: 200px;
  --gutter: 1.5rem;
  --font-size: 15px;
  --space-1: 8px;
  --space-2: 16px;
  --font-scale-s: 12px;
  --secondary-font-scale-s: 16px;
  --secondary-font-m: 24px;
  }
}


/* Universal */
.dark {
  color: var(--light);
  background-color: var(--dark)
}

.dark .overlay {
  color: var(--dark);
}

.dark .opaque {
  background-color: var(--dark)
}

.uppercase {
  text-transform: uppercase;
}
.underline {
  text-decoration: underline;
}
.text-center {
  text-align: center;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
a {
  color: inherit;
  text-decoration: none;
}
.secondary-font {
  font-family: var(--secondary-font);
  letter-spacing: 0.88px
}
.secondary-font.font-scale-s {
  font-size: var(--secondary-font-scale-s)
}
.tertiary-font {
  font-family: var(--tertiary-font);
}
.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.wide-gap {
  position: absolute;
  left: 30%;
}
.inline-block {
  display: inline-block;
}
.mtl {
  margin-top: calc(var(--space-1) * 4);
}
.mts {
  margin-top: calc(var(--space-1) / 2);
}
.mbs {
  margin-bottom: calc(var(--space-1) / 2);
}
.mbl {
  margin-bottom: var(--space-1);
}
.mbxxl {
  margin-bottom: var(--standard-margin-bottom);
}
.main.galeria-container, .main.blog, .main.blog-container, .main.work-container, .main.galeria-container {
  margin-top: var(--standard-margin-top);
}
.main.article-container {
  margin-top: var(--large-margin-top);
}
.mob {
  display: none;
}
button {
  color: inherit
}
/* Loading overlay */

.loading-image {
  width: 400px;
  height: auto;
}

/* Bottom Navbar */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  width: 100%;
}
.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: var(--space-2) var(--space-2) var(--space-1) var(--space-2);
}
.footer-container .wide-gap {
  bottom: var(--space-1);
}
.footer-container .footer-button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit
}
.footer-container .footer-button:hover {
  cursor: pointer;
}

/* Menu Overlay */

.overlay {
  position: fixed;
  background: var(--green);
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  opacity: 0;
  top:0;
  display: none;
  z-index: 2
}
.exit {
  padding: calc(var(--space-1) / 2) var(--space-2);
  font-size: 40px;
  display: block;
}
.menu-container {
  opacity: 0;
  height: 100vh;
}
.menu-footer-container .flex-row div:not(:first-of-type) {
  margin-left: var(--space-2);
}
.menu-footer-container .flex-row div, .menu-footer-container > div {
  align-self: flex-end;
}

.link-category {
  text-transform: initial;
  font-family: var(--secondary-font);
  font-size: 18px;
  margin-bottom: calc(var(--space-1) / 2)
}

/* Menu Overlay - Hover Images */
.portfolio__categories {
  display: flex;
  flex-direction: column;
  width: 200px;
}
.portfolio__categories .right-menu-item a {
  float: right;
}
.portfolio__categories a {
  text-decoration: none;
  font-size: 42px;
  margin: auto;
}
.portfolio__categories a:hover {
  z-index: 1;
}
.portfolio__image--s {
  pointer-events: none; /* important to be able to hover over links under the image */
  position: absolute;
  height: auto;
  width: 15vw;
  top: 22vh;
  left: 54vw;
  padding-bottom: 19vw;
  overflow: hidden;
  /* background-color: #000; */
  visibility: hidden;
}
.image_inside {
  position: absolute;
  /* opacity: 0.8; */
  opacity: 1;
  top: -10%;
  left: 0;
  width: 100%;
  height: 115%;
  background-size: cover;
}

.fill-background {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
}

/* Top Navbar */
.top-navbar {
  /* overflow: hidden; */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1
}
.top-navbar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.top-navbar-logo {
  font-family: var(--tertiary-font);
  font-size: 40px;
  letter-spacing: 1.25px;
  padding: calc(var(--space-1) / 2) var(--space-2);
  z-index: 4;
}
.open-menu-button button {
  padding: var(--space-1) var(--space-2);
}
.open-menu-button button:hover {
  cursor: pointer;
}
.open-menu-illustration {
  height: 46px;
  width: auto;
}



/* Home */
.home-container {
  display: flex;
  max-height: 100vh;
}
.home-container > div {
  width: 50%;
}
.home-container .side-a {
  align-self: flex-end;
  padding: 0 0 var(--space-1) var(--space-2);
}
.home-footer {
  width: 50%;
  right: 0;
}
.home-footer-container {
  padding: var(--space-2) var(--space-2) var(--space-1) 45px;
  font-size: var(--font-scale-s);
}
.home-footer-newsletter-form {
  display: flex;
  flex-direction: row
}
input[type="email" i] {
  font-family: var(--primary-font);
  border: none;
  border-bottom: 1px solid black;
  padding-bottom: 2px;
  border-radius: 0;
  background-color: inherit;
  text-transform: uppercase;
  font-size: var(--font-scale-s)
}
/* Home - Carousel */
.home-carousel {
  width: 100%;
}
.home-carousel .carousel-cell {
  width: 42%;
  margin-right: 18px;
  counter-increment: carousel-cell;
}
.home-carousel .carousel-cell div:first-of-type {
  background-image: url(../images/test.png);
}
.home-carousel .carousel-cell .carousel-cell-title {
  margin-top: 15px
}
/* Home - Side B */
.side-b {
  position: relative;
}
/* Home - Marquee */
.marquee {
  margin: calc(20vh + 75px) 0;
  overflow: hidden;
}
.marquee span {   
  display: inline-block;
  white-space: nowrap;
  width: var(--tw);
  text-shadow: var(--tw) 0 currentColor, 
               calc(var(--tw) * 2) 0 currentColor, 
               calc(var(--tw) * 3) 0 currentColor,
               calc(var(--tw) * 4) 0 currentColor;
 
  will-change: transform;
  animation: marquee var(--ad) linear infinite;
  animation-play-state: running;
}

.marquee:hover span {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee span {
    animation: none;
    text-shadow: none;
    width: auto;
    display: block;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
  }
}
/* Home - Modal */
.modal {
  position: absolute;
  display: block; /* Hidden by default */
  z-index: 1; /* Sit on top */
  left: 25%;
  top: calc(12% + 75px);
  width: 50%;
  background-color: var(--light);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.25);
  }
#blogModalheader {
  cursor: move;
}
.modal-content {
  margin: auto;
  padding: 20px;
}
.modal-header {
  margin-bottom: calc(var(--space-1) / 2);
}
.close {
  float: right;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.modal-cards {
  height: 50vh;
  overflow-y: auto;
}
.modal-card.card-contents {
  height: initial;
  display: flex;
  flex-direction: column;
  margin-top: .5rem;
}
.card-title {
  text-overflow: ellipsis;
  font-size: 16px;
  letter-spacing: 0.8px;
  font-family: var(--secondary-font);
  white-space: nowrap;
  overflow: hidden;
}
.card-date {
  align-self: flex-end;
}
.card-image {
  height: 300px;
  width: 100%;
  background-image: url(../images/test.png)
}
.home-carousel {
  opacity: 0;
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
}

.home-carousel.is-hidden {
  display: none;
}

.home-carousel.flickity-enabled {
  opacity: 1;
}
/* Galeria */
.galeria-container {
  height: calc(90vh - var(--standard-margin-top) - var(--standard-margin-bottom));
}
/* Galeria Flickity */
.galeria-carousel {
  width: 100%;
  height: 100%;
}
.galeria-carousel {
  opacity: 0;
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
}
.galeria-container.is-hidden .galeria-carousel {
  display: none;
}
.galeria-carousel.flickity-enabled {
  opacity: 1;
} 
.galeria-carousel .carousel-cell {
  margin-right: 1rem;
  height: 100% !important;
}
.galeria-carousel img {
  display: block;
  width: 50vh;
  height: auto;
}
.galeria-carousel .flickity-viewport {
  height: 100% !important;
}
.caption:first-letter {
  text-transform: capitalize
}
/* Blog */
.blog-container {
  margin-left: var(--space-2);
  margin-right: var(--space-2);
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(3, 1fr);
}
.card-contents {
  height: calc(100vh - var(--standard-margin-top) - var(--standard-margin-bottom));
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark);
  margin-bottom: 1rem;
  padding-top: .5rem;
  padding-bottom: 10px;
}
.card .card-image {
  height: 100%;
}
.blog-container .card-title {
  font-size: var(--secondary-font-m);
}
/* Blog - Archive */
.archive .card-contents {
  height: calc((100vh - var(--standard-margin-top) - var(--standard-margin-bottom) - var(--gutter)) / 2);
  position: relative;
}
.card-hover {
  position: relative;
}
.card-hover img {
  position: absolute;
  width: auto;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  left: 50%;
  opacity: 0;
  visibily: hidden;
  pointer-events: none;
}
.blog-filter {
  margin-left: var(--space-2)
}
/* Article */
.article-contents {
  margin-left: var(--space-2);
  margin-right: var(--space-2);
}
.article-contents > div:not(:first-of-type) {
  margin-top: var(--space-2)
}
.article-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.article-row > div:nth-of-type(even) {
  width: 50%;
  padding-left: calc(var(--space-1) * 1.5)
}

.article-row > div:nth-of-type(odd) {
  width: 50%;
  padding-right: calc(var(--space-1) * 1.5)
}
.article-title {
  font-size: 34px;
}
.article-row .text-block {
}
.article-row .text-block p:first-of-type {
  margin-top: 0
}
.sticky-image {
  position: sticky;
  position: -webkit-sticky;
  top: 0px;
}
/* Work */
.work-container {
  height: calc(90vh - var(--standard-margin-top) - var(--standard-margin-bottom));
}

/* Work Flickity */


/* NEW */

.work-carousel {
  opacity: 0;
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
}
.work-container.is-hidden .work-carousel {
  display: none;
}
.work-carousel.flickity-enabled {
  opacity: 1;
} 

.work-carousel-cell.carousel-cell {
    /*width: 100vw;
    height: 100vh; */
    /* Center and scale the image nicely */
    /* background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    position: absolute; */
    opacity: 0 !important;
    transition: opacity 0s;
    width: 100%;
    height: 100%;
}
.work-carousel-cell.carousel-cell:not(.is-selected) {
    animation: fadeOut ease 0s;
}
.work-carousel-cell.carousel-cell.zero-fade.is-selected {
    opacity: 1 !important;
    transition: opacity 0.0s;
    animation: none
}
.carousel-cell.is-selected {
    z-index: 99;
    opacity: 1 !important;
    animation: fadeIn ease 0s;
}
.carousel-cell.is-next {
    z-index: 98;
    opacity: 1 !important;
    animation: fadeIn ease 0s;
}
.work-carousel .carousel-cell {
  height: 100%;
}
.work-carousel .carousel-cell img {
  height: 100%;
  width: auto;
}
.opaque {
  background-color: var(--light)
}
.work-carousel-text-content {
  max-width: 780px;
}
.work-carousel h2.secondary-font {
  font-size: var(--secondary-font-m);
  letter-spacing: 0.6px;
}
.work-carousel-info-content {
  max-width: 600px;
}
.work-carousel-info-links {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(2, 1fr);
}
.work-carousel-info-link-item::before {
  content: "→";
  display: inline-block;
  width: 2em;
  margin-left: -2em;
  text-align: center;
}
.work-carousel-info-links div:nth-of-type(odd) {
  margin-right: var(--space-2);
}
.work-carousel-info-share {
  margin-top: calc(var(--space-1) / 2);
}
.work-carousel-info-share-items {
  float: right;
  margin-right: calc(var(--space-2) * 1.5);
  margin-top: var(--space-1);
}
.work-carousel-info-share a {
  display: inline-block;
  margin-right: var(--space-2);
}
/* END NEW */

.work-carousel {
  width: 100%;
  height: 100%;
}
.work-carousel .flickity-slider {
  width: 100%;
  height: 100%;
}
.work-carousel .flickity-viewport {
  height: 100% !important;
}
/* .work-carousel .back-layer-image.carousel-cell.is-next {
  opacity: 1 !important;
} */
/* flickity on by default */
.work-carousel:after {
  content: 'flickity';
  display: none;
}

@media screen and ( max-width: 768px ) {
  /* disable Flickity for large devices */
  .work-carousel:after {
    content: '';
  }
}
/* Work - custom cursor */
.work-container:hover {
  cursor: none
}
.cursor{
  /* pointer-events: none; */
  position: absolute;
  top: 50%;
  left: 50%;
  /* opacity: 0; */
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in-out,
              transform 0.3s ease-in-out;
}
/* Contacto */
.contacto-container {
  margin-top: 0px;
  height: 100vh;
} 
.contact-image {
  width: 170px;
  height: auto;
  margin: 0 auto;
}
.contact-image img {
  width: 100%;
  height: auto;
}
.contact-share-links {
  display: flex;
  justify-content: space-between;
}

/*
.contacto-container > .contacto-contents {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
} */


/* ***** TABLET ***** */

@media only screen and ( max-width: 768px ) {
  /* Universal */
  .wide-gap {
  position: absolute;
  left: 45%;
  }
  .loading-image {
  width: 240px;
  height: auto;
  }
  .secondary-font {
  letter-spacing: 0.66px;
  }
  .desktop {
  display: none;
  }
  .mob {
  display: block;
  }
  .mob-heading-container {
  padding: 0 var(--space-2);
  }
  .mob-heading  {
  border-bottom: 1px solid var(--dark);
  margin-bottom: calc(var(--space-2) * 1.5)
  }
  .dark .mob-heading  {
  border-bottom: 1px solid var(--light)
  }
  .m-reverse {
  flex-direction: row-reverse;
  }
  /* Overlay Menu  */
  .exit {
  font-size: 26px;
  }
  .link-category {
  font-size: 15px;
  }
  .portfolio__categories {
  width: 160px;
  }
  .portfolio__categories a {
  font-size: 32px;
  }
  .footer-container {
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-2);
  }
  .menu-container {
    height: 90vh;
  }
  .footer-container.menu-footer-container {
  flex-direction: column;
  }
  .menu-footer-container > .flex-row {
  margin-bottom: var(--space-2);
  }
  .menu-footer-container .flex-row div:not(:first-of-type) {
  margin-left: var(--spacing-s)  
  }
  .menu-footer-container .flex-row div, .menu-footer-container > div {
  align-items: flex-end;
  align-self: initial;
  }
  /* Top Nav Bar  */
  .relative.top-navbar {
  position: relative;
  }
  .top-navbar-logo {
  font-size: 26px;
  letter-spacing: .9px;
  }
  .open-menu-illustration {
  height: 27px;
  }
  /* Bottom Nav bar */
  .relative.bottom-navbar {
  position: relative; 
  }
  /* Home  */
  .home-container > div {
  width: 100%;
  }
  .home-container {
  flex-direction: column-reverse;
  }
  .home-container .side-a {
  padding: 0 0 var(--space-2) 0;
  }
  .marquee {
  margin: 0 0 125px 0;  
  }
  .home-carousel .carousel-cell .carousel-cell-title {
  margin-top: var(--space-1);
  }
  .home-carousel .carousel-cell {
    margin-right: var(--space-1);
  }
  .side-b #blogModal, .home-footer {
  display: none;
  }
  /* Work */
  .work-container {
  height: initial;
  }
  .work-carousel {
  height: initial;
  opacity: 1;
  padding: 0 var(--space-2);
  }
  .work-carousel-cell.carousel-cell {
  opacity: 1 !important;
  margin-bottom: calc(var(--space-2) * 1.5)
  }
  .work-carousel .carousel-cell img {
  width: 100%;
  height: auto
  }
  .work-carousel-info-links {
  grid-template-columns: repeat(1, 1fr);
  gap: initial;
  }
  .work-carousel-info-links > div {
    margin-left: calc(var(--space-2) * 1.5)
  }

  .work-carousel-info-share-items {
    margin-right: initial
  }
  .work-carousel-info-share a:last-of-type {
    margin-right: initial;
  }
  /* Blog */
  .main.blog {
    margin-top: var(--standard-margin-top);
  }
  .blog-container {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: var(--standard-margin-top);
  }
  /* Blog-archive */
  .blog-archive .wide-gap {
    position: relative;
    bottom: initial;
    left: initial;
  }
  .archive .card-contents {
    height: initial;
    position: relative;
  }
  .archive .card-contents > div:second-of-type {
    display: none
  }
  .blog-filter {
    margin-left: initial;
  }
  /* Article */ 
  .main.article-container {
    margin-top: var(--standard-margin-top);
  }
  .article-row {
    flex-direction: column;
  }
  .article-row > div {
  margin-bottom: calc(var(--space-2) * 1.5);
  }
  .article-row > div:nth-of-type(odd) {
    width: 100%;
    padding-right: initial;
  }
  .article-row > div:nth-of-type(even) {
    width: 100%;
    padding-left: initial;
  }
  /* Contacto */
  .main.contacto {
    margin-top: var(--standard-margin-top);
  }
  .contacto .center {
    align-items: initial
  }
  .contacto-container {
    margin-left: var(--space-2);
    margin-right: var(--space-2);
    height: initial;
  }
  .contacto-container .work-carousel-info-link-item::before {
    margin-left: calc(var(--space-2) * .05);
    margin-right: calc(var(--space-1));
    width: initial;
  }
  .work-carousel-info-content > div:first-of-type {
    margin-bottom: var(--space-2);
  }
  .contacto-container .work-carousel-info-links > div {
    margin-left: initial;
    margin-right: initial;
  }
  .contacto-container .work-carousel-info-links > div:first-of-type {
    margin-bottom: var(--space-1);
  }
  
}


