/***GLOBAL VARIABLES
*****************************************************/
:root {
/***TEXT***/
    /*--fontSize: clamp(1rem, 1.25vw, 1.5rem);*/
    --fontSizeSmall: 0.9rem;
    --fontSizeMedium: 1rem;
    --fontSizeLarge: 2.5rem;
    --fontWeight: 400;
    --letterSpacing: .025em;
    --wordSpacing: 0em;
    --lineHeightNatural: 1.2;
    --lineHeightLow: 1;

/***SPACES***/
    --spaceY: calc(var(--fontSizeMedium) * 1);
    --spaceX: calc(var(--fontSizeMedium) * 1.8);
    --bodySpaces: 0;
    --rowGutterMedium: calc(var(--fontSizeMedium) * var(--lineHeightNatural));
    --rowGutterLarge: calc(var(--fontSizeLarge) * var(--lineHeightNatural));
    --rowGutterSmall: calc(var(--fontSizeSmall) * var(--lineHeightNatural));
    --colGutter: calc(var(--fontSizeMedium) * 1.8);
    --mainTopSpace: calc(var(--rowGutterMedium) * 1);
    --mainBottomSpace: calc(var(--spaceY) * 2);

/***SIZES***/
    --headerHeight: calc(var(--spaceY)*2 + var(--rowGutterMedium));
    --mainWidth: 100%;
    --mainHeight: calc(100vh - var(--headerHeight) - var(--mainTopSpace) - var(--mainBottomSpace) - var(--footerHeight));
    --footerHeight: calc(var(--spaceY)*2 + var(--rowGutterMedium));

/***GRIDS***/
    --gridTemplate: repeat(3, 1fr);
    --gridGap: var(--colGutter) var(--colGutter);

/***COLOR***/
    --paletteWhite: #FFFFFF;
    --paletteGray: #CCCCCC;
    --paletteBlack: #000000;
    --palettePink: #F59BDA;
    --paletteAlpha: transparent;
    --backColor: var(--paletteBlack);
    --textColor: var(--paletteWhite);
    --linkColor: var(--paletteWhite);
    --hoverColor: var(--palettePink);

/***DECORATION***/
    --linkDeco: underline;
    --borderWidth: 1px;
    --borderLine: var(--borderWidth) solid var(--textColor);

/***TRANSITION***/
    --transitionDuration: 0.15s;
    --transitionDurationSlow: 0.6s;
    --transitionDurationXSlow: 0.9s;
}
  
/***FONTS
*****************************************************/
* {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -o-text-size-adjust: 100%;
	text-size-adjust: 100%;
    /*
    -webkit-font-smoothing: smooth;
	-moz-font-smoothing: smooth;
    -moz-osx-font-smoothing: smooth;
	-ms-font-smoothing: smooth;
    -o-font-smoothing: smooth;
    text-rendering: geometricPrecision;
    */
}

@font-face {
    font-family: Type Name;
    src: url("uploads/layout/TypeName.woff");
}
.font_size_Halyard_S {
    font-family: "halyard-display", sans-serif;
    font-weight: 400;
    font-style: normal;;
    font-size: var(--fontSizeSmall);
    letter-spacing: var(--letterSpacing);
    line-height: var(--lineHeightNatural);
}
.font_size_Roster_M {
    font-family: "roster", serif;
    font-weight: 600;
    font-style: normal;
    font-size: var(--fontSizeSmall);
    line-height: var(--lineHeightNatural);
}
.font_size_L {
    font-family: "roster", serif;
    font-weight: 600;
    font-style: normal;
    font-size: var(--fontSizeLarge);
    line-height: var(--lineHeightLow);
}
.uppercase {
    text-transform: uppercase;
}
.lowercase {
    text-transform: lowercase;
}

/***RESET
*****************************************************/
::-webkit-scrollbar {
    display: none;
}
::-webkit-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-moz-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-ms-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-o-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
img::-webkit-selectio {
    color: transparent;
    background-color: transparent;
}
img::-moz-selection {
    color: transparent;
    background-color: transparent;
}
img::-ms-selection {
    color: transparent;
    background-color: transparent;
}
img::-o-selection {
    color: transparent;
    background-color: transparent;
}
img::selection {
    color: transparent;
    background-color: transparent;
}
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    /*color-scheme: light dark;*/
    scroll-behavior: smooth;
}
body {
    position: relative;
    margin: var(--bodySpaces);
    color: var(--textColor);
    background: var(--backColor);
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeightNatural);
}
ul {
    display: block;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
}
li {
  display: inline;
}
a {	
    color: var(--linkColor);
    text-decoration: none;
    transition-property: color;
    transition-duration: var(--transitionDuration);
}
h1, h2, h3 {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding: 0;
    font-size: var(--fontSizeMedium);
    font-style: normal;
    font-weight: 400;
}
p {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0;
}
span {
    display: inline;
}
form, input, textarea, submit,
iframe, embed, audio {
    margin: 0;
    padding: 0;
    color: var(--textColor);
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: inherit;
}
input:focus, textarea:focus {
    outline: none;
}
input[name="submit"] {
	cursor: pointer;
}
:-webkit-input-placeholder {
	/*internet explorer*/
	color: var(--textColor);
}
::-moz-input-placeholder {
	/*mozilla edge*/
    color: var(--textColor);
}
::-ms-input-placeholder {
	/*microsoft edge*/
    color: var(--textColor);
}
::-o-input-placeholder {
	/*microsoft edge*/
    color: var(--textColor);
}
::placeholder {
	/*chrome, firefox, opera, safari*/
    color: var(--textColor);
}
img, video {
    vertical-align: middle;
}
img.lazy,
video.lazy {
    opacity: 0;
    transition: opacity var(--transitionDuration);
}
img.lazy.loaded,
video.lazy.loaded {
    opacity: 1;
}

/***HEADER AND MENU
*****************************************************/
header {
    width: 100%;
    min-height: var(--headerHeight);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spaceY) var(--spaceX);
    display: flex;
    justify-content: space-between;
    align-items: start;
    transition: opacity var(--transitionDurationSlow);
}
body:not(#index):not(#work):not(#directors):not(#project) header {
    background: var(--backColor);
}
/*
body#work header:not(.fade_in) {
    opacity: 0;
}
body#work header.fade_in {
    opacity: 1;
}
*/
h1.site_name {
    min-height: var(--rowGutterMedium);
    text-transform: uppercase;
}
nav.menu {
    width: 100%;
    display: inherit;
    transition: filter var(--transitionDurationSlow);
}
nav.menu ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: var(--colGutter);
}
nav.menu li.menu_item {
    display: inherit;
}
nav.menu li.menu_item a {
    transition-property: color, filter;
    transition-duration: var(--transitionDuration);
}
nav.menu li.menu_item a:hover,
nav.menu li.menu_item.active a {
    color: var(--palettePink);
}
nav.menu.invert li.menu_item a {
    filter: invert(1);
}
nav.menu.invert li.menu_item a:hover {
    filter: invert(0);
}
body#index nav.menu.invert li.menu_item a:hover {
    color: var(--paletteWhite);
}

/***MAIN CONTENT
*****************************************************/
main.content {
    max-width: var(--mainWidth);
    /*min-height: var(--mainHeight);*/
    position: relative;
    margin-inline: auto;
    /*margin-block: var(--mainTopSpace) var(--mainBottomSpace);*/
    margin-block: 0 var(--mainBottomSpace);
    padding-inline: var(--spaceX);    
    transition: opacity var(--transitionDuration);
}
main.content:not(.fade_in) {
    opacity: 0;
}
main.content.fade_in {
    opacity: 1;
}
main.content.fade_out {
    opacity: 0;
}

/***LOGO***/
div.logo {
    position: fixed;
    z-index: 100;
    bottom: 0;
    width: 100vw;
    height: 50vh;
    padding: 0 var(--spaceX) var(--mainBottomSpace);
    display: flex;
    flex-direction: column;
    row-gap: var(--rowGutterSmall);
    pointer-events: none;
    transition: filter var(--transitionDurationSlow);
}
body#work div.logo,
body#directors div.logo {
    display: none;
}
div.logo.invert {
    filter: invert(1);
}
div.logo .logo_media {
    width: 250px;
    height: 100%;
}
div.logo .logo_media a {
    pointer-events: auto !important;
}
/*
body#about div.logo .logo_data .data_text {
    width: 100%;
    display: grid;
    grid-template-columns: var(--gridTemplate);
    column-gap: var(--colGutter);
    margin-bottom: var(--rowGutterSmall);
}
body#about div.logo .logo_data .data_text > * {
    grid-column: span 1;
}
*/

/***INTRO***/
section.intro {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}
section.intro video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}
section.intro .intro_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    object-fit: cover;
    transition: transform var(--transitionDurationXSlow);
}
section.intro .intro_mask.grow {
    transform: scale(10);
}

/***SCREENSAVER***/
.saver {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    pointer-events: none;
}
.saver:not(.active).active {
   z-index: -1;
}
.saver.active {
   z-index: 1000;
}
.saver .saver_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    object-fit: cover;
    transition: transform var(--transitionDurationXSlow);
}
.saver.grow .saver_mask {
    transform: scale(15);
}
.saver .saver_logo {
    transition: opacity var(--transitionDuration);
}
.saver .saver_logo.hide {
    opacity: 0;
}
.saver .saver_logo {
    position: absolute;
    left: 50vw;
    bottom: var(--mainBottomSpace);
    transform: translateX(-50%);
    width: 150px;
    z-index: 100;
}

/***GRID***/
section.grid {
    display: grid;
    grid-template-columns: var(--gridTemplate);
    grid-gap: var(--gridGap);
}

/***WORK***/
section.list {
    z-index: 1500;
}
section.list .list_filters {
    display: flex;
    gap: var(--colGutter);
}
section.list .list_filters .filter_item {
    opacity: 0.5;
    transition: opacity var(--transitionDuration);
    cursor: pointer;
}
section.list .list_filters .filter_item:hover {
    opacity: 1;
}
.list_filters .filter_item .filter_sublist {
    position: absolute;
    padding-top: calc(var(--rowGutterSmall)*0.5);
    display: flex;
    flex-direction: column;
    gap: calc(var(--rowGutterSmall)*0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transitionDuration);
}
.list_filters .filter_item:hover .filter_sublist {
    opacity: 1;
    pointer-events: auto !important;
}
.filter_sublist .sublist_row {
    display: flex;
    gap: var(--colGutter);
}
.filter_sublist .sublist_row > div {
    opacity: 0.5;
    transition: opacity var(--transitionDuration);
}
.filter_sublist .sublist_row:hover > div {
    opacity: 1;
}
.filter_sublist .sublist_row > * {
    flex: 1;
    width: 150px;
}
.filter_sublist .sublist_row video {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transitionDuration);
    pointer-events: none; 
}
.filter_sublist .sublist_row:hover video {
    opacity: 1;
}
section.bg_video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}
section.bg_video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.transition_layer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.transition_layer .layer {
    height: 100%;
    background: var(--paletteBlack);
    transition: width var(--transitionDurationSlow);
}
.transition_layer:not(.open) .layer {
    width: 0%;
}
.transition_layer.open .layer {
    width: 100%;
}

/***PROJECT***/    
.project_sheet {
	position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: var(--headerHeight);
    padding: var(--spaceY) 0;
    display: flex;
    transition: opacity var(--transitionDurationSlow);
}
.project_sheet:not(.fade_in) {
    opacity: 0;
}
.project_sheet.fade_in {
    opacity: 1;
}
.project_sheet .sheet_item {
    flex: 1;
    display: flex;
}
.project_sheet .sheet_item.client {
    justify-content: space-between;
}
.project_sheet .sheet_item.info_button {
    justify-content: end;
}
.project_sheet .sheet_item.back_button a,
.project_sheet .sheet_item.info_button span {
    transition-property: color;
    transition-duration: var(--transitionDuration);
    cursor: pointer;
}
.project_sheet .sheet_item.back_button a:hover,
.project_sheet .sheet_item.info_button span:hover {
    color: var(--palettePink);
}

/***PLAYER***/
.vimeo_player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}
.vimeo_player iframe {
    width: 100%;
    height: 100%;
}

/***INFO LAYER***/
.project_info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--headerHeight) var(--spaceX);
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity var(--transitionDuration);
    pointer-events: none;
}
.project_info.active {
    opacity: 1;
    pointer-events: auto !important;
}
.project_info .info_data {
    position: absolute;
    left: 50%;
    opacity: 0.5;
}

/***PROJECT FOOTER***/
.project_footer {
    position: fixed;
    bottom: var(--mainBottomSpace);
    left: 0;
    width: 100%;
    padding-inline: var(--spaceX);
    display: flex;
    gap: calc(var(--spaceX)*4);
    justify-content: center;
}
.project_footer .prev_button,
.project_footer .next_button {
    flex: 1;
}
.project_footer .prev_button {
    justify-self: end;
    text-align: right;
}
.project_footer .next_button {
    justify-self: start;
    text-align: left;
}
.project_footer .prev_button a,
.project_footer .next_button a {
    transition: color var(--transitionDuration);
}
.project_footer .prev_button a:hover,
.project_footer .next_button a:hover {
    color:#F59BDA;
}
.project_footer .player_controls {
    flex: 2;
}
.project_footer .player_controls .controls_panel {
    display: flex;
    align-items: center;
    gap: var(--spaceX);
    width: 100%;
}
.player_controls .controls_panel .pause_toggle,
.player_controls .controls_panel .sound_toggle {
    width: 60px;
    cursor: pointer;
    transition: color var(--transitionDuration);
}
.player_controls .controls_panel .pause_toggle {
    text-align: right;
}
.player_controls .controls_panel .pause_toggle:hover,
.player_controls .controls_panel .sound_toggle:hover {
    color: var(--palettePink);
}
.player_controls .controls_panel .sound_toggle.active {
    color: var(--palettePink);
}
.controls_panel .progress_bar {
    width: calc(100% - 120px);
    height: var(--borderWidth);
    background: var(--paletteWhite);
    cursor: pointer;
    opacity: var(--paletteWhite);
}
.progress_bar .progress {
    height: 22px;
    width: 0%;
    transform: translateY(-50%);
    background: transparent;
    border-right: var(--borderLine);
}

/***DIARY***/
section.grid.diary .post {
    grid-column: 2/4;
    display: flex;
    gap: var(--colGutter);
}
.post .post_media {
    flex: 1;
    width: 100%;
}
.post .post_media img {
    width: 100%;
}
.post .post_data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--rowGutterMedium);
}
.post.cover .post_data {
    justify-content: end;
}
.post.cover .post_data .text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}
.post:not(.cover) .post_media img:not(:last-child){
    margin-bottom: var(--spaceY);
}
/*
article.post .post_data .title {
    height: 100%;
}
article.post .post_data .text {
    align-self: end;
}
*/

/***MERCH***/
section.grid.merch section.products {
    grid-column: 2/4;
    display: flex;
    flex-wrap: wrap;
    gap: var(--colGutter);
}
section.products article.product {
    position: relative;
    flex-basis: calc(50% - var(--spaceX)*0.5);
}
section.products article.product .product_media img {
    width: 100%;
}
article.product .product_data {
    position: absolute;
    top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: var(--rowGutterMedium);
    width: 100%;
    height: 100%;
    padding: var(--mainBottomSpace) var(--spaceX);
    background: rgba(0,0,0,0.75);
    opacity: 0;
    transition: opacity var(--transitionDuration);
}
article.product:hover .product_data {
    opacity: 1;
}

/***ABOUT***/
section.grid.about {
    margin-top: calc(50vh - var(--headerHeight));  
    height: calc(50vh - var(--mainBottomSpace));  
    position: relative;
}
section.grid.about article {
    grid-column: 2 / 4;
}
section.grid.about article .about_text {
    display: flex;
    gap: var(--colGutter);
}
section.grid.about article .about_text .text {
        flex: 1;
        height: 100%;
}
section.grid.about article .about_text .text {
        padding-top: calc(var(--rowGutterSmall)*2);
}
section.grid.about img.about_icon {
    grid-column: 3 / 4;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 110px;
}
    

/***MEDIA BASIC SLIDER***/
.media {
	width: 50vw;
	height: auto; /* set via slider script */
    /*position: relative;*/
    margin-bottom: 50px;
}
.media .slider {
	width: 100%;
	height: 100%;
	position: relative;
}
.media .slider .slides {
	width: 100%;
	/*height: 100%;*/
	position: relative;
}
.slider .slides .slide {
	width: 100%;
	height: auto;
	/*position: absolute;*/
	background: lightpink;
}
.slider .slides .slide:not(.active) {
    display: none;
	/*opacity: 0;*/
}
.slider .slides .slide.active {
    display: inline-block;
	/*opacity: 1;*/
}
.slider .slides .slide img {
	width: 100%;
	height: auto;
}
.slider_nav {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	display: flex;
	justify-content: space-between;
}
.slider_nav .prev,
.slider_nav .next {
	width: 25%;
	height: 100%;
	background: rgba(0, 255, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}
.slider_footer {
	width: 100%;
}
.slider_footer .count,
.slider_footer .captions {
	display: flex;
	justify-content: center;
    align-items: center;
}
.slider_footer .count {
	width: 100%;
	height: 25px;
	background: lightblue;
	text-align: center;
}
.slider_footer .captions {
	width: 100%;
	height: 25px;
	background: yellow;
	text-align: center;
}

/***FOOTER
*****************************************************/
footer {
    width: 100%;
    min-height: var(--footerHeight);
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: var(--spaceY) var(--spaceX);
}
nav.footer_menu ul {
    display: flex;
    justify-content: end;
    gap: var(--colGutter);
}