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

/* Remove default margin */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
 text-rendering: optimizeSpeed;
 font-size: 1.125rem;
 line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
 text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img, picture {
 max-width: 100%;
 display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

 *, *::before, *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
  }
}


@media (prefers-color-scheme: dark) {
  body {
    color: #eee;
    background: #121212;
  }

  body a {
    color: #809fff;
  }

  img {
    filter: brightness(.8) contrast(1.2);
  }
}

/* ================================================================ */

body {
  font-family: system-ui, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1em;

  min-height: 100vh;
  min-height: 100dvh;       /* device video height (celulares) */
  min-height: 100sdvh;      /* small device video height (celulares) */
  min-height: 100ldvh;      /* large device video height (celulares) */

  display: grid;
  grid-template-rows: auto 1fr auto;
}

a {
  text-decoration: none;
}

/* ========== NAV BAR ========== */

.nav {
  padding: 0.5em 0;
  gap: 1rem;
  align-items: center;

  display: flex;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
}

.nav > * {
  flex: 1 1 10ch;
}

.grid-item:nth-child(1) {
  flex-basis: 250px;
}

/* ======== END NAV BAR ======== */


main h1 {
  font-size: clamp(2em, 5vw, 4em);
  margin-bottom: .5em;
}

p {
  font-size: calc(1.2vw + 0.7em);
}


/* ========= VIDEO BAR ========= */

.section {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section h1 {
  text-align: center;
  font-size: 3rem;
  padding: 1rem;
  margin: 2rem;
  z-index: 1;
  opacity: 0.7;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.8)
}

.video-container video {
  width: 100%;
  height: 100vh;
}

/* ======= END VIDEO BAR ======= */


/* ========== PORTRAITS ========== */

/*.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 1rem;
  justify-content: center;

  /*  Parte de Grid3 / en desarrollo
  grid-template-rows: masonry;
}
===== ESTO ES SI FUNCIONARA MASONRY =====
*/

.gallery {
  columns: 3 300px;
}

.gallery .box {
  margin-bottom: 1rem;
}

/* ======== END PORTRAITS ======== */


/* ========== CONTACT ========== */

.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-auto-rows: minmax(100px, auto);
}

.one {
  grid-column: 1 / 3;
  grid-row: 1;
}

.two {
  grid-column: 2 / 4;
  grid-row: 1;
  z-index: -1;
  opacity: 1.0;
}

.two img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

/* ======== END CONTACT ======== */

