* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/** header, nav, div, ul, li { border: 1px solid red; }**/

body {
    font-family: "Mada", sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
    margin: auto 0;
    background: #FCFCFC;
    color: #0A0A0A;
    width: 100%;
}

main {
    width: 100%;
    padding-top: 90px;
}

h2 {
    font-weight: 400;
}

.no-padding {
    padding-top: 0;
}

.main_grid {
    display: grid;
    gap: 15px;
    /* hack: eliminate any top-edge gap;*/
    margin-top: -15px;
    grid-template-columns: repeat(12, 1fr);
    padding-left: 20px;
    padding-right: 20px;
}

.main_grid_index {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(12, 1fr);
}


img {
    width: 100%;
    margin-bottom: 0;
}

ul {
    margin: 0;
    padding: 0;
}

a {
    color: #0A0A0A;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 0;
}

.single_main {
    grid-column: 3 / 11;
    width: 100%;
    margin-top: 15px;
}

@media (max-width: 1600px) {
    .single_main {
        grid-column: 2 / 12;
    }
}
@media (max-width: 1200px) {
    .single_main {
        grid-column: span 12;
    }
}

.section_full {
    grid-column: span 12;
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section_full_heading {
    height: 0;
    visibility: hidden;
    /*font-size: 3rem;
    font-weight: 400;
    margin-top: 0em;
    margin-bottom: 0em;
    padding-top: 15px;
    padding-bottom: 15px;
    grid-column: 7 / 13;*/
}

@media (max-width: 800px) {
    .section_full_heading {
        grid-column: span 12;
    }
}

/*.fill_div {
    background-color: red;
    grid-column: span 6;
}*/

/* Showreel style */
.video-shortcode {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    grid-column: span 12;
}

/*About*/
.about_section {
    grid-column: 4 / 10;
    text-align: justify;
    display: flex;
    line-height: 1.9;
}

@media (max-width: 2100px) {
    .about_section {
        grid-column: 3 / 11;
    }
}

@media (max-width: 1600px) {
    .about_section {
        grid-column: 2 / 12;
    }
}

@media (max-width: 1600px) {
    .about_section {
        font-size: 0.9em;
    }
}

.about_image {
    width: 80%;
    margin-top: 15px;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 20px;
}

.about_section_text {
    align-self: flex-start;
    margin-bottom: 10px;
}

.about_section a {
    font-weight: 400;
}

.about_section_social {
    grid-column: span 12;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 20px;
    font-size: 3rem;
    font-style: italic;
    text-align: right;
}

.about_section_social_link {
    color: #0A0A0A;
    text-decoration: none;
}

.about_section_social_link:hover {
    text-decoration: underline;
}

.about_section_half {
    grid-column: span 3;
}

@media (max-width: 1100px) {
    .about_section {
        grid-column: span 12;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 800px) {
    .about_section {
        font-size: 0.9em;
    }
}

@media (max-width: 800px) {
    .about_section {
        font-size: 0.8em;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1.3;
    }

    .about_image {
        margin-bottom: 0;
    }
}

/*Legal*/
.legal_notice {
    grid-column: span 12;
    margin-top: 20px;
}

/*Projects*/
.projects_list_item {
    grid-column: span 4;
}

project_list_item a {
    display: block;
    height: 100%;
}

.projects_list_item p {
    margin-block: 0;
}

@media (max-width: 1600px) {
    .projects_list_item {
        grid-column: span 6;
    }
}

@media (max-width: 800px) {
    .projects_list_item {
        grid-column: span 12;
    }
}

.single_main .f-size-big {
    font-size: 1.1em;
}

.single_main .f-size-mid {
    font-size: 1em;
}

@media (max-width: 768px) {
    .single_main .f-size-big {
        font-size: 1em;
    }

    .single_main .f-size-mid {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .single_main .f-size-big {
        font-size: 0.9em;
    }

    .single_main .f-size-mid {
        font-size: 0.8em;
    }
}

/* showreel */
.watch_showreel {
    grid-column: span 12;
    padding-top: 25px;
    padding-bottom: 25px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    font-weight: 400;
}

@media (max-width: 576px) {
    .watch_showreel {
        font-size: 1.5rem;
    }
}

.border {
    color: #0A0A0A;
    border: 2px solid #0A0A0A; /* Black border, 2px thick */
        padding: 10px;
        display: inline-block;
}

.watch_showreel a:hover {
    text-decoration: underline;
}

/* Header style */
header {
    height: 90px;
    position: fixed;
    width: 100%;
    z-index: 1;
    background-color: #FCFCFC;
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.transparent {
    background-color: transparent;
}

.header_grid {
    display: grid;
    column-gap: 15px;
    grid-template-columns: repeat(12, 1fr);
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
}

.logo {
    align-items: center;
    display: flex;
    grid-column: span 6;
    height: 100%;
    z-index: 9999;
}

.logo img {
    display: block;
    width: 270px;
}


@media (max-width: 768px) {
    header {
        height: 75px;
        padding-bottom: 15px;
    }

    .logo img {
        display: block;
        width: 200px;
    }

    .header_grid {
        column-gap: 5px;
    }
}

.header_navbar {
    grid-column: span 6;
}

.nav_elements {
    align-items: flex-end;
    display: flex;
    height: 100%;
    justify-content: flex-end;
}

.nav_element {
    display: inline;
    margin-left: 25px;
    text-transform: uppercase;
}

.nav_link {
    text-decoration: none;
    /*font-size: 1.1em;*/
    font-weight: 400;
    color: #0A0A0A;
}

.nav_link:hover {
    text-decoration: underline;
}

.nav_active_element {
    text-decoration: underline;
}


/* Navigation menu for smaller screen usage */
.nav_menu {
    display: none;
    grid-column: span 6;
    z-index: 9999;
}

.nav_menu_elements {
    justify-content: flex-end;
    z-index: 9999;
}

.nav_button_menu {
    border: none;
    background-color: transparent;
    height: 100%;
    margin: 0;
    padding-top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.nav_button_menu input[type="checkbox"] {
    appearance: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
}

.navbar_menu_links {
    display: none;
    text-align: right;
}

.navbar_menu_links_span {
    list-style-type: none;
    padding-top: 50px;
    padding-right: 15px;
}

.navbar_menu_links_sections {
    /*padding-right: 10px;*/
    text-transform: uppercase;
    font-weight: 400;
}

.burger_menu {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-rows: repeat(3, calc((100% - 10px) / 3));
    width: 40px;
    height: 100%;
    gap: 5px;
    z-index: 9999;
}

.burger_menu span {
  background: #0A0A0A;
  display: block;
  height: 5px;
  width: 100%;
  margin: 4.5px 0;
  transition: 0.3s;
  z-index: 9999;
}

@media (max-width: 768px) {
    .burger_menu {
        width: 35px;
        gap: 3px;
    }

    .burger_menu span {
      height: 4px;
      margin: 4px 0;
    }
}

@media (max-width: 800px) {
    .header_navbar {
        display: none;
    }

    .nav_menu {
        display: inline;
    }

    header:has(.nav_button_menu input[type="checkbox"]:checked) .navbar_menu_links {
        /* Remove it from grid flow and make it cover the whole screen */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;

            /* Ensure it appears on top of everything */
            z-index: 999;

            /* Display settings */
            display: flex; /* or grid, whichever layout you prefer */
            flex-direction: column; /* optional if you want vertical stacking */
            background-color: #FCFCFC;
            padding-top: 80px;
            padding-bottom: 80px;


    }

    header:has(.nav_button_menu input[type="checkbox"]:checked) .navbar_menu_links a {
        text-decoration: none;
        color: #0A0A0A;
        font-size: 2.2rem;
        z-index: 9999;
    }

    header:has(.nav_button_menu input[type="checkbox"]:checked) .navbar_menu_links a:hover {
        text-decoration: underline;
        z-index: 9999;
    }
}

/* Footer style */
footer {
    font-size: 0.8em;
    width: 100%;
    margin-top: 20px;
}

footer a {
    text-decoration: none;
    color: #0A0A0A;
}

footer a:hover {
    text-decoration: underline;
}

.footer_grid2 {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 5px;
    padding-left: 15px;
    padding-right: 15px;
    align-items: stretch;
}

footer {
    padding-top: 15px;
    padding-bottom: 15px;
}

.footer_section {
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

.footer_section2 {
    /*align-items: center;
    display: flex;*/
    grid-column: span 6;
}

.footer_list {
    list-style: none;
    padding-top: 5px;
}

.footer_list li {
    padding-top: 5px;
}

.footer_list2 {
    list-style: none;
    text-align: left;
}

.tm-footer {
    height: 3em;
    width: auto;
    display: block;
    margin: auto;
}

.tm-footer2 {
    height: auto;
    display: block;
}

.logo_footer {
    grid-column: span 6;
    position: relative;
}

.logo_footer img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto 0;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

footer .ff-size-big {
    font-size: 1.2em;
}

footer .ff-size-mid {
    font-size: 1em;
}

footer .ff-size-small {
    font-size: 0.8em;
}

@media (max-width: 576px) {
    footer .ff-size-big {
        font-size: 0.9em;
    }

    footer .ff-size-mid {
        font-size: 0.8em;
    }

    footer .ff-size-small {
        font-size: 0.6em;
    }

    .tm-footer {
        height: 2em;
    }
}


/* Additional */
.youtube-embedding {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: unset;
}

@media (max-width: 576px) {
    .youtube-embedding {
        aspect-ratio: 1 / 1;
    }
}

.zoom-image {
  transform: scale(1.01);
}

.zoom-image:hover {
    transform: scale(1.1);
}

.zero-height {
  display: inline-block;  /* or block */
  height: 0;
  line-height: 0;         /* collapse any text height */
  overflow: hidden;       /* hide anything sticking out */
  padding: 0;             /* remove any default padding */
  border: 0;              /* remove border if present */
}

strong {
    font-weight: 400;
}

div .f-size-mid {
    font-size: 1em;
}

@media (max-width: 1200px) {
    div .f-size-mid {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    div .f-size-mid {
        font-size: 0.8em;
    }
}