/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Avenir-Next", sans-serif;
}

#root-container {
  background-color: #70706f;
  min-height:100vh;
}

.container {
  margin: 0 5vw;
}

div.v-spacer{
    clear:both;
    height:24px;
}

div.v-spacer.double{
    height:48px;
}

div.v-spacer.cols-only{
    display:none;
}

header {
  height: 180px;
}

.main-content {
  background-color: #313130;
  color: white;
  /* padding: 2rem 0; */
}

h1,
h2 {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.container .page-banner{
    width:100%;
    background-color:#f90;
    height:17vh;
    background-size:cover;
    background-position:50% 50%;
}

.container .focus{
    padding:30px 12px 40px 12px; 
}

.container .focus.less-bottom-padding{
    padding-bottom:10px!important;
}

.container .focus.less-top-padding{
    padding-top:10px!important;
}

.container h1, .container h2, .container h3, .container h4{
    color:#fff;
    font-weight: normal;
    margin-bottom:0.8em;
}

.container h1, .container h2, .container h3{
    text-transform:uppercase;
    letter-spacing:0.2em;
}

.container h2.divider{
    text-align:center;
    margin:2em auto;
}

h2.wp-block-heading{
  margin-top:1.75em;
}

.container ul.wp-block-list{
  margin:1em 0 1em 2em;
  list-style-type:disc;
}

.container ul.wp-block-list li{
  margin-bottom:0.5em;
}

.focus p, .focus li, .focus figcaption{
    line-height:1.4em;
}

.focus figure{
    margin:10px 0 20px 0;
}

.focus figure img{
    min-width:100%;
    height:auto;
}

.focus figure figcaption{
    font-size:0.8em;
    color:#ddd;
}

.focus p{
    margin-bottom:1em;
}

.focus p a, .focus li a, .focus label, .focus legend{
    color:#fff!important;
}

.focus p a:hover, .focus li a:hover{
    text-decoration:none;
}

.focus p:last-child{margin-bottom:0}

.focus a.back-link{
    color:#ddd;
    display:inline-block;
    margin:25px 0 0 0;
}

div.listed-post{
    margin-bottom:30px;
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
  margin-right: 15px;
}

.social-icons a {
  color: white;
}
.more-link {
  color: #e94f1c;
  text-decoration: none;
}

.more-link:hover {
  text-decoration: underline;
}

/* Mobile-first styles */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  background-color: #003947;
  background-size:cover;
  background-position:50% 50%;
  color: white;
}

.header-content img {
  max-width: 355px;
  width: 80%;
  margin-left: 25px;
}

#main-footer{
    padding: 1em 0;
    color:#bbb;
}

#main-footer a{
    color:#bbb;
    text-decoration:none;
    text-transform:uppercase;
    display:inline-block;
    padding:3px 0;
}

#main-footer a:hover{
    text-decoration:underline;
}

#main-footer p{
    padding-top:1em;
}

/* Lazy loading styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.lazy.loaded {
  opacity: 1;
}

/* Blur-up effect for lazy images */
.lazy-blur {
  filter: blur(20px);
  transition: filter 0.3s ease-out;
}

.lazy-blur.loaded {
  filter: blur(0);
}

.navbar {
  position: relative;
  height: 45px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  background-color: #e94f1c;
}

/** Standard WP pagination links **/
div.nav-links, div.nav-links a.page-numbers{
  color:#fff;
}

/** Custom Menus **/
.lh-nav-links {
  position: absolute;
  top: 100%;
  left: 5vw;
  width: calc(100% - 10vw - 40px);
  padding: 0 20px;
  background-color: #e94f1c;
  display: none;
}

.lh-nav-links.active {
  display: block;
}

.lh-nav-links li {
  padding: 10px 0 10px 5px;
}

.lh-nav-links li a {
  text-decoration: none;
  font-weight: 300;
  color: white;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-transform:uppercase;
}

.hamburger-menu {
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-left: 20px;
}

.hamburger-menu span {
  width: 30px;
  height: 3px;
  background-color: white;
  display: block;
  position: absolute;
  transition: all 0.3s ease;
}

/* Position the three lines with proper spacing */
.hamburger-menu span:nth-child(1) {
  transform: translateY(-8px);
}

.hamburger-menu span:nth-child(2) {
  transform: translateY(0px);
}

.hamburger-menu span:nth-child(3) {
  transform: translateY(8px);
}

/* Centered cross animation */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

.card .text-content {
  margin-bottom: 40px;
  padding: 0 25px 0 25px;
}

.card img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.card h2 {
  padding: 50px 0 20px 0;
  font-weight: 400;
  font-size: 1.25rem; /* 24px */
  line-height: 1.75rem; /* 32px */
  letter-spacing: 0.25rem;
  text-transform:uppercase;
}

.card .hello {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem; /* 36px */
  letter-spacing: 0.25rem;
}

.card p {
  font-weight: 100;
  font-size: 1.4rem;
  line-height: 1.8rem;
  letter-spacing: 0rem;
  margin-bottom: 20px;
}

.card a {
  text-decoration: none;
  color: white;
  text-decoration-line: underline;
}

.section-image {
  width: 100%;
  overflow: hidden;
}

@font-face {
  font-family: "Avenir-Next";
  src: url("../fonts/Avenir-Next-Medium.woff2") format("woff2"),
    url("../fonts/Avenir-Next-Medium.woff") format("woff"),
    url("../fonts/Avenir-Next-Medium.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

/* Loading screen styles */
#loading-screen {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #e94f1c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hide-loading {
  opacity: 0;
  visibility: hidden;
}

div.double-50pc-split{
    box-sizing:border-box;
    margin:0 0 20px 0;
}

div.double-50pc-split p{
    font-size:0.9em;
}

.poem-item {
  box-sizing: border-box;
}

.poem-video {
  margin-bottom: 10px;
}

section.poetry-page-list-item div.collection-cover{
    margin-bottom:10px;
}

/* Ensure the figure fills the column and loses default margins */
.poem-video-inner figure.wp-block-embed {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Aspect-ratio box is on the wrapper, using WP's 16:9 / 4:3 classes */
.poem-video-inner figure.wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

/* 16:9 videos */
.poem-video-inner figure.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  padding-bottom: 56.25%; /* 9 / 16 */
}

/* 4:3 videos */
.poem-video-inner figure.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
  padding-bottom: 75%; /* 3 / 4 */
}

/* Make the iframe fill the ratio box */
.poem-video-inner figure.wp-block-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Optional: tidy the heading */
.poem-title {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 0.8em 0;
}

/* Optional: if you actually want the breaker div to clear floats */
.poem-item .breaker {
  clear: both;
  height: 0;
}

.cargo-lesson-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cargo-lesson-image img {
    display: block;
    width: 100%;
    height: auto;
}

.cargo-lesson-caption {
    margin: 0.6rem 0 0;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: normal;
}

.poem-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
}

.poem-list-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.poem-list-header h3 {
    margin: 0;
}

.poem-meta {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.9rem;
}

.poem-body {
    display: none;
    margin-top: 1rem;
}

.poem-list-item .poem-view-link {
    color:#fff;
}

.poem-list-item.is-expanded .poem-body {
    display: block;
}

.poem-list-item.is-expanded .poem-view-link::after {
    /* content: "ing"; */
}

.container .focus figure.alignleft, .container .focus figure.alignright{
    width:100%;
    margin:10px 0 10px 0;
}

/* Desktop styles */

@media screen and (min-width: 667px) {
    
    .container .page-banner{
        height:35vh;
    }
    
    /** these figure elements may need updating for built-in wordpress image markup **/
    .focus figure.alignright{
        float:right;
        margin:10px 0 10px 25px;
    }
    
    .focus figure.alignleft{
        float:left;
        margin:10px 25px 10px 0;
    }
    
    .focus figure{
        /* width:35%; */
        box-sizing:border-box;
    }

    .focus figure img{
        width:100%;
        height:auto;
    }
    
    .listed-post{
        padding-bottom:30px;
    }
    
    .listed-post .post-image{
        float:left;
        width:26%;
    }
    
    .listed-post .post-text{
        float:right;
        width:72%;
    }
    
    .post-col-breaker-adaptive{
        clear:both;
    }
    
    /* section.poetry-page-list-item{
        float:left;
        width:49%;
    } */
    
    div.double-50pc-split img{
        max-width:95%;
        height:auto;
    }
    
    .cargo-lessons-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .cargo-lesson-card {
        margin: 0;
    }
    
    div.v-spacer.mobile-only{
        display:none!important;
    }
    
    div.v-spacer.cols-only{
        display:block!important;
    }
    
}

@media screen and (min-width: 768px) {
  
    .container .page-banner{
        height:37vh;
    }
  
  .container .focus{
      width:80%;
      padding:30px 0 10px 0;
      margin:0 auto;
  }
  
  .container .focus.wide{
      width:90%;
  }
  
  .container .focus figure.alignright{
      max-width:35%;
      margin:10px 0 10px 15px;
      /* position:relative;
      right:30px; */
  }
  
  .container .focus figure.alignleft{
      max-width:35%;
      margin:10px 15px 10px 0;
      /* position:relative;
      left:-30px; */
  }
  
  .container .focus p, .container .focus li{
      font-size:1.1em;
      line-height:1.5em;
  }
  
  .focus a.back-link:hover{
      text-decoration:none;
  }
  
  ul.footer-links{
      display:inline-block;
  }
  
  ul.footer-links li{
      display:inline-block;
      margin-right:10px;
  }
  
  /* section.poetry-page-list-item{
      float:left;
      width:32%;
      padding-right:8px;
  }
  
  section.poetry-page-list-item div.collection-cover img{
      height:200px;
      width:auto;
  } */
    
  .poetry-collections-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 2rem;
  }

  section.poetry-page-list-item {
      float: none;
      width: auto;
      padding-right: 0;
  }

  .collection-cover img {
      display: block;
      height:200px;
      width:auto;
      margin: 0 0 15px 0;
  }
  
  div.double-50pc-split{
      float:left;
      width:49.5%;
      box-sizing:border-box;
  }
  
  div.double-50pc-split.paddingleft{
      padding-left:8px;
  }
  
  div.double-50pc-split.paddingright{
      padding-right:8px;
  }
  
  #main-footer p{
      padding:0;
      display:inline-block;
      float:right;
  }
  
}

@media screen and (min-width: 928px) {
  
  .lh-nav-links {
    display: flex;
    list-style-type: none;
    margin: 0 0 0 20px;
    padding: 0;
    position: unset;
    gap: 2.3vw;
  }

  .lh-nav-links li {
    padding: unset;
  }

  .lh-nav-links li a {
    text-decoration: none;
    font-weight: 300;
    color: white;
    font-size: 0.85rem;
    line-height: 1.75rem;
  }

  .hamburger-menu {
    display: none;
  }
  
}

@media screen and (min-width: 1024px) {
  
  #root-container {
    background-color: #70706f;
  }
  
  .container .page-banner{
      height:45vh;
  }
  
  .container {
    margin: 0 9vw;
  }
  
  .container .focus{
    width:70%;
    padding:50px 0;
  }
  
  .container .focus.wide{
    width:85%;
  }
  
  .container .focus h1{
      margin:1em 0 1em 0;
  }
  
  .container .focus p, .container .focus li{
      font-size:1.2em;
  }
  
  .container .focus figure.alignright{
      max-width:40%;
      margin:10px 0 10px 15px;
  }
  
  .container .focus figure.alignleft{
      max-width:40%;
      margin:10px 15px 10px 0;
  }
  
  .listed-post .post-image{
      width:32%;
  }
  
  .listed-post .post-text{
      width:64%;
  }

  .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 2rem; */
    align-items: center;
    height: 100%;
  }

  .card.reverse {
    direction: rtl;
  }

  .card.reverse > * {
    direction: ltr;
  }

  .card .text-content {
    height: 100%;
    padding: 0 25px 0 25px;
    margin-bottom: 0;
  }

  .card h2 {
    font-weight: 400;
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
    letter-spacing: 0.25rem;
  }

  .card p {
    font-weight: 100;
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: 0rem;
    margin-bottom: 20px;
  }

  .card a {
    text-decoration: none;
    color: white;
    text-decoration-line: underline;
  }

  .card .hello {
    font-size: 2.25rem;
    line-height: 2.5rem;
    letter-spacing: 0.25rem;
  }

  .card img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .header-content img {
    width: 355px;
    margin-left: 25px;
  }

  section.home {
    height: 31.25rem;
  }
  
  .section-image {
    width: 100%;
    max-height: inherit;
    overflow: hidden;
    height: inherit;
  }
  
}

@media screen and (min-width: 1100px) {
  
    .lh-nav-links li a {
      font-size: 0.95rem;
    }
  
}

@media screen and (min-width: 1280px) {
    
    .lh-nav-links li a {
      font-size: 1.125rem;
    }
    
}

@media screen and (min-height: 800px) {
    .container .page-banner{
        height:48vh;
    }
}
