/*
Theme Name: Jormi
Theme URI: https://thewestharbour.com
Author: The West Harbour
Author URI: https://thewestharbour.com
Description: A fork of Frost by WP Engine to accommodate Tailwind, ViteJS, and other efficiencies.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.5
Tested up to: 6.5.2
Requires PHP: 7.0
Version: 1.0.9
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: jormi
*/

/* Defaults
---------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
  transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
  text-decoration-thickness: 1px;
}

b,
strong,
th {
  font-weight: var(--wp--custom--font-weight--medium);
}

mark {
  background: linear-gradient(
    90deg,
    var(--wp--preset--color--primary) 0%,
    var(--wp--preset--color--primary) 100%
  );
  background-position: 0 85%;
  background-repeat: repeat-x;
  background-size: 100% 15%;
}

/* -- Forms -- */

input,
select,
textarea {
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--contrast);
  border-radius: 0;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--primary);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: var(--wp--custom--font-weight--light);
  line-height: var(--wp--custom--line-height--body);
  padding: 10px 20px;
  width: 100%;
}

input:focus,
textarea:focus {
  background-color: var(--wp--preset--color--neutral);
  outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
}

::placeholder {
  color: var(--wp--preset--color--contrast);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.5;
}

/* Blocks
---------------------------------------- */

/* -- Code -- */

*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--neutral);
  font-size: var(--wp--preset--font-size--small);
  padding: 5px 8px;
}

/* -- Navigation -- */

.wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  border: 1px solid currentColor;
  padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
  color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
  background-color: var(--wp--preset--color--contrast);
  border: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
  padding: 2px 10px;
}

/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
  box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
  box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {
  /* -- Utility -- */

  .is-style-hidden-mobile {
    display: none !important;
  }
}

@media only screen and (max-width: 782px) {
  /* -- Columns -- */

  .is-style-columns-reverse {
    flex-direction: column-reverse;
  }
}

body::before {
  content: '';
  display: block;
  z-index: -1;

  background-image: url("./assets/images/paper-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;

  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#team::after {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url("./assets/images/kilroy-divider.png");

  background-repeat: no-repeat;
  background-size: 10rem;
  background-position: bottom;
  position: absolute;
  bottom: -1%;
  left: 0;
  pointer-events: none;
}

@media screen and (max-width: 48em) {
  #team figure {
    position: relative;
    margin-bottom: 0 !important;
  }

  #team figure img {
    object-fit: contain;
  }

  #team .patrick-condo img,
  #team .racer-x img {
    position: absolute;
    top: 0;
    right: -20%;
  }

  #team .josh-gad img {
    position: absolute;
    top: 0;
    left: -20%;
  }
}

#team .patrick-condo {
  height: 564px;
}

#team .josh-gad {
  height: 472px;
}

#team .racer-x {
  height: 464px;
}

@media screen and (min-width: 48em) {
}

.jormi-footer-date p {
  margin: 0 !important;
}

.kilroy-members figure {
  transform-origin: center center;
}

.patrick-column figure:hover,
.josh-column figure:hover,
.racer-column figure:hover {
  animation: wiggle 0.5s ease-in-out infinite;
}

.sway:hover {
  animation: sway 0.5s ease-in-out infinite;
}

.sway {
  transform-origin: center center;
  width: max-content;
}

.alt-sway {
  max-width: fit-content;
}
@keyframes wiggle {
  0% {
    rotate: 0deg;
    translate: 0 0;
  }

  25% {
    rotate: -2deg;
    translate: -5px 0;
  }

  80% {
    rotate: 2deg;
    translate: 5px 0;
  }
}

@keyframes sway {
   0% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-2deg);
  }
}