/*
Theme Name:   gawdafful-theme
Template:     twentytwentyone
*/

/* -------------------------
   Fonts
------------------------- */

@font-face {
    font-family: 'Nova Cut';
    src: url('fonts/NovaCut-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
	font-display: block;
}

@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: block;
}

/* -------------------------
   Base
------------------------- */

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

body {
    font-family: 'Lora', Georgia, serif !important;
    font-weight: 400;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page {
    flex: 1;
}

/*button {
    background: none !important;
    color: white !important;
    border: 2px solid white !important;
}*/

input {
    border: 2px dotted white !important;
    background: none !important;
    color: white !important;
}

h1 {
    font-family: 'Nova Cut' !important;
}

figcaption {
    text-align: left !important;
    line-height: 1.2 !important;
    margin: 5px 0px !important;
}

/* -------------------------
   Images
------------------------- */

img {
    box-shadow: 10px 10px 400px pink;
    max-width: 100%;
    height: auto;
}

img.headshot {
    border-radius: 50%;
    object-fit: cover;
    width: 400px !important;
    box-shadow: 10px 10px 100px cyan;
	max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
}

img.splash {
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 10px 10px 100px cyan;
    margin-bottom: -100px;
}

img.term-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

img.gild-edge {
    height: 100% !important;
    width: 40px;
    position: absolute;
    left: 0px;
    top: 0px;
}

/* -------------------------
   Links
------------------------- */

a {
    text-decoration: none;
}

a:focus {
    background: inherit !important;
    border-bottom: 2px solid;
}

a:hover {
    border-bottom: 2px dotted;
}

a.ppl-links {
    padding: 2px 5px;
    white-space: nowrap;
    color: pink;
}

a.prod-list {
    padding: 2px 5px;
}

article a {
    border-bottom: 2px dotted;
}

article a:hover {
    border-bottom: 2px solid;
}

article a:focus {
    border-bottom: 2px solid pink;
}

#masthead a:hover {
    border-bottom: none;
}

.primary-navigation a:focus {
    background: black !important;
    color: lightpink !important;
    border-bottom: none;
    text-decoration: underline;
    text-decoration-style: solid;

}

a:focus img {
    outline: 2px dotted transparent !important;
    filter: hue-rotate(360deg);
}

.menu-item a {
    padding: 16px;
    color: darkred !important;
    background: lightpink;
    box-shadow: 10px 10px 100px red;
    margin: 2px;
}

.current-menu-item a {
    background: darkred !important;
    color: white !important;
}

.primary-navigation a {
    padding: 16px !important;
}

.menu-wrapper li {
    text-align: center;
}

.menu-wrapper a {
    padding: 16px 10px;
}


/* -------------------------
   Layout
------------------------- */

#main {
    padding: 120px 2.5% 0px 2.5%;
    overflow: hidden;
}

#pp-container {
    padding: 20px;
    width: 90vw;
    margin: auto;
}


/* -------------------------
   Header and Navigation
------------------------- */

.site-branding {
    position: absolute;
    left: 2.5%;
    width: 34rem !important;
    padding: 1rem 1rem 1rem 60px;
    box-shadow: 10px 10px 100px violet;
    z-index: 99;
    text-align: left !important;
    transform: scale(0.5);
    transform-origin: top left;
}

body:not(.home) .site-branding:hover {
    color: gold !important;
}

.site-description {
    display: none;
    padding: 10px 5px;
    text-align: left;
    font-family: 'Nova Cut' !important;
    font-size: 1.4em !important;
    border-top: 2px solid;
    margin-top: 20px;
}

#site-navigation {
    position: fixed;
    top: 0px;
    margin: 5%;
    z-index: 100;
}

.menu-button-container #primary-mobile-menu .dropdown-icon {
    display: flex;
    align-items: center;
    color: red;
    background: pink;
    padding: 5px;
    box-shadow: 10px 10px 50px floralwhite;
}

.primary-menu-container {
    background:none;
}


/* -------------------------
   Typography
------------------------- */

.site-main h1 {
    border-bottom: 15px dotted purple;
    margin-bottom: 40px;
	z-index: 999999;
    position: relative;
}

.site-main h2,
.site-main p {
    margin-top: 0px;
    margin-bottom: 0px;
}

p.see-also {
    text-align: right;
    padding-top: 20px;
    max-width: 95%;
    line-height: 1.6;
    font-family: 'Lora';
}

p.attr {
    text-align: right;
    font-size: 0.8em;
    padding: 20px 20px 0px 0px !important;
}

.term-title {
    display: block;
    text-align: center;
    font-family: 'Nova Cut';
}

.term-date {
    font-size: 0.8em;
    opacity: 0.7;
}

.bio {
    background: whitesmoke;
    color: darkmagenta;
    padding: 40px;
    margin: 20px;
    border-left: 15px dotted;
    box-shadow: 10px 10px 100px goldenrod;
    width: fit-content;
}

.cc-list {
    width: fit-content;
    margin-bottom: 40px;
}

.pp-description {
    margin: 20px 0px;
}

.pp-description p {
    padding-bottom:20px;
}

ul.links-list {
    list-style: none;
    padding: 20px;
    text-align: left;
    font-size: 0.9em;
    font-family: inherit;
}

ul.links-list li a {
    border-bottom: 2px dotted;
}

/* -------------------------
   Archive entry kinds
------------------------- */

.kind-video {
    margin-bottom: 0px;
    padding-bottom: 0px !important;
}

.kind-video p {
    width: 480px;
    max-width: 100%;
    padding: 20px;
    margin: 20px;
}

article + p.see-also {
    padding-top: 20px;
    margin-bottom: 60px;
}

.kind-script {
    background: wheat;
    color: brown;
    font-family: courier;
    padding: 40px;
    border-bottom: 15px dotted;
    box-shadow: 10px 10px 100px;
    margin-bottom: 40px;
}

.pp-grid article {
    box-shadow: 10px 10px 100px maroon;
    padding: 40px;
	margin-top: 60px;
    font-family: 'Lora';
}

.pp-grid article p {
    padding-bottom:20px;
}

.kind-press {
    background: cornsilk;
    color: darkgreen;
    margin-bottom: 0px;
    font-size: inherit;
    border-top: 15px dotted;
    border-bottom: none;
	box-shadow: 10px 10px 100px blue !important;
}

/* -------------------------
   Video embeds
------------------------- */

figure.wp-block-embed {
    box-shadow: 10px 10px 100px green;
    width: 100%;
    margin: 0 auto;
}

.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    /*overflow: hidden;*/
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

figure.wp-embed-aspect-16-9 {
    width: 100%;
    max-width: 800px;
}

figure.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    aspect-ratio: 16 / 9;
    position: relative;
}

figure.wp-embed-aspect-9-16 {
    max-width: 400px;
    width: 100%;
}

figure.wp-embed-aspect-9-16 .wp-block-embed__wrapper {
    aspect-ratio: 9 / 16;
    position: relative;
}

figure.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
    aspect-ratio: 4 / 3;
    position: relative;
}

/* -------------------------
   Pages
------------------------- */

.entry-content {
    margin-bottom: 60px !important;
    font-family: 'Lora' !important;
}

.entry-content p {
    padding: 40px;
    box-shadow: 10px 10px 100px gold;
    margin-left: auto !important;
}

span.edit-link {
    width: fit-content;
    padding: 10px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: hotpink;
    background: brown;
    border: 20px solid;
    z-index: 5000;
}

span.edit-link:hover {
    background: limegreen;
    color: brown;
}

/* -------------------------
   PP Grid (production/person term pages)
------------------------- */


.pp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    justify-items: center;
    max-width: 100%;
    /*overflow: hidden;*/
}

.pp-grid__splash,
.pp-grid__left,
.pp-grid__images,
.pp-grid__entry {
    /*width: 100%;*/
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.pp-grid__splash img.splash {
    width: auto !important;
    height: auto !important;
    max-width: 80vw !important;
    max-height: 90vh !important;
    display: block;
    margin: 0 auto;
}

.pp-grid__images figure,
.pp-grid__images img {
    max-width: 100%;
    box-sizing: border-box;
}

.pp-grid__left .wp-block-embed__wrapper,
.pp-grid__entry .wp-block-embed__wrapper {
    overflow: hidden;
    max-width: 100%;
}

.pp-grid__left {
    margin-top: 80px;
}

.pp-grid__splash figure {
    margin: 0;
}

.pp-grid__splash figcaption {
    line-height: 1.4em !important;
    position: relative;
/*     top: 95px; */
    text-align: center !important;
}

.pp-grid__splash img {
    display: block;
}

.tax-person .pp-grid__splash {
    margin-bottom: -80px;
}


/*

.splash--landscape img.splash {
    width: 95vw;
    height: auto;
}

.splash--portrait img.splash {
    height: 90vh;
    width: auto;
}
*/

.pp-grid__image img {
    width: 100%;
    height: auto;
    display: block;
}

.pp-grid__image {
    margin: 0;
}

.pp-grid__images figure {
    margin: 0 auto 60px auto;
    width: 95%;
}

.pp-grid__images img {
    width: 100%;
    height: auto;
    display: block;
}


/* -------------------------
   Productions grid
------------------------- */

.productions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.production-item {
    flex: 1 1 300px;
    max-width: 100%;
}

.production-item--landscape {
    flex: 2 1 400px;
    min-width: 300px;
    max-width: 620px;
}

.production-item--portrait {
    flex: 1 1 250px;
    min-width: 300px;
    max-width: 620px;
}

.production-item img.term-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.production-item a,
.person-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.production-item a:hover,
.person-item a:hover {
    filter: hue-rotate(120deg);
    border-bottom: none;
}

.production-item a:focus,
.person-item a:focus {
    border-bottom: none;
}

/* -------------------------
   People grid
------------------------- */

.people-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 40px 0px 80px 0px;
}

.person-item {
    box-shadow: 10px 10px 200px blue;
    padding: 16px;
}

.person-item img {
    border-radius: 50%;
    width: 200px !important;
    height: 200px !important;
}

/* -------------------------
   Featured grid (home page)
------------------------- */

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-grid__col--right {
    order: -1;
}

.featured-grid__col--left {
    order: 1;
}

.featured-grid__col {
    max-width: 95vw;
}

.featured-grid__col figure.wp-block-embed {
    width: 100%;
    max-width: 100%;
}

.featured-grid__col iframe {
    width: 100% !important;
    max-width: 100%;
}

iframe {
    max-width: 100% !important;
}

.featured-grid__col .wp-block-embed__wrapper {
    max-width: 100%;
    /*overflow: hidden;*/
}

.grid-item {
    width: 100%;
    padding: 10px;
    margin-bottom: 12.5vh;
}

.grid-item article,
.kind-grid article {
    padding: 40px;
}

article.kind-video {
    padding:0px;
    overflow: visible;
    box-shadow:none;
}

article.kind-video .wp-block-embed__wrapper {
    overflow: hidden;
    max-width: 100%;
}

article.kind-video .wp-block-embed {
    max-width: 100%;
    min-width: 0;
}

.grid-item--pinned article {
    box-shadow: 10px 10px 100px darkorange;
}

/* -------------------------
   Kind grid
------------------------- */

.kind-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    min-width: 0;
}

.kind-grid__item {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.kind-grid__item .wp-block-embed__wrapper {
    overflow: hidden;
    max-width: 100%;
}

.kind-grid__item article {
    max-width: 100%;
    /*overflow: hidden;*/
}

/* -------------------------
   Media library images
------------------------- */

.media-library-images figure {
    height: 100vh;
    margin-bottom: 160px;
}

.media-library-images img {
    max-height: 100% !important;
    width: auto !important;
}

/* -------------------------
   Footer
------------------------- */

#footer-container 
{
    display: block;
    box-shadow: -10px -10px 10000px #F44336;
    width: 100vw;  
    position: relative;
    flex-shrink: 0;
}

.footer-navigation {
    margin: 40px;
}

.footer-navigation span {
    font-size: 1.5em;
}

.footer-navigation-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-navigation-wrapper li {
    display: inline;
    line-height: 1.5 !important;
}

.footer-navigation-wrapper .menu-item a {
    color: inherit !important;
    box-shadow: none;
    background: none;
    padding: 5px;
}

.footer-navigation-wrapper .menu-item a:hover {
    text-decoration: none !important;
    border-bottom: 2px dotted;
}

.footer-navigation-wrapper .menu-item a:focus {
    border-bottom: 2px solid;
}

.footer-navigation .current-menu-item a {
    background: darkred !important;
    border-bottom: 2px solid;
}

/* Hide footer menu items injected into mobile nav on large screens */
.mobile-footer-item,
.mobile-footer-divider {
    display: none;
}

#crest {
    width: 280px;
    margin-left: calc(100vw - 270px);
    margin-top: -210px;
    padding-bottom: 20px;
}

#crest img {
    box-shadow:none;
	filter: drop-shadow(10px 10px 40px limegreen);
}

body.primary-navigation-open #crest {
    display:none;
}


/* mouse hover effects */

.hue-spotlight {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    animation: hue-rotate 32s linear infinite;
    mix-blend-mode: color;
    background: radial-gradient(circle, hsl(200, 100%, 50%) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 999999999999;
}

@keyframes hue-rotate {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


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

@media only screen and (max-width: 481.98px) {
    #site-navigation {
        width: 90%;
    }

    .site-header:not(.has-logo).has-title-and-tagline .site-branding {
        max-width: 104vw !important;
    }
}

@media (min-width: 482px) {
    .site-header {
        padding-bottom: 140px !important;
    }
}

@media (max-width: 899px) {
    .mobile-footer-item,
    .mobile-footer-divider {
        display: block;
    }

    .mobile-footer-divider {
        border-top: 1px solid;
        margin: 10px 0;
        pointer-events: none;
    }

    #site-navigation {
        position: fixed;
        top: 0;
        right: 0;
        margin: 0;
        z-index: 100;
    }

    .menu-button-container {
        display: flex !important;
        padding: 10px;
        position: relative;
        z-index: 10000 !important;
        background-color: rgba(0, 0, 0, 0) !important;
    }

    .primary-menu-container {
        display: none !important;
    }

    .menu-button-container:has(#primary-mobile-menu[aria-expanded="true"]) ~ .primary-menu-container {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.85);
        z-index: 9999 !important;
        overflow-y: auto !important;
        padding-top: 60px !important;
    }

    .menu-wrapper {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-wrapper li {
        display: block;
        width: 100%;
    }

    .menu-item a {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #footer-container {
        display: none;
    }
}


@media (min-width: 900px) {

    body:not(.home) .site-branding {
        transform: scale(0.5);
        transform-origin: top left;
    }

    body.home .site-branding {    
    transform: none;
    }

    body.home .site-description {
        display: block;
    }

    .home #main {
        margin-top: 320px;
    }

    #main {
        margin-top: 0px;
    }

    .tax-kind #content {
        position: relative;
        top: 40px;
    }

    .featured-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .featured-grid__col {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        flex: 1 1 0;
        min-width: 0;
        order: unset;
    }

    .featured-grid__col--left {
        margin-top: 332px;
    }

    .kind-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .people-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pp-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .pp-grid__splash {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 80px;
    }

    .pp-grid__left {
        grid-column: 1;
        grid-row: 2;
    }

    .pp-grid__images {
        grid-column: 2;
        grid-row: 2 / -1;
        margin-top: 120px;
    }

    .pp-grid__entry {
        grid-column: 1;
    }

    img.splash {
        max-width: 80vw;
    }

    .footer-navigation {
        width: 380px;
    }

    .footer-navigation-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        justify-content: left !important;
    }

     .mobile-footer-item {
        display: none !important;
    }

.menu-button-container {
        display: none !important;
    }

    .primary-menu-container {
        display: block !important;
    }

}

@media (min-width: 1200px) {
    .home #main {
        margin-top: 0px !important;
    }
}