 * {
    box-sizing: border-box;
 }

 /* Local Amatic SC */
 /* @font-face {
    font-family: "Amatic SC Web";
    src:
       local("Amatic SC Regular"),
       local("AmaticSC-Regular"),
       url("fonts/AmaticSC-Regular.woff2") format("woff2"),
       url("fonts/AmaticSC-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
 } */

 /* amatic-sc-regular - latin */
 @font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Amatic SC';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/amatic-sc-v27-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
 }

 

 body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: "Amatic SC Web", "Amatic SC", system-ui, sans-serif;
 }

 .title {
    color: rgb(255, 69, 0);
    text-align: right;
    padding-right: 100px;
    font-size: 5.5em;
    font-weight: normal;
    margin: 0 0 30px;
    /* border: 1px solid red; */
 }

 .close:hover {
    background: #c8c8c8;
 }

 /* ---------- Nav ---------- */
 nav {
    position: fixed;
    top: 60px;
    left: 40px;
    right: 0;
    z-index: 1000;
 }

 nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 60px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 60px;
 }

 nav li {
    font-size: 1.5em;
 }

 nav a {
    color: #fff;
    text-decoration: none;
    transition: color .3s ease;
 }

 nav a:hover {
    color: rgb(255, 69, 0);
 }

 /* Hamburger */
 .hamburger {
    display: none;
 }

 #lessons,
 #construction {
   display: inline-block;
   color: white;
   transition: transform 0.2s ease-in-out, color 0.3 ease-in-pout;
 }

 #lessons:hover,
 #construction:hover {
   transform: scale(1.12);
   color: red;
 }

  
 






 /* ---------- Gallery ---------- */
 #pocoFoto {
    padding: 20px;
 }

 #foto_container {
    display: flex;
    flex-wrap: wrap;
    /* allow multiple rows */
    justify-content: space-around;
    /* distribute evenly across each row */
    align-items: center;
    /* align nicely in row */
    gap: 8px;
    /* space between tiles */
 }

 .foto_tile {
    height: 280px;
    /* fixed row height */
    width: auto;
    /* width adjusts to aspect ratio */
    object-fit: cover;
    border: 1px solid red;
    border-radius: 4px;
    transition: transform .3s, opacity .3s;
 }


 .foto_tile:hover {
    transform: scale(1.02);
    opacity: .9;
 }

 .daily {
    max-width: 200px;
    margin: 10px;
    border: 2px solid orangered;
 }







 /* ---------- Modal ---------- */
 #fotoModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
 }

 #fotoModal.open {
    display: flex;
 }

 .modal_image {
    object-fit: contain;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 4px;
 }

 .close {
    position: absolute;
    top: 20px;
    right: 25px;
    padding: 4px 8px;
    font-size: 18px;
    background: #fff;
    color: rgb(139, 0, 0);
    border-radius: 4px;
    cursor: pointer;
    transition: background .3s;
    border: 0;
 }



 /* ---------- Responsive ---------- */
 @media (max-width: 768px) {
    .title {
       text-align: center;
       padding-right: 0;
       padding-top: 20px;
       font-size: 3em;
       margin: 0;
    }

    .hamburger {
       display: flex;
       flex-direction: column;
       justify-content: center;
       width: 36px;
       height: 20px;
       gap: 4px;
       padding: 4px;
       background: transparent;
       border: 0;
       cursor: pointer;
       color: orangered;
       margin-top: 10px;
    }

    .hamburger span {
       height: 3px;
       width: 100%;
       background: currentColor;
       border-radius: 2px;
       transition: transform .25s ease, opacity .2s ease;
    }

    nav {
       top: 16px;
       right: 16px;
       left: auto;
    }

    nav ul {
       display: none;
       position: absolute;
       top: 44px;
       right: 0;
       width: 120px;
       padding: 10px;
       margin: 0;
       list-style: none;
       background: #000;
       border: 1px solid rgb(255, 69, 0);
       border-radius: 6px;
       flex-direction: column;
       gap: 12px;
    }

    nav ul.open {
       display: flex;
    }

    .hamburger.is-open span:nth-child(1) {
       transform: translateY(9px) rotate(45deg);
    }

    .hamburger.is-open span:nth-child(2) {
       opacity: 0;
    }

    .hamburger.is-open span:nth-child(3) {
       transform: translateY(-9px) rotate(-45deg);
    }








    #foto_container {
       display: flex;
       flex-flow: row wrap;
       flex-basis: 33%;
       gap: 12px;
       /* border: 1px solid blue; */
    }











    #foto_container picture {
       display: flex;
       justify-content: center;
       width: 100%;
       margin: 12px 0;
       /* border: 1px solid blue; */
    }

    .foto_tile {
       width: 90%;
       max-width: 90%;
       height: auto;
       max-height: none;
       margin: 0 auto;
       border: 1px solid red;
    }

    #pocoFoto {
       padding: 0;
    }
 }


















 /* #foto_container {
    flex-direction: row wrap;

    justify-content: space-around;
    gap: 12px;
    border: 1px solid blue;
 }

 #foto_container picture {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 12px 0;
    border: 1px solid blue;
 }

 .foto_tile {
    width: 90%;
    max-width: 90%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    border: 1px solid red;
 }

 #pocoFoto {
    padding: 0;
 } */