/*
Theme Name: TOP Films
Description: Child theme for Genesis Block Theme. 
Author: speads
Author URI: https://speads.com
Template: genesis-block-theme
Version: 1.0
*/

/*********************
* DEBUG
*********************/
* {
  outline: 3px dotted transparent;
  outline: 3px dotted var(--debug, transparent);
}
/******************** 
* GLOBAL 
********************/
:root {
  --color-brand: #c6b73a;
  --color-link: #3a49c6;
  --font-size-site-header: max(1.5rem, min(2vw, 2.5rem));
  --font-size-h1: max(2.5rem, min(5vw, 5rem));
  --grid-cols: 6;
}
.hidden,
.display-none {
  display: none !important;
  visibility: invisble !important;
}
.has-featured-image .featured-image,
figure.technical,
p.entry-byline,
ul.meta-list {
  display: none !important;
  visibility: invisble !important;
}
.alignfull {
  padding-top: 2rem;
}
/* .wp-block-cover
  > .wp-block-cover__inner-container
  > :not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright)
  > :not(iframe) {
  max-width: 830px;
  margin-inline: auto;
} */
.wp-block-cover__inner-container
  > :not(.alignwide):not(.alignfull):not(iframe) {
  max-width: 830px;
  margin-left: auto;
  margin-right: auto;
}
/******************** 
* MEDIA QUERIES 
********************/
/******************** 
* narrow screen 
********************/
@media (max-width: 1000px) {
  .site-identity {
    flex-direction: column;
    max-width: 1600px;
  }

  .site-title-wrap {
    justify-content: center;
    flex-direction: column;
    transition: all 0;
  }

  .top-navigation-right {
    width: 100%;
  }

  .alignwide > div:has(.people, .companies) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "people"
      "companies";
  }
}
/******************** 
* wide screen 
********************/
@media (min-width: 1001px) {
  .site-identity {
    flex-direction: row;
    max-width: 1600px;
    gap: 0.5rem;
  }

  .top-navigation-right {
    max-width: 65%;
  }

  .main-navigation ul li {
    margin: 0;
    padding: 0;
  }

  .menu-header-menu-container ul {
    display: flex;
    gap: 1em;
  }

  .alignwide > div:has(.people, .companies) {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "summary summary"
      "people companies";
  }
}
@media (prefers-reduced-motion: reduce) {
  /* styles to apply if a user's device settings are set to reduced motion */

  .category-portfolio #post-wrap img:hover {
    transform: scale(100%) !important;
  }
}
/******************** 
* FONTS 
********************/
h1,
h1 span {
  font-size: max(2.5rem, min(5vw, 5rem));
  font-size: var(--font-size-h1, 3rem);
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.site-content a {
  box-shadow: inset 0 -2px 0 #c6b73a !important;
  box-shadow: inset 0 -2px 0 var(--color-brand) !important;
  /* 	color: var(--color-brand) !important; */
  color: inherit !important;
}
.site-content a:hover {
  box-shadow: inset 0 -2px 0 #3a49c6 !important;
  box-shadow: inset 0 -2px 0 var(--color-link) !important;
  color: #3a49c6 !important;
  color: var(--color-link) !important;
}
.site-content a.wp-block-button__link:hover {
  color: white !important;
}
/******************** 
* MENUS 
********************/
.top-navigation-right ul li a {
  margin: 0;
  padding: 1rem;
  line-height: 1;
}
.top-navigation,
.mobile-navigation,
.site-identity,
.site-footer {
  color: white;
  background: black;
}
body .main-navigation ul li a {
  color: white;
}
body .main-navigation ul li.current-menu-item a,
body .main-navigation ul li.current-page-item a {
  color: #c6b73a;
  color: var(--color-brand);
}
/* end menus  */
/******************** 
* HEADER 
********************/
.custom-logo-link,
.site-identity,
.site-title,
.site-title-wrap,
.titles-wrap,
.top-navigation-right {
  padding: 0;
  margin: 0;
}
.site-identity,
.site-title-wrap {
  display: flex;
  gap: 1rem;
}
.site-identity * {
  line-height: 1 !important;
}
.site-identity > *,
.site-title-wrap > *,
.menu-header-menu-container ul > * {
  flex-shrink: 0;
}
.site-identity {
  justify-content: space-between;
  margin: 1rem auto;
}
.site-title-wrap {
  justify-content: space-around;
  justify-content: center;
  align-items: center;
}
.site-header .mobile-navigation {
  background-color: black;
}
.site-title a,
.top-navigation-right a {
  color: #c6b73a;
  color: var(--color-brand);
  font-size: max(1.5rem, min(2vw, 2.5rem));
  font-size: var(--font-size-site-header);
  padding: 0.5rem;
  margin: 0;
  line-height: 1;
}
.titles-wrap a {
  padding: 0.5rem 0;
}
.site-title-wrap .custom-logo-link img {
  width: calc(max(1.5rem, min(2vw, 2.5rem)) + 1rem);
  width: calc(var(--font-size-site-header) + 1rem);
  height: calc(max(1.5rem, min(2vw, 2.5rem)) + 1rem);
  height: calc(var(--font-size-site-header) + 1rem);
  padding: 0;
  border-radius: 100%;
}
.header-text h1 span {
  color: black;
}
.home #page {
  padding-top: 0;
}
/* end header */
/******************** 
* TITLES 
********************/
header h1 {
  text-align: center;
}
/* end titles */
/******************** 
* FOOTER 
********************/
.footer-bottom {
  display: grid;
  grid-gap: 1em;
  gap: 1em;
  font-size: 1.5rem;
}
.footer-tagline,
.footer-navigation {
  width: 100%;
  text-align: center;
}
.site-footer .footer-bottom,
.site-footer .footer-bottom a {
  color: white;
}
.site-footer .footer-bottom a {
  font-weight: bold;
  color: white;
}
.site-footer .footer-bottom a:hover {
  font-weight: bold;
  color: #3a49c6;
  color: var(--color-link);
}
/* end footer */
/******************** 
* HOME PAGE 
********************/
.hero {
  margin-bottom: 0;
}
.home .wp-block-group {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.aligncenter .custom-logo {
  margin-left: auto;
  margin-right: auto;
  background: black;
}
.site-container .custom-logo {
  max-width: 75px;
}
.wp-block-button a {
  font-weight: bold;
  color: black;
  background-color: #c6b73a;
  background-color: var(--color-brand);
}
.wp-block-button a:hover {
  font-weight: bold;
  color: black;
  background-color: #3a49c6;
  background-color: var(--color-link);
}
.partners .item {
  width: 100%;
}
.partners .lslide {
  /* margin-right: 10vw !important; */
}
.partners .lslide img {
  -o-object-fit: contain !important;
     object-fit: contain !important;
}
/* end home page */
/******************** 
* PORTFOLIO PAGE 
********************/
/* portfolio list */
.category-portfolio #post-wrap,
.category-portfolio #main,
.category-portfolio #content,
.category-portfolio #primary,
.category-portfolio #page {
  width: 100vw;
  padding: 0;
  margin: 0;
  border: 0;
}
.category-portfolio.archive .entry-content, .category-portfolio.archive .entry-byline, .category-portfolio.archive .entry-header {
  display: none;
}
.category-portfolio #post-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, calc(100vw / 6));
  grid-template-columns: repeat(auto-fit, calc(100vw / var(--grid-cols)));
  grid-auto-rows: calc(100vw / 6);
  grid-auto-rows: calc(100vw / var(--grid-cols));
  grid-auto-flow: dense;
  background-color: black;
}
.category-portfolio #main #post-wrap * {
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  overflow: clip;
}
.tag-span-cols-2 {
  grid-column: span 2;
}
.tag-span-cols-3 {
  grid-column: span 3;
}
.tag-span-cols-4 {
  grid-column: span 4;
}
.tag-span-cols-5 {
  grid-column: span 5;
}
.tag-span-cols-6 {
  grid-column: span 6;
}
.tag-span-rows-2 {
  grid-row: span 2;
}
.tag-span-rows-3 {
  grid-row: span 3;
}
.tag-span-rows-4 {
  grid-row: span 4;
}
.tag-span-rows-5 {
  grid-row: span 5;
}
.tag-span-rows-6 {
  grid-row: span 6;
}
/* move alternate 4x2 images to the right for visual interest */
.tag-span-cols-4:nth-child(even) {
  grid-column-end: calc(6 + 1);
  grid-column-end: calc(var(--grid-cols) + 1);
}
/* move railway man higher */
.category-portfolio .post-126 {
  grid-row: 3 /6;
}
.category-portfolio .post-238 {
  grid-row: 8;
}
.category-portfolio .post-249 {
  grid-row: 11;
  grid-column: 2;
}
.category-portfolio .post-255 {
  grid-row: 9;
}
.category-portfolio #post-wrap img {
  transition: all 2s ease-in-out !important;
}
.category-portfolio #post-wrap img:hover {
  transition: all 2s ease-in-out;
}
.category-portfolio #post-wrap img:hover {
  transform: scale(105%);
}
.archive.category-portfolio #masthead,
.archive.category-portfolio #masthead h1 span {
  background: black;
  color: white;
}
/* end portfolio page */
/******************** 
* SERVICES PAGE 
********************/
/******************** 
* ABOUT PAGE 
********************/
.gb-block-profile figure {
  background-size: cover;
  background-position: center;
}
.gb-block-profile:hover img {
  opacity: 0;
}

/******************** 
* CONTACT PAGE 
********************/
/******************** 
* PORTFOLIO PROJECT 
********************/
.lSSlideWrapper ul li img {
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 16/9;
}
/* PROJECT TABLES */
.category-portfolio table tr {
  background: transparent;
  max-width: calc(100dvh - 20ch;);
}
.category-portfolio table th:first-of-type {
  width: 20ch;
  font-style: oblique;
}
.category-portfolio table td:first-of-type {
  width: 20ch;
  font-style: oblique;
}
table tr:nth-child(even) {
  background: white;
}
.category-portfolio table td, .category-portfolio table th {
  border: 0;
}
.alignwide > div:has(.people, .companies) {
  display: grid;
  grid-gap: 2rem;
  gap: 2rem;
}
.alignwide div:has(.people) p {
  grid-area: summary;
  max-width: 70ch;
  text-align: left;
  margin: 5rem auto;
}
.people {
  grid-area: people;
}
.companies {
  grid-area: companies;
}
/* end portfolio project */
