:root {
    --color-text: #333333;
    --color-text-alt: #2d2d2dcc;
    --color-text-alt-alpha: #2d2d2d4d;
    --color-text-invert: #fafafa;
    --color-text-invert-alt: #a0a0a0;
    --color-bg: #C0C0C0;
    --color-bg-bg: #010101;
    --color-highlight: #ed2448;

    --value-page-padding-v: 2rem;
    --value-page-padding-h: 4rem;
    --value-container-max-width: 1280px;
    --value-page-width: 1280px;
    --value-sep-line-padding: 4rem;
}

@media screen and (max-width: 1280px) {
    :root {
        --value-page-padding-v: 2rem;
        --value-page-padding-h: 4rem;
        --value-page-width: 100%;
    }
}

* {
    z-index: 1;
}

*, *::before, *::after {
    outline: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before, *::after {
    pointer-events: none;
}

html, body {
    position: relative;
    height: 100vh;
    width: 100vw; 
    font-family: Arial, Helvetica, monospace, serif, sans-serif;
    /* font-family: Arial, Verdana, Helvetica, Tahoma, Trebuchet MS, Times New Roman, Georgia, Garamond, Courier New, Brush Script MT, monospace, cursive, serif, sans-serif; */
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.2;
}

.container {
    position: relative;
    width: 100%;
    height: auto;
    max-width: var(--value-container-max-width);
    margin: 0 auto;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 1rem;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

@media screen and (max-width: 700px) {
    .container {
        font-size: .8rem;
    }
}

*,
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.container::before {
    position: absolute;
    content: '';
    background: var(--color-text-invert-alt);
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    z-index: 10;
}
.container::after {
    position: absolute;
    content: '';
    background: var(--color-text-invert-alt);
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    z-index: 10;
}

.cover {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1699/1307;
    color: var(--color-text-invert);
    break-inside: avoid;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}
.cover-top {
}
.cover-bottom {
}
.cover .cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%;
    z-index: 0;
}
.navigation {
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: var(--value-page-padding-v) var(--value-page-padding-h);
}
.logo {
    position: relative;
    width: 2rem;
    height: 2rem;
}
.logo img {
    width: 100%;
    height: 100%;
}
.menu {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}
.menu-item {
    position: relative;
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
}
.menu-item.actived {
    /* text-decoration: underline; */
}
/* .menu-item.actived::after {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    width: 4px;
    height: 4px;
    border-radius: 2px;
    left: calc(50% - 2px);
    background: var(--color-text-invert);
} */
.menu-item:hover {
    text-decoration: underline;
}
.menu-item.button {
    color: var(--color-text-invert);
    border: 2px solid var(--color-text-invert);
    background: var(--color-text-invert);
    color: var(--color-text);
    padding: 0.25rem 0.5rem;
}
.menu-item.button:hover {
    text-decoration: none;
    background: none;
    color: var(--color-text-invert);
}
.button {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 2px solid var(--color-text);
    background: var(--color-text);
    color: var(--color-text-invert);
}
.button:hover {
    text-decoration: none;
    color: var(--color-text);
    background: none;
}
.button.invert {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border: 1px solid var(--color-text-invert);
    background: var(--color-text-invert);
    color: var(--color-text);
}
.button.invert:hover {
    text-decoration: none;
    color: var(--color-text-invert);
    background: none;
}
.buttons {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}
.cover-info {
    position: relative;
    display: block;
    width: 100%;
    flex-grow: 2;
    padding: var(--value-page-padding-v) var(--value-page-padding-h);
}
.cover-ph {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 156/47;
    height: auto;
}
.cover-info .cover-description {
    width: fit-content;
    text-transform: uppercase;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    color: var(--color-text-invert-alt);
}
.cover-info .cover-signature {
    position: absolute;
    bottom: 2rem;
    right: 55%;
    width: auto;
    height: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.cover-info .cover-tip {
    position: absolute;
    top: calc(50% - 1.5rem);
    right: var(--value-page-padding-h);
    width: fit-content;
    height: fit-content;
    text-transform: uppercase;
    text-align: right;
    color: var(--color-text-invert-alt);
}
.cover-signature-img {
    position: relative;
    height: 8rem;
    aspect-ratio: 130/59;
}
.cover-signature-img img {
    height: 100%;
    width: auto;
}
.cover-signature .cover-signature-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}
.cover-signature .cover-signature-intro {
    color: var(--color-text-invert-alt);
    text-transform: uppercase;
}
.content {
    position: relative;
    width: 100%;
    height: auto;
    /* margin-top: calc(100% / 156.0 * 40.0 - 2rem); */
    padding: var(--value-page-padding-v) var(--value-page-padding-h);
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}
.section {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    /* break-inside: avoid; */
}
.section.row {
    flex-flow: row nowrap;
}
.section.column {
    flex-flow: column nowrap;
}
.content-header {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 4rem;
    break-inside: avoid;
    z-index: 3;
}
.content-header.right {
    align-items: flex-end;
    text-align: right;
}
.content-header .content-title {
    font-size: 2.5rem;
    font-weight: bold;
}
.content-header.right .content-title {
    text-align: right;
}
.content-header .content-description {
    width: fit-content;
    text-transform: uppercase;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    color: var(--color-text-alt);
}
.content-header.right .content-description {
    text-align: right;
    align-items: flex-end;
}
.sep-line {
    position: relative;
    width: 100%;
    height: 1px;
    padding: var(--value-sep-line-padding) 0;
    break-inside: avoid;
}
.sep-line::after {
    content: '';
    position: absolute;
    top: var(--value-sep-line-padding);
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text-invert-alt);
}
.content-header.simple .sep-line {
    display: none;
}
.storyboard {
    position: relative;
    width: 100%;
    height: auto;
}
.storyboard-pictures {
    position: relative;
    width: 100%;
}
.storyboard-pictures .storyboard-main-picture,
.storyboard-pictures .storyboard-secondary-picture {
    position: relative;
    overflow: hidden;
    display: block;
    border: 2px solid white;
    width: calc(0.5 * var(--value-page-width));
    aspect-ratio: 1/1;
}
.storyboard-pictures .storyboard-main-picture {
    margin-left: calc(0.35 * var(--value-page-width));
}
.storyboard-pictures .storyboard-secondary-picture {
    position: absolute;
    transform: rotate(-15deg) scale(0.8);
    z-index: 0;
    top: 0;
    left: calc(0.15 * var(--value-page-width));
}
.storyboard-main-picture img,
.storyboard-secondary-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    background: var(--color-bg-bg);
}
.storyboard-pictures .storyboard-main-picture:hover,
.storyboard-pictures .storyboard-secondary-picture:hover {
    border: 2px solid var(--color-highlight);
}
.storyboard .storyboard-text {
    text-transform: uppercase;
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    height: auto;
    font-weight: bold;
}
.gallery {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.gallery-p1,
.gallery-p2 {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    display: flex;
    flex-flow: row nowrap;
    break-inside: avoid;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    background: var(--color-bg);
}
.gallery-item {
    border: 2px solid white;
}
/* gallert-p1 */
.gallery-p1-p1 {
    position: relative;
    width: 66.666%;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
}
.gallery-p1-p2 {
    position: relative;
    width: 33.333%;
    height: 100%;
}
.gallery-p1-p1-p1 {
    position: relative;
    width: 100%;
    height: 50%;
}
.gallery-p1-p1-p2 {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    flex-flow: row nowrap;
}
.gallery-p1-p1-p2-p1 {
    position: relative;
    width: 50%;
    height: 100%;
}
.gallery-p1-p1-p2-p2 {
    position: relative;
    width: 50%;
    height: 100%;
}
/* gallery-p2 */
.gallery-p2-p2 {
    position: relative;
    width: 66.666%;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
}
.gallery-p2-p1 {
    position: relative;
    width: 33.333%;
    height: 100%;
}
.gallery-p2-p2-p2 {
    position: relative;
    width: 100%;
    height: 50%;
}
.gallery-p2-p2-p1 {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    flex-flow: row nowrap;
}
.gallery-p2-p2-p1-p1 {
    position: relative;
    width: 50%;
    height: 100%;
    background: #B70000;
    z-index: 999;
}
.gallery-p2-p2-p1-p1 img {
    transform: rotate(10deg);
    z-index: 999;
    position: absolute;
    top: -10%;
    left: 0;
    border: 2px solid white;
}
.gallery-p2-p2-p1-p2 {
    position: relative;
    width: 50%;
    height: 100%;
}
.grid {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
}
.grid .grid-item {
    position: relative;
    width: calc((100% - 1rem * 2) / 3.0);
    max-width: calc((100% - 1rem * 2) / 3.0);
    height: auto;
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: flex-start;
    flex-grow: 1;
    overflow: hidden;
    color: var(--color-text-invert);
    background: var(--color-bg-bg);
    break-inside: avoid;
}
.grid-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-highlight);
    z-index: 999;
}
@media screen and (max-width: 700px) {
    .grid .grid-item {
        width: calc((100% - 1rem * 1) / 2.0);
        max-width: calc((100% - 1rem * 1) / 2.0);
    }
}
.grid-item-cover {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    /*-webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}
.grid-item-cover:hover {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);*/
}
.grid-item-cover img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: 50% 0%;
    background: var(--color-text-alt-alpha);
}
.grid-item-text {
    width: 100%;
    height: auto;
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem;
}
.grid-item-labels {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
}
.grid-item-label {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    color: var(--color-bg-bg);
    background: var(--color-text-invert);
}
.grid-item-label.highlight {
    color: var(--color-text-invert);
    background: var(--color-highlight);
}
.grid-item-title {
    max-width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.grid-item-description {
    max-width: 100%;
    font-size: 0.8rem;
    color: var(--color-text-invert-alt);
    overflow: hidden;
    /* white-space: nowrap; */
    text-overflow: ellipsis;
}
.experience-section {
    gap: 2rem;
}
.experience-section::before {
    content: '';
    position: absolute;
    top: var(--value-sep-line-padding);
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text-invert-alt);
}
.experience-section .content-header {
    width: fit-content;
}
.experience-list {
    position: relative;
    padding: calc(2 * var(--value-sep-line-padding)) 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    flex-grow: 2;
}
.experience {
    position: relative;
    text-align: right;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem 1rem 1.5rem 3rem;
    width: 100%;
    break-inside: avoid;
}
.experience::before {
    content: '';
    position: absolute;
    top: calc((100% - 2rem) * 0.5);
    left: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--color-text-invert-alt);
}
.experience:first-child::before {
    border: 2px solid var(--color-text);
}
.experience::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text-invert-alt);
}
.experience .experience-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.experience .experience-title {
    font-size: 1.5rem;
    font-weight: bold;
    padding-left: 1rem;
}
.experience .experience-description {
    color: var(--color-text-alt);
    padding-left: 1rem;
}
.experience:hover {
    background: var(--color-bg-bg);
    color: var(--color-text-invert);
}
.experience:hover .experience-description {
    color: var(--color-text-invert-alt);
}
.experience:hover::before {
    border: 2px solid var(--color-text-invert);
}
.experience:first-child:hover::before {
    border: 2px solid var(--color-highlight);
}
.content-footer {
    position: relative;
    width: fit-content;
    height: auto;
    font-size: 1rem;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--color-text);
    text-align: center;
    margin: 4rem auto 0 auto;
}
.content-footer::before {
    content: '';
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-text);
    top: 0.5rem;
    left: -1rem;
}
.content-footer::after {
    content: '';
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-text);
    top: 0.5rem;
    right: -1rem;
}
.content-footer span {
    color: var(--color-highlight);
}
@media print {
    @page {
        size: A4;
        margin: 1cm;
    }
    :root {
        --value-page-padding-v: 2rem;
        --value-page-padding-h: 4rem;
        --value-container-max-width: 100vw;
        --value-page-width: 100vw;
        --value-sep-line-padding: 2rem;
    }
    .cover-description {
        font-size: 0.8rem;
    }
    .cover-signature {
        font-size: 0.8rem;
    }
    .cover-signature .cover-signature-img {
        height: 4rem;
    }
    .cover-signature .cover-signature-name {
        font-size: 0.8rem;
    }
    .cover-signature .cover-signature-intro {
        font-size: 0.8rem;
    }
    .content-header {
        margin-bottom: 2rem;
    }
    .gallery {
        width: 65%;
        margin-left: auto;
        margin-right: auto;
    }
    .grid .grid-item {
        width: calc((100% - 1rem * 1) / 2.0);
        max-width: calc((100% - 1rem * 1) / 2.0);
        /* break-inside: unset; */
        /* page-break-inside: auto !important; */
    }
    .grid .grid-item .grid-item-cover,
    .grid .grid-item .grid-item-cover img {
        aspect-ratio: 16/9;
    }
    .grid .grid-item .grid-item-title {
        font-size: 1rem;
    }
}
