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

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

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

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

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

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

/***TRANSITION***/
    --transitionDuration: 0.15s;
    --transitionDurationSlow: 0.3s;
}
  
/***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: Marcin Antique Standard;
    src: url("../MarcinAntiqueStandard-Regular.woff") format("woff");
}
.font_size_S {
    font-size: var(--fontSizeSmall);
    line-height: var(--lineHeight);
}
.font_size_M {
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeight);
}
.font_size_L {
    font-size: var(--fontSizeLarge);
    line-height: var(--lineHeight);
}
.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-family: "Marcin Antique Standard", Helvetica, Arial, sans-serif;
    font-size: var(--fontSizeMedium);
    line-height: var(--lineHeight);
}
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);
}
a:hover {	
    text-decoration: var(--linkDeco);
}
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;
}

/***INTRO
*****************************************************/
.intro {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--backColor);
    transition-property: opacity;
    transition-duration: 1s;
}
.intro.hide {
    opacity: 0;
}

/***HEADER AND MENU
*****************************************************/
header {
    width: 100%;
    min-height: var(--headerHeight);
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    padding: calc(var(--spaceY)*.5) var(--spaceX);
    display: grid;
    grid-template-columns: var(--gridTemplate);
    gap: 0 var(--colGutter);
    z-index: 100;
    mix-blend-mode: difference;
}
header,
header a {
    color: var(--paletteWhite);
}
h1.site_name {
    min-height: var(--rowGutter);
}
nav.menu {
    display: inherit;
}
nav.menu ul {
    display: flex;
    justify-content: end;
    gap: var(--colGutter);
}
nav.menu li.menu_item {
    display: inherit;
}
header .site_description {
    grid-column: 4/8;
    text-align: center;
}
header .site_description.hidden {
    display: none;
}
header .caption {
    grid-column: 8/11;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/***MAIN CONTENT
*****************************************************/
main.content {
    width: var(--mainWidth);
    height: 100vh;
    position: relative;
    margin-inline: auto;
    padding-inline: var(--spaceX);
    scroll-snap-points-y: repeat(50vh);
	scroll-snap-type: y mandatory;
	scroll-snap-type: mandatory;
	overflow-x: hidden;
	overflow-y: auto;
    scroll-behavior: smooth;
}

/***PROJECTS***/
main.content section {
	width: 100%;
	height: 100vh;
	position: relative;
	display: grid;
    grid-template-columns: var(--gridTemplate);
    gap: 0 var(--colGutter);
	justify-content: center;
	align-items: center;
	scroll-snap-align: start;
}
main.content section.project .image {
	grid-column: span 5;
    width: 100%;
    height: 100vh;
    padding-block: var(--spaceY);
    display: flex;
}
main.content section.project .image img {
	/*width: 100%;
    height: 100%;
    */
    object-fit: contain;
}
main.content section.project .image img.horizontal {
    width: 100%;
	max-height: calc(50% - var(--headerHeight)*.5);
}
main.content section.project .image img.vertical {
    width: 100%;
	height: 100%;    
}
main.content section.project .image img.top.left {
    align-self: start;
	object-position: top left;
}
main.content section.project .image img.top.center {
    align-self: start;
	object-position: top center;
}
main.content section.project .image img.top.right {
    align-self: start;
	object-position: top right;
}
main.content section.project .image img.bottom.left {
    align-self: end;
	object-position: bottom left;
}
main.content section.project .image img.bottom.center {
    align-self: end;
	object-position: bottom center;
}
main.content section.project .image img.bottom.right {
    align-self: end;
	object-position: bottom right;
}

/***INFO
*****************************************************/
section.info {
    padding-block: var(--spaceY);
    align-items: start;
}
section.info .team_col {
    height: 100%;
    grid-column: 5/7;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 var(--colGutter);
    overflow-y: scroll;
    z-index: 300;
}
section.info .team_col.hidden {
    display: none;
}
section.info .team_col .member {
    cursor: default;
}
section.info .team_col .member img {
    width: calc(20vw - var(--spaceX)*1.5);
    height: auto;
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
section.info .team_col .member:hover img {
    opacity: 1;
}
section.info .info_col {
    height: 100%;
    grid-column: 7 / 11;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: calc(var(--rowGutter)*2) 0;
    overflow-y: scroll;
}
section.info .info_col .contact .contact_item {
    display: flex;
    gap: 0 var(--colGutter); 
}
section.info .info_col .contact .contact_item .item_title {
    width: 75px;
}
section.info .info_col .press {
    height: 100%; 
}
section.info .info_col .footer {
    justify-self: end;
    display: flex;
    justify-content: space-between;
}
section.info .info_col .footer .footer_item {
    display: flex;
    gap: 0 calc(var(--colGutter)*2);
}
section.info .info_col .footer .footer_item a {
    text-decoration: underline;
}