/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


html {
  color: #222;
  font-size: 1.2em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

/* ::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
} */

/* ::selection {
  background: #b3d4fc;
  text-shadow: none;
} */

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
  background-color: #F7F5EB;
  color: #1E3251;
  font-family: "mrs-eaves-xl-serif", serif;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

main.contact {
  padding: 0;
}

a {
  border-radius: 0 0 3pt 3pt;
  color: #1E3251;
  text-decoration: none;
  transition: background-color 0.15s ease-in;
}

a:hover {
  color: #1E3251;
  text-decoration: none;
}

a.instagram:hover {
  background-color: inherit;
}

.container-fluid {
  max-width: 1200px;
  padding-left:var(--bs-gutter-x,1rem);
  padding-right:var(--bs-gutter-x,1rem);
}

.row {
  --bs-gutter-x: 1rem;
}

nav {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.navbar {
  background-color: #1E3251;
  margin-bottom: 1em;
}

.navbar.homepage {
  background-color: rgb(30, 50, 81, .75);
}

.homepage .navbar-brand {
  visibility: hidden;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand:hover {
  background-color: inherit;
}

.navbar-brand img {
  height: 40px;
}

.navbar-toggler {
  border-color: transparent;
  font-size: inherit;
  position: absolute;
  right: .25em;
  top: .5em;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(247,245,235, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}


.navbar-primary .navbar-collapse {
  margin: .5em -1em;
}

.navbar-primary .navbar-nav {
  border-top: 1pt solid #fff;
  padding-top: .5em;
}

.nav-item {
  white-space: nowrap;
}

.nav-link {
  border-radius: 3pt;
  color: #F7F5EB;
  font-family: "mrs-eaves-xl-serif", serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  transition: background-color .15s ease-in;
}

.navbar-nav .nav-link.active {
  color: #F7F5EB;
}

.navbar-nav .nav-link.active:before {
  content:"– ";
}

.navbar-nav .nav-link.active:after {
  content:" –";
}

.navbar-nav .nav-link:hover:not(.active) {
  color: #F7F5EB;
}

h1 {
  color: #1E3251;
  font-family: "mrs-eaves-xl-serif", serif;
  font-size: 1rem;
}

h2 {
  font-size: 1.5rem;
}

footer {
  color: #1E3251;
  padding-top: 1rem;
}

footer .navbar {
  background-color: inherit;
  text-align: center;
}

footer .navbar .nav-item {
  margin-left: .5rem;
  padding-right: .5rem;
}

footer .navbar .nav-item:last-of-type {
  border-right: none;
}

footer a {
  border-radius: 3pt;
  color: #1E3251;
  margin: 0 -.5rem;
  padding: .25rem .5rem;
}

footer a:hover:not(.active) {
  color: #1E3251;
}

footer .navbar .nav-item img {
  vertical-align: text-bottom;
}

footer.no-footer {
  display: none;
}

.carousel, .carousel-inner {
  bottom: 0;
  display: flex;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.carousel-item img.carousel-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  left: 0;
  top: 20%;
  right: 0;
}

.carousel-caption img.logo {
  filter: drop-shadow(0px 2px 2px rgb(0 0 0 / 0.25));
  width: 100%;
}

.media-unit a {
  display: inline-block;
  height: auto;
  margin-bottom: 1rem;
  text-decoration: none;
  width: 100%;
}

.media-unit img {
  height: auto;
  width: 100% !important;
}

.media-unit p {
  margin-bottom: 0;
  padding-left: .25rem;
}

.portfolio-project .col.media-unit {
  text-align: center;
}

.portfolio-project img {
  margin-bottom: 1rem;
  height: auto;
}

.portfolio-project img.landscape {
  max-width: 100%;
}

.portfolio-project img.portrait {
  max-width: 75%;
}

.press-item img {
margin-bottom: 1rem;
}

.press-item .media-unit {
margin: 0 auto;
}

.studio img {
  margin-bottom: 1rem;
}

.studio .media-unit.partners img {
  margin-bottom: 0;
}

.caption {
  font-size: .75rem;
}

.studio h2 {
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 1em;
}

.studio-01 p {
  text-align: center;
}
  
.studio-02 p {
  text-align: justify;
}
  
.contact-wrapper {
  margin-bottom: 1rem;
  position: relative;
}

.contact-info-wrapper {
  bottom: 0;
  left: 0px;
  position: absolute;
  right: 0;
  top: 0;
}

.contact-info {
  background-color: rgba(247, 245, 235, 0.75);
  color: #1E3251;
  display: inline-block;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.contact-info a, .contact-info a:visited {
  border-radius: 3pt;
  color: #1E3251;
  display: inline;
  padding: 2pt;
  margin-bottom: 0;
}

.contact-info a.instagram {
  display: inline-block;
  width: 20pt;
}


/* ==========================================================================
   Portfolio classes
   ========================================================================== */


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 576px) {
  /* Style adjustments for viewports that meet the condition */

  .contact-info {
    padding: 2.5rem 2rem;
  }

}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports that meet the condition */

  .navbar.homepage {
    background-color: initial;
  }

  .homepage .navbar-brand {
    display: none;
  }

  .navbar-brand img {
    height: 60px;
  }

  .navbar-primary {
    padding-bottom: 1em;
    padding-top: 1em;
  }
  
  .navbar-primary .navbar-collapse {
    margin: inherit;
  }
  
  .navbar-primary .navbar-nav {
    border-top: none;
    padding-top: 0;
  }

  .navbar-nav .nav-link {
    margin-left:  .5rem;
    margin-right:  .5rem;
    padding: .25rem;
  }

  .carousel-caption {
    left: 10%;
    right: 10%;
  }

  .contact-info {
    padding: 3.5rem 3rem;
  }

}

@media only screen and (min-width: 992px) {
  /* Style adjustments for viewports that meet the condition */

  main.contact {
    top: 7em;
  }

  footer .navbar .nav-item {
    border-right: 1pt solid #1E3251;
    margin-left: 1rem;
    padding-right: 1rem;
  }

}

@media only screen and (min-width: 1096px) {
  /* Style adjustments for viewports that meet the condition */


}

@media only screen and (min-width: 1200px) {
  /* Style adjustments for viewports that meet the condition */


}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #F7F5EB !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

