


/* CUSTOM PROPERTIES */

:root {
    --clr-white: #ffffff;
    --clr-dark: #0f0f0f;
    --clr-med: #693A3A;
    --clr-hl1: #A83232;
    --clr-hl2: #327BA8;

    --mog-site-width: 1200px;

    --fs-800: 6rem;
    --fs-700: 2rem;
    --fs-600: 1.5rem;
    --fs-500: 1.2rem;
    --fs-400: 1rem;
    --fs-300: .8rem;
}




/* DEFAULTS */

html {
    font-size: 16px;
}

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--clr-white);
}

a {
    color: var(--clr-hl2);
}




/* LAYOUT */

@media only screen and (max-width: 800px) {

  .mog-grid {
    --mog-grid-cols: 1 !important;
  }

}

section {
    padding: 0 30px;
    position: relative;
    overflow: hidden;
}

.intro,
.gallery,
.visit-us {
    padding: 6em 30px;
}

.video {
  padding: 0 30px 8em 30px;
  background: linear-gradient(0deg, rgb(233, 233, 233) 40%, rgba(233, 233, 233, 0) 100%);
}

.gallery {
    background-color: var(--clr-dark);
    padding: 12em 30px 8em 30px;
}

.site-width {
    width: 100%;
    max-width: var(--mog-site-width);
    margin: 0 auto;
}

.mog-flex {
    display: flex;
}

footer {
    padding: 2em 30px;
    background: var(--clr-dark);
}

#to-top {
  will-change: opacity;
  position: fixed;
  width: 50px;
  height: 35px;
  bottom: 0;
  right: 5%;
  padding: .3em;
  border: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--clr-hl2);
  opacity: 0;
  transition: opacity .3s ease;
}

#to-top > svg {
  height: 27px;
}

#to-top:focus-visible {
  opacity: 1 !important;
  z-index: 1 !important;
}






/* FONTS */

@media only screen and (max-width: 1200px) {
  :root {
    --fs-800: 4rem;
    --fs-700: 1.8rem;
    --fs-600: 1.3rem;
    --fs-500: 1.1rem;
  }

}

@media only screen and (max-width: 800px) {
  :root {
    --fs-800: 2.2rem;
    --fs-700: 2rem;
    --fs-600: 1.2rem;
    --fs-500: 1.1rem;
  }

  h1 {
    line-height: 1.4 !important;
    color: white !important;
  }

}

p {
    line-height: 1.6;
    color: var(--clr-dark)
}

h1 {
    font-size: var(--fs-800);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px white;
    max-width: 10ch;
    letter-spacing: 8px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .3em;
}

h2, h3, h4, h5, h6 {
    font-size: var(--fs-700);
    color: var(--clr-dark);
    margin-bottom: 1em;
}

h2 {
    text-transform: uppercase;
    font-weight: 100;
    font-size: var(--fs-600);
    margin: 0em 0em 1em 0em;
    letter-spacing: 3px;
    color: white;
}

h3 {
    text-align: center;
    color: white;
    font-weight: 100;
    font-size: var(--fs-600);
    letter-spacing: 2px;
    margin: 0;
}

h4 {
    color: var(--clr-hl2);
}

h5 {
    text-align: center;
    margin-bottom: 2em;
    color: var(--clr-white);
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 3px;
}

.pre-text {
    font-weight: 500;
    font-size: var(--fs-500);
    margin-bottom: 0;
}

h6 {
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: .5em;
}

.visit-us-pre-text {
  margin-bottom: 1em;
}

.visit-us p {
    color: white;
}

.copyright-text {
    font-size: var(--fs-300);
    color: rgba(255, 255, 255, 0.567);
}







/* CLASSES */

.banner {
    min-height: 90vh;
    background-color: var(--clr-dark);
    position: relative;
    isolation: isolate;

    background-image: url('/media/Proserpina Bakehouse Pastries Gourmet Produce Milled Flour Michelin Chef Dandenong Ranges.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.divider {
    background-color: var(--clr-dark);
    padding: 2em 0;
}

.mog-bg-video {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .video-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.1);
    z-index: -1;
  }

  .button {
    background: var(--clr-hl2);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 200;
    padding: .7rem 1.8rem;
    margin-top: 1.2em;
    display: block;
    max-width: fit-content;
    transition: background-color .3s ease;
    letter-spacing: 2px;
    }

    .button:hover {
        background: #44a2dd;
    }

    .intro > .mog-grid {
        --mog-grid-cols: 2;
        --mog-grid-rows: 1;
        --mog-grid-gap: 2em;
      }


      .intro .left-column {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 3em;
        filter: drop-shadow(3px 3px 5px rgba(0,0,0,.4));
    }

    .aspect-ratio-container {
      position: relative;
      width: 100%;
      padding-bottom: 100%; /* 1:1 aspect ratio */
      overflow: hidden;
  }

  .aspect-ratio-container:nth-child(1) {
      grid-column: 1 / 4;
      grid-row: 1 / 3;
  }
  
  .aspect-ratio-container:nth-child(2) {
      grid-column: 2 / 5;
      grid-row: 2 / 4;
  }
  
  .aspect-ratio-target {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

    .top-left {
        /* grid-column: 1 / 4;
        grid-row: 1 / 3; */
        /* object-fit: cover; */
        /* aspect-ratio: 1 / 1; */
        border-top-left-radius: 3rem;
        /* height: 100%; */
        border: 10px solid white;
    }

    .bottom-right {
        /* grid-column: 2 / 5;
        grid-row: 2 / 4; */
        /* object-fit: cover; */
        /* aspect-ratio: 1 / 1; */
        /* height: 100%; */
        border-top-left-radius: 3rem;
        border-bottom-right-radius: 3rem;
        border: 10px solid white;
    }


      .text-content {
        position: relative;
        padding: 2em;
        /* background: #f0f0f0; */
        margin-bottom: 3em;
    }
    
    .text-content::before {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        background: transparent;
        border-left: 2px solid var(--clr-hl2);
        border-bottom: 2px solid var(--clr-hl2);
        left: -10px;
        bottom: -10px;
      }
    
      .text-content::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        background: transparent;
        border-right: 2px solid var(--clr-hl2);
        border-top: 2px solid var(--clr-hl2);
        right: -10px;
        top: -10px;
      }

      .video .mog-grid {
        --mog-grid-cols: 2;
        --mog-grid-rows: 1;
      }

      .video .left-column {
        padding-right: 2em;
      }

      .video-desc {
        margin-bottom: 2em;
      }

      .video-title {
        font-size: var(--fs-700);
        color: var(--clr-hl2);
        margin-bottom: 1em;
      }

      .video .text-content::before {
        border-right: 2px solid var(--clr-hl2);
        border-bottom: 2px solid var(--clr-hl2);
        right: -10px;
        bottom: 0px;
        border-left: 0;
        left: initial;
      }
    
      .video .text-content::after {
        border-left: 2px solid var(--clr-hl2);
        border-top: 2px solid var(--clr-hl2);
        left: -10px;
        top: 0px;
        border-right: 0;
        right: initial;
      }


      .image-link {
        aspect-ratio: 1 / 1;
      }

      /* .image-link:nth-child(4n) {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 2 / 1;
      }

      .image-link:nth-child(4n) > img {
        height: 100%;
      } */


      .gallery-wrapper img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        }


        .gallery-wrapper.mog-grid {
        --mog-grid-cols: 4;
        }


        #lightbox {
            will-change: opacity;
            max-width: var(--mog-site-width);
            margin: auto;
            overflow: hidden;
            height: 100%;
            border: none;
            opacity: 0;
            background: transparent;

            transition: opacity .8s ease;
          }

          #lightbox::backdrop {
            background-color: rgba(0,0,0,.6);
            backdrop-filter: blur(5px);
          }

          #lightbox > img {
            height: 100%;
            border-top-right-radius: 3em !important;
            object-fit: contain;
          }

          #prev:hover,
          #next:hover {
            background: rgba(0,0,0,.2);
          }


          #prev,
          #next,
          #close {
            position: absolute;
            cursor: pointer;
          }

          #prev,
          #next {
            top: 50%;
            transform: translateY(-50%);
            border: none;
            height: 50%;
            width: 6em;
            background-color: transparent;

            transition: background-color .3s ease;
          }

          #prev > svg,
          #next > svg {
            max-width: 30px;
            margin-left: 2em;
          }

          #prev {
            left: 0;
          }

          #next {
            right: 0;
          }

          #close {
            top: 0;
            right: 0;
            border: none;
            width: 25px;
            background-color: transparent;
          }



        .visit-us {
            background-image: url('/media/Visit Us Proserpina Bakehouse Sourdough Bakery Cafe Sassafras Melbourne Dandenongs Michelin Chef Artisan.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;

            padding: 12em 30px;
            position: relative;
            isolation: isolate;
        }


        .visit-us .left-column {
            text-align: center;
        }

        .visit-us::before {
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            background: rgba(0,0,0,.4);
            content: '';
            z-index: -1;
        }

        .visit-us-icon {
          max-width: 20px;
          margin-right: 1em;
          max-height: 32px;
        }


        .map {
            border-top: 10px solid var(--clr-dark);
            padding: 0;
        }




/* MEDIA QUERIES */

@media only screen and (max-width: 1200px) {
  .intro .left-column {
    padding: 1em;
  }
}


@media only screen and (max-width: 800px) {
  .intro .left-column {
    padding: 0;
    margin-bottom: 2em;
    order: 2;
  }

}