:root {
    --khaki: #465b4f;
    --orange: #eb5829;
    --beige: #e5e2d1;
    
    --serif: "Catalogue Regular", serif;
    --sans-serif: sans-serif;
    --normal-font: normal;
    
    --content-cell-to-logo-bottom: calc(min((100vh/6 - 5px) + ((100vw/3 - 120px) * 0.14955), (100vh/3 - 10px) * 0.67988) - ((100vh/3 - 10px)));
    --grid-header-row: calc((100vh - 30px) / 3);
    --grid-other-row: calc((100vh - 30px) / 3);
}
@media (max-width: 1100px) {
    :root {
        --grid-header-row: 90px;
    }
}

body {
    width: 100%;
    background-color: black; color: white;
    font-family: "Kontinent", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media (max-width: 1100px) {
    body {
        letter-spacing: 0;
    }
}
body.page-khaki {
    background-color: var(--khaki);
}
body.page-beige {
    background-color: var(--beige);
}
body.page-orange {
    background-color: var(--orange);
}
body.page-black {
    background-color: black;
}
body.page-beige, body.page-beige a {
    color: black;
}
body.page-black, body.page-khaki, body.page-orange,
body.page-black a, body.page-khaki a, body.page-orange a
{
    color: white;
}
a {
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}


body.page-default {
    display: grid;
    min-height: 100vh;
    grid-template: "header . aplus" "below-logo content aplus";
    grid-template-rows: var(--grid-header-row) 2fr;
    grid-template-columns: calc(100vw/3) 4fr minmax(100px, 1fr);
}
body.page-default.page-contact {
    grid-template-columns: calc(100vw/3) 3.3fr minmax(200px, 1.7fr);
}
body.page-default.page-showreel {
    grid-template-rows: var(--grid-header-row) min-content 2fr;
}

body.page-default header {
    grid-area: header;
}
body.page-default header h1, body.page-default header h1 a {
    display: block;
}
body.page-default header h1 svg,
.logo svg {
    width: calc(100% - 120px);
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 960px) {
    body.page-default {
        grid-template: "header" "content";
        grid-template-rows: 180px 1fr;
    }
}
body.page-default .content-block {
    grid-area: content;
}
body.page-default .aplus {
    grid-area: aplus;
    position: relative;
}


body.page-index .aplus svg {
    position: absolute;
    bottom: 60px;
    right: 60px;
    height: 140px;
    width: auto;
}
body.page-contact .aplus svg {
    position: absolute;
    right: 0;
    max-width: 100%;
    height: auto;
    max-height: calc(min(80vh, 100%));
    color: white;
    bottom: 60px;
}
@media (min-width: 1101px) and (max-width: 1400px) {
    body.page-contact .aplus svg {
        max-height: calc(min(80vh, 80%));
    }
}

.hover-menu--container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% / 3);
    height: 100vh;
    z-index: 100;
    color: white;
    background-color: var(--khaki);
    padding: 0;
    margin: 0;
}
.hover-menu--container.hover-menu--active {
    display: block;
    animation: expandFromTop 0.4s forwards;
}
body.page-recent .hover-menu--container.hover-menu--active {
    animation: appearAndExpand 0.4s forwards;
}
@keyframes expandFromTop {                                                                                                                                                              
    0% { height: 0; }
    100% { }
}
@keyframes appearAndExpand {                                                                                                                                                              
    0% { height: var(--grid-header-row); opacity: 0; }
    30% { height: var(--grid-header-row); opacity: 1; }
    100% {  }
}
@keyframes shrinkToTop {                                                                                                                                                              
    0% {  }
    100% { height: 0; }
}
@keyframes shrinkAndDisappear {                                                                                                                                                              
    0% {}
    70% { height: var(--grid-header-row); opacity: 1; }
    100% { height: var(--grid-header-row); opacity: 0; }
}
.hover-menu--container.hover-menu--disappearing {
    display: block;
    overflow: hidden;
    animation: shrinkToTop 0.4s forwards;
}
body.page-recent .hover-menu--container.hover-menu--disappearing {
    animation: shrinkAndDisappear 0.4s forwards;
}
.hover-menu--container .logo {
    width: 100%;
    height: var(--grid-header-row);
    position: relative;
}
body.page-recent .hover-menu--container {
    height: calc(var(--grid-header-row) * 3);
}
.hover-menu--container ul.index-menu {
    margin-left: calc((100vw/3 - min(100vw / 3 - 120px, (100vh - 30px) * 0.4010367484695357))/2);
    margin-right: 0.3em;
}
@keyframes appearAfterMenu {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hover-menu--container ul.index-menu > * {
    opacity: 0;
    animation: appearAfterMenu 0.4s forwards;
}
.hover-menu--container ul.index-menu > *:nth-child(1) { animation-delay: 0.1s; }
.hover-menu--container ul.index-menu > *:nth-child(2) { animation-delay: 0.15s; }
.hover-menu--container ul.index-menu > *:nth-child(3) { animation-delay: 0.2s; }
.hover-menu--container ul.index-menu > *:nth-child(4) { animation-delay: 0.25s; }
.hover-menu--container ul.index-menu > *:nth-child(5) { animation-delay: 0.3s; }
.hover-menu--container ul.index-menu > *:nth-child(6) { animation-delay: 0.35s; }
.hover-menu--container ul.index-menu > *:nth-child(7) { animation-delay: 0.4s; }

ul.index-menu li, ul.index-menu a {
    color: white;
}
ul.index-menu li.active a,
ul.index-menu a:hover,
ul.index-menu .other-links a:hover {
    color: var(--orange);
}




ul.index-menu {
    list-style: none;
    padding: 0;
    font-size: 90px;
}

body.page-index ul.index-menu {
    margin: var(--content-cell-to-logo-bottom) 0 0 0;
}
@media (max-width: 1100px) {
    body.page-default.page-index {
        grid-template: "header" "content";
        grid-template-rows: var(--grid-header-row) 1fr;
    }
    body.page-index ul.index-menu {
        margin: 60px 30px 30px 30px;
        text-align: center;
        padding-bottom: 60px;
    }
    body.page-default.page-index .aplus {
        display: none;
    }
    body.page-contact .aplus {
        text-align: center;
    }
    body.page-contact .aplus svg {
        position: static;
        max-width: 100%;
        height: auto;
        max-height: calc(min(80vh, 100%));
        color: white;
        margin-bottom: 50px;
    }
}
@media (max-width: 450px) {
    body.page-index ul.index-menu {
        margin: 30px 15px;
        font-size: 70px;
    }
}
ul.index-menu .other-links {
    margin-top: 20px;
    line-height: 62px;
}
ul.index-menu .other-links a {
    color: black;
    font-size: 70px;
}
@media (max-width: 450px) {
    body.page-index ul.index-menu .other-links {
        line-height: 44px;
    }
    body.page-index ul.index-menu .other-links a {
        font-size: 50px;
    }
}
body.page-index ul.index-menu a:hover {
    color: var(--orange);
}



h1 { margin: 0; }

header { font-weight: bold; position: relative; }

header h1 .logotext, .logo .logotext { display: none; }
body.page-recent header h1 a svg {
    width: calc(100% - 120px);
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
body.page-recent header a:hover, body.page-orange header a:hover { color: var(--khaki); }
body.page-beige header a:hover, body.page-black header a:hover { color: var(--orange); }

@media (min-width: 1101px) and (max-width: 1400px) {
    body.page-default.page-contact {
        grid-template: "header ." ". content" "aplus aplus";
        grid-template-columns: calc(100vw/3) 1fr;
        grid-template-rows: var(--grid-header-row) 1fr 240px;
    }
}
@media (max-width: 1100px) {
    body.page-default.page-contact {
        grid-template: "header" "content" "aplus";
        grid-template-columns: 1fr;
        grid-template-rows: var(--grid-header-row) 1fr 240px;
    }
}
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: var(--content-cell-to-logo-bottom);
}
@media (max-width: 1100px) {
    .contacts {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-bottom: 80px;
        text-align: center;
    }
}
.contacts .card {
    padding: 15px 60px 45px 60px;
}
@media (max-width: 1100px) {
    .contacts .card {
        margin-bottom: 30px;
    }
}
@media (max-width: 450px) {
    .contacts .card {
        padding: 15px;
    }
}
.contacts .card .name, .contacts .card.company .title {
    font-size: 30px;
}
.contacts .card .rest, .contacts .card.company .rest {
    font-family: var(--serif);
    letter-spacing: var(--normal-font);
    font-size: 18px;
}
@media (min-width: 1920px) {
    .contacts .card .name, .contacts .card.company .title {
        font-size: 42px;
    }
    .contacts .card .rest, .contacts .card.company .rest {
        font-size: 24px;
    }
}
.contacts .card.person .rest, .contacts .card .rest a {
    text-transform: lowercase;
}
.contacts .card.person .rest > * {
    display: block;
}
.contacts .card.company .rest {
    text-transform: none;
}
.contacts .mailaddr {
    margin-top: 0.76em;
}
@media (max-width: 1100px) {
    .contacts .mailaddr {
        margin-top: 0.3em;
    }
}

body.page-recent {
    min-height: 100vh;
    display: grid;
    grid-template-rows: var(--grid-header-row);
    grid-auto-rows: var(--grid-other-row);
    grid-template-columns: repeat(6, 1fr);
}

body.page-recent header { background-color: white; color: black; }
body.page-recent header a { color: black; }

.video-item {
    background-position: center; background-size: cover; margin-bottom: 0;
    position: relative;
    overflow: hidden;
    color: white;
}
.video-item, header {
    grid-column: span 2;
}
@media screen and (min-width: 1100px) {
    .video-item:nth-of-type(12n+1), .video-item:nth-of-type(12n+6),
    body.video-count-mod12-0 .video-item:nth-last-of-type(8),
    body.video-count-mod12-6 .video-item:nth-last-of-type(7) {
        grid-column: span 4;
        grid-row: span 2;
    }
    body.video-count-mod12-0 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-0 .video-item:nth-last-of-type(9),
    body.video-count-mod12-0 .video-item:nth-last-of-type(10),
    body.video-count-mod12-1 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-3 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-3 .video-item:nth-last-of-type(6),
    body.video-count-mod12-3 .video-item:nth-last-of-type(7),
    body.video-count-mod12-4 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-6 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-6 .video-item:nth-last-of-type(9),
    body.video-count-mod12-6 .video-item:nth-last-of-type(10),
    body.video-count-mod12-7 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-9 .video-item:nth-last-of-type(-n + 2),
    body.video-count-mod12-9 .video-item:nth-last-of-type(6),
    body.video-count-mod12-9 .video-item:nth-last-of-type(7),
    body.video-count-mod12-10 .video-item:nth-last-of-type(-n + 2) {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    body.video-count-mod12-0 .video-item:nth-last-of-type(7),
    body.video-count-mod12-3 .video-item:nth-last-of-type(3),
    body.video-count-mod12-6 .video-item:nth-last-of-type(6),
    body.video-count-mod12-9 .video-item:nth-last-of-type(3) {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media screen and (max-width: 1099px) {
    header { grid-column: span 6; }
    .video-item { grid-column: span 3; }
}
@media screen and (max-width: 1099px) and (min-aspect-ratio: 1.6) {
    .video-item { grid-row: span 2; }
}
@media screen and (max-width: 649px) and (orientation: portrait) {
    .video-item, header { grid-column: span 6; }
}

.video-item .preview-wrapper, .video-item .preview-wrapper video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
}
.video-item .preview-wrapper {
    display: none;
}
.video-item .preview-wrapper .poster {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: calc(min(100vw / 3 - 120px, (100vh - 30px) * 0.4010367484695357) * 0.2254190531471871);
    z-index: 4;
}
.video-item .title1 {
    position: absolute;
    top: 7px;
    left: 11px;
    font-size: 42px;
    z-index: 10;
}
.video-item .title2 {
    text-align: right;
    position: absolute;
    bottom: 7px;
    right: 7px;
    font-size: 42px;
    z-index: 10;
}


.video-item .desc-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.video-item .vid-desc {
    text-align: center;
    display: flex; flex-direction: column; justify-content: center;
    flex-basis: 70.7%;
    z-index: 10;
}    
.video-item .vid-desc .title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.2em;
}

#grid a { color: white; }
#leftblock h1 { font-weight: normal; margin-bottom: 0.5em; }

.video-item .in-modal-description {
    display: none;
}

#video_wrapper .in-modal-description {
    text-align: center;
}
#video_wrapper .in-modal-description.has-content {
    margin-top: 10px;
    margin-bottom: 15px;
}
#video_wrapper {
    max-height: 100%;
    flex-direction: column;
}
.fancybox-stage #video_wrapper {
    display: inline-flex !important;
}
#video_wrapper #video_container {
    flex-basis: 100%;
    flex-shrink: 1;
}
@media (max-width: 1100px) {
    #video_wrapper {
        width: 100%;
    }
    body .fancybox-slide--html { /* override fancybox padding to use max screen size */
        padding: 0;
    }
}
#video_wrapper .in-modal-description * {
    display: inline;
}
#video_wrapper .in-modal-description .title, #video_wrapper .in-modal-description .detail-item .content {
    font-size: 35px;
}
#video_wrapper .in-modal-description .detail-item {
    margin-left: 1em;
}
#video_wrapper .in-modal-description .detail-item .caption {
    font-family: var(--sans-serif);
    letter-spacing: var(--normal-font);
    font-size: 18px;
    text-transform: lowercase;
}
@media (max-width: 700px) {
    #video_wrapper .in-modal-description .title, #video_wrapper .in-modal-description .detail-item .content {
        font-size: 20px;
    }
    #video_wrapper .in-modal-description .detail-item .caption {
        font-size: 12px;
    }
}
@media (max-width: 700px) and (orientation: portrait) {
    #video_wrapper .in-modal-description.has-content {
        margin-top: 30px;
        margin-bottom: 30px;
        text-align: center;
    }
    #video_wrapper .in-modal-description .detail-item {
        display: block;
        margin-top: 5px;
    }
}
@media (max-width: 1100px) and (orientation: landscape) {
    #video_wrapper .in-modal-description { /* no video descriptions on mobile in landscape */
        display: none;
    }
}

#video_wrapper .in-modal-description .detail-item .caption:after {
    content: ": ";
}

body.page-about .content {
    text-transform: none;
    font-family: var(--sans-serif);
    letter-spacing: var(--normal-font);
    text-align: justify;
    font-size: 16pt;
    margin: var(--content-cell-to-logo-bottom) 1.5em 1.5em 1.5em;
}
@media (min-width: 1920px) {
    body.page-about .content {
        font-size: 30px;
    }
}

@media (max-width: 1100px) {
    body.page-default.page-about {
        grid-template: "header" "content";
        grid-template-rows: var(--grid-header-row) 1fr;
    }
    body.page-default.page-about .content {
        margin: 30px 1.5em;
        text-indent: 0;
    }
    body.page-default.page-about .content .armadaplus {
        display: inline;
    }
}
body.page-about .content .aplus-below {
    text-indent: 0;
    margin-top: 5em;
    text-align: center;
    color: var(--orange);
}
body.page-about:has(header a:hover) .content .aplus-below,
body.page-about:has(.hover-menu--active) .content .aplus-below {
    color: white;
}
body.page-about .content .aplus-below svg {
    height: 5em;
    width: auto;
}

body.page-showreel .leftblock {
    grid-area: below-logo;
    padding: 3em 30px 3em 3em;
}
body.page-showreel .leftblock h1 {
    font-size: 40px;
    text-align: right;
    font-weight: normal;
}
body.page-showreel #grid .item .title {
    font-size: 22px;
}
body.page-showreel .dl-list {
    font-size: 18px;
}
@media (max-width: 1100px) {
    body.page-default.page-showreel {
        grid-template: "header" "below-logo" "content";
        grid-template-rows: var(--grid-header-row) min-content 1fr;
    }
    body.page-default.page-showreel {
        text-align: center;
    }
    body.page-showreel .leftblock {
        padding: 3em;
    }
    body.page-showreel .leftblock h1 {
        text-align: center;
    }
    body.page-default.page-showreel #grid {
        flex-flow: column;
        align-items: center;
    }
}

body.page-404 .content-block {
    font-family: var(--sans-serif);
    letter-spacing: var(--normal-font);
    font-size: 18px;
    text-transform: none;
}
@media (max-width: 960px) {
    body.page-404 .content-block {
        margin: 3em;
    }
}

.menuicon,
body.page-index header a.menuicon {
    display: none;
}

.menuicon2 svg {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 20%;
}

@media (max-width: 1100px) {
    header {
        background-color: white;
        color: black;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    header a.menuicon {
        display: block;
        align-self: center;
        padding: 30px;
    }
    
    header a.menuicon2,
    body.page-index header a.menuicon2,
    body.page-recent header a.menuicon2{
        display: none;
    }
    
    body.page-recent header h1, body.page-recent header a {
        display: block;
    }
    
    body.page-default header a {
        color: black;
    }
    
    body.page-default header a:hover {
        color: var(--khaki);
    }
    
    body.page-default header h1 svg, body.page-recent header h1 a svg {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        height: 130%;
        width: 124px;
        margin-top: -3px;
        padding: 0 19px;
    }
    
    body.page-default .content-block {
        margin-top: 30px;
    }
}

/* director info in showreel */
.director-detail-director-content {
    grid-column: 1;
    grid-row: 3;
    padding: 7em 30px 3em 3em;
}
.director-detail-director-content h2 {
    font-size: 40px;
    text-align: right;
    margin-top: 0;
}
.director-detail-director-photo {
    text-align: right;
}
.director-detail-director-content img {
    width: calc(100% - 96px);
    max-width: 460px;
    right: 0;
}
.director-detail-bio-content {
    grid-column: 2;
    grid-row: 3;
    font-family: var(--serif); letter-spacing: var(--normal-font);
    text-transform: none;
    text-align: left;
    padding: 7em 0;
    max-width: 60em;
}
@media (max-width: 1100px) {
    .director-detail-director-content {
        grid-template-columns: 1fr;
        grid-column: 1;
        grid-row: 4;
    }
    .director-detail-director-content h2, .director-detail-director-photo {
        text-align: center;
    }
    .director-detail-director-content,
    .director-detail-bio-content {
        grid-column-start: 1;
        grid-row-start: auto;
    }
    .director-detail-director-content {
        margin-bottom: 0;
    }
    .director-detail-bio-content {
        margin: 0;
        padding: 0 5em 7em 5em;
    }
}
