/*
Theme Name: Elemental Expressions
Description: A standalone recreation of the Elemental Expressions website, with native WordPress galleries.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: elemental-expressions
*/
@import url('assets/fonts.css');
:root {
  --ink:#444;
  --pink:#e56193;
  --paper:#fff;
  --chalk:"Cabin Sketch",sans-serif;
  --body:"Gudea",Arial,sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  font-size:15px;
}
body {
  margin:0;
  background:#464545;
  color:var(--ink);
  font:15px/24px var(--body);
}
.site-background {
  position:fixed;
  inset:0;
  z-index:0;
  background:url('assets/background.jpg') center top/cover no-repeat;
}
.site-wrap {
  position:relative;
  z-index:1;
}
a {
  color:var(--pink);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
  color:#e28faf;
}
button,input,textarea {
  font:inherit;
}
button {
  cursor:pointer;
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:3px solid #e56193;
  outline-offset:4px;
}
img {
  max-width:100%;
  height:auto;
  vertical-align:middle;
}
video {
  max-width:100%;
  height:auto;
}
p {
  margin:0 0 15px;
}
p:last-child {
  margin-bottom:0;
}
strong {
  font-weight:bold;
}
h1,h2,h3,h4,h5,h6 {
  font-family:var(--chalk);
  font-weight:400;
  margin:0 0 15px;
}
h1 {
  font-size:52px;
  line-height:56px;
}
h2 {
  font-size:44px;
  line-height:48px;
}
h3 {
  font-size:36px;
  line-height:40px;
}
h4 {
  font-size:28px;
  line-height:32px;
}
h5 {
  font-size:20px;
  line-height:31px;
}
*+h2,*+h3,*+h4 {
  margin-top:25px;
}
.site-wrap {
  max-width:1100px;
  padding:0 40px;
  margin:auto;
}
.site-header {
  margin-top:30px;
  text-align:center;
  color:#fff;
}
.site-header h3 {
  margin:0;
  font-size:36px;
  line-height:40px;
}
.site-header h3+h3 {
  margin-top:25px;
}
.site-nav {
  margin:70px 0;
  border:30px solid transparent;
  border-left:0;
  border-right:0;
  border-image:url('assets/nav-border.png') 30 repeat;
  position:relative;
  z-index:5;
}
.site-nav ul {
  list-style:none;
  padding:0;
  margin:0;
}
.nav-list {
  display:flex;
  justify-content:center;
}
.nav-list>li {
  position:relative;
}
.nav-list>li>a,.nav-list>li>button {
  display:block;
  padding:0 23px;
  height:40px;
  background:transparent;
  border:0;
  color:#fff;
  font:32px/40px var(--chalk);
  text-transform:uppercase;
  white-space:nowrap;
}
.nav-list>li+li>a,.nav-list>li+li>button {
  background:url('assets/nav-divider.png') left top repeat-y;
}
.nav-list a:hover,.nav-list button:hover,.nav-list .current-menu-item>a {
  color:var(--pink);
  text-decoration:none;
}
.nav-list .sub-menu {
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:200px;
  background:#fff;
  padding:15px;
  box-shadow:0 4px 10px #0003;
}
.sub-menu a {
  display:block;
  padding:8px 12px;
  color:#444;
}
.sub-menu a:hover {
  background:#f6edf1;
}
.nav-list>li.is-open>.sub-menu {
  display:block;
}
.menu-toggle {
  display:none;
}
.panel {
  background:#fff;
  background-clip:padding-box;
  border:30px solid white;
  border-image:url('assets/panel-border.png') 30 round;
  padding:10px;
  margin-bottom:40px;
}
.panel:after {
  content:"";
  display:block;
  clear:both;
}
.panel>*:first-child {
  margin-top:0;
}
.panel>*:last-child {
  margin-bottom:0;
}
.quote blockquote {
  border-left:5px solid #d4d4d4;
  margin:0 0 15px;
  padding:0 0 0 15px;
  text-align:center;
  font-style:italic;
  font-size:16px;
  line-height:22px;
}
.quote small {
  display:block;
  color:#999;
  font-size:13px;
  font-style:normal;
}
.quote p {
  margin-bottom:5px;
}
.hero {
  position:relative;
  width:930px;
  max-width:100%;
  margin:auto;
  aspect-ratio:3/2;
}
.hero-slide {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  opacity:0;
  transition:opacity .72s;
}
.hero-slide.is-active {
  opacity:1;
}
.hero-controls button {
  position:absolute;
  z-index:1;
  top:calc(50% - 22px);
  background:#0008;
  border:0;
  color:#fff;
  width:40px;
  height:44px;
  font-size:30px;
  opacity:0;
  transition:opacity .15s;
}
.hero:hover button,.hero:focus-within button {
  opacity:1;
}
.hero .prev {
  left:0;
}
.hero .next {
  right:0;
}
.hero .pause {
  top:auto;
  bottom:8px;
  right:8px;
  font-size:16px;
  width:auto;
  padding:0 10px;
  height:30px;
}
.uk-grid {
  display:flex;
  flex-wrap:wrap;
  margin-left:-40px;
}
.uk-grid>div {
  padding-left:40px;
}
.uk-width-medium-1-2 {
  width:50%;
}
.uk-width-1-1 {
  width:100%;
}
.uk-overlay {
  position:relative;
  display:inline-block;
  max-width:100%;
}
.uk-overlay p {
  margin:0;
}
.uk-overlay-caption {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:#0008;
  color:#fff;
  padding:15px;
  opacity:0;
  transition:opacity .2s;
}
.uk-overlay:hover .uk-overlay-caption {
  opacity:1;
}
.uk-overlay+p {
  margin-top:15px;
}
.alignleft {
  float:left;
  margin:0 15px 15px 0;
}
.alignright {
  float:right;
  margin:0 0 15px 15px;
}
.aligncenter {
  display:block;
  margin:15px auto;
}
.uk-button,.wpcf7-submit {
  display:inline-block;
  background:#e56193;
  color:#fff;
  border:0;
  padding:8px 20px;
}
.uk-button:hover {
  background:#e28faf;
  color:#fff;
  text-decoration:none;
}
.element-tiles {
  text-align:center;
  padding-top:40px;
  padding-bottom:40px;
}
.element-tiles h3 {
  margin-bottom:25px;
}
.element-grid {
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}
.element-card {
  width:170px;
}
.element-card img {
  width:170px;
  height:170px;
  border-radius:50%;
  object-fit:cover;
}
.element-card h4 {
  margin:10px 0 20px;
}
.element-card p {
  font-size:14px;
  line-height:20px;
}
.photo-gallery {
  display:grid;
  grid-template-columns:repeat(var(--columns,4),minmax(0,1fr));
  gap:20px;
}
.photo-gallery a {
  display:block;
  position:relative;
  align-self:start;
}
.photo-gallery img {
  width:100%;
  height:auto;
  border-radius:6px;
}
.photo-gallery a:hover img {
  filter:brightness(.85);
}
hr {
  border:0;
  border-top:1px solid #d4d4d4;
  margin:20px 0;
}
.lightbox {
  border:0;
  background:transparent;
  color:#fff;
  padding:48px 60px 30px;
  width:100vw;
  max-width:100vw;
  max-height:100vh;
  height:100vh;
  margin:0;
}
.lightbox::backdrop {
  background:#000e;
}
.lightbox[open] {
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox figure {
  margin:0;
  text-align:center;
}
.lightbox img {
  display:block;
  max-height:calc(100vh - 120px);
  max-width:calc(100vw - 120px);
  width:auto;
  height:auto;
  margin:auto;
}
.lightbox button {
  position:absolute;
  background:#222a;
  color:#fff;
  border:1px solid #ffffff60;
  border-radius:4px;
  min-width:44px;
  min-height:44px;
  font-size:28px;
}
.lightbox-close {
  right:12px;
  top:12px;
}
.lightbox-prev {
  left:8px;
  top:48%;
}
.lightbox-next {
  right:8px;
  top:48%;
}
.lightbox figcaption {
  margin-top:12px;
  min-height:24px;
}
.site-footer {
  border-top:8px solid transparent;
  border-image:url('assets/nav-border.png') 30 repeat;
  margin-top:40px;
  padding:40px 0 50px;
  text-align:center;
  color:#fff;
}
.site-footer a {
  color:inherit;
}
.wpcf7 input:not([type=submit]):not([type=checkbox]),.wpcf7 textarea {
  width:100%;
  max-width:600px;
  padding:8px 10px;
  border:1px solid #ccc;
  background:white;
  color:#444;
}
.wpcf7 textarea {
  min-height:160px;
}
.wpcf7 form p {
  margin-bottom:20px;
}
.screen-reader-text {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
.skip-link:focus {
  clip-path:none;
  width:auto;
  height:auto;
  z-index:100;
  top:0;
  left:0;
  padding:10px;
  background:#fff;
}
.entry-meta {
  color:#888;
}
.pagination {
  padding-top:20px;
}
.preview-note {
  font-size:14px;
  color:#666;
}
@media(min-width:768px) and (max-width:1219px) {
  .site-wrap {
    max-width:980px;
    padding:0 30px;
  }
  .panel {
    padding:0;
    margin-bottom:30px;
  }
  .site-nav {
    margin:30px 0;
  }
  .nav-list>li>a,.nav-list>li>button {
    font-size:27px;
    padding:0 20px;
  }
  .uk-grid {
    margin-left:-30px;
  }
  .uk-grid>div {
    padding-left:30px;
  }
}
@media(max-width:767px) {
  .site-wrap {
    padding:0 15px;
  }
  .site-header {
    margin-top:25px;
  }
  .site-header h3 {
    font-size:24px;
    line-height:30px;
  }
  .site-header h3+h3 {
    font-size:19px;
    line-height:26px;
    margin-top:12px;
  }
  .site-nav {
    margin:25px 0;
    border-width:15px 0;
  }
  .menu-toggle {
    display:block;
    background:transparent;
    color:#fff;
    border:0;
    padding:5px 12px;
    font:25px var(--chalk);
  }
  .nav-list {
    display:none;
    flex-direction:column;
    padding:10px!important;
  }
  .site-nav.menu-open .nav-list {
    display:flex;
  }
  .nav-list>li>a,.nav-list>li>button {
    font-size:25px;
    padding:5px 10px;
    background:none!important;
    height:auto;
    text-align:left;
  }
  .nav-list .sub-menu {
    position:static;
    box-shadow:none;
    margin:5px 0 10px;
  }
  .panel {
    border-width:18px;
    padding:10px;
    margin-bottom:25px;
  }
  .uk-grid {
    display:block;
    margin:0;
  }
  .uk-grid>div {
    width:100%;
    padding:0;
  }
  .uk-grid>div+div {
    margin-top:25px;
  }
  .photo-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .hero-controls button {
    opacity:1;
  }
  .element-grid {
    gap:25px 15px;
  }
  .element-card {
    width:calc(50% - 10px);
  }
  .element-card img {
    width:140px;
    height:140px;
  }
  .element-card h4 {
    margin-bottom:10px;
  }
  .element-tiles {
    padding-top:20px;
    padding-bottom:20px;
  }
  .element-tiles h3 {
    font-size:30px;
  }
  .alignleft,.alignright {
    max-width:45%;
  }
  h1 {
    font-size:36px;
    line-height:42px;
  }
  h2 {
    font-size:32px;
    line-height:38px;
  }
  h3 {
    font-size:29px;
    line-height:34px;
  }
  .site-footer {
    margin-top:25px;
    padding:25px 0;
  }
  .lightbox {
    padding:50px 10px;
  }
  .lightbox img {
    max-width:calc(100vw - 20px);
  }
  .lightbox-prev,.lightbox-next {
    top:auto!important;
    bottom:10px;
  }
  .quote blockquote {
    font-size:15px;
  }
  .element-card p {
    font-size:13px;
  }
}
/* Match the measured desktop typography and spacing of the reference. */
h1,h2,h3,h4,h5,h6 {
  text-transform:uppercase;
}
@media(min-width:1220px) {
  .nav-list>li>a,.nav-list>li>button {
    padding-left:29px;
    padding-right:19px;
  }
}
.panel.quote blockquote {
  font-size:17px;
  line-height:23px;
  margin-bottom:15px;
}
.quote small {
  line-height:23px;
}
@media(min-width:768px) {
  .element-tiles {
    padding:10px;
  }
  .element-tiles h3 {
    margin-bottom:15px;
  }
  .panel.element-tiles .element-grid {
    margin:20px 0;
  }
  .element-card {
    width:auto;
    min-width:170px;
    max-width:200px;
  }
  .element-card h4 {
    margin:10px 0;
  }
  .element-card p {
    margin:15px 0;
    font-size:14px;
    line-height:24px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

/* Keep the original pink accent, with readable text on white panels. */
.panel a { color: #b33666; }
.panel a:hover { color: #94264f; }
.panel .uk-button, .wpcf7-submit { background: #b33666; color: #fff; }
.panel .uk-button:hover, .wpcf7-submit:hover { background: #94264f; color: #fff; }
.quote small, .entry-meta { color: #767676; }
