@font-face {
    font-family: "Lordish";
    src: url("public/Lordish-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Middle Ages";
    src: url("public/MiddleAges/MiddleAges_PERSONAL_USE.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Middle Ages Deco";
    src: url("public/MiddleAges/MiddleAgesDeco_PERSONAL_USE.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root{
    color-scheme: light;
    --fancy-font: 'Middle Ages Deco', serif;
    --normal-font: 'Lordish', serif;
}

html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Grenze Gotisch", serif;
    padding: 0 62px;
    box-sizing: border-box;
    position: relative;
}

.side-border {
    position: absolute;
    top: 0;
    bottom: 0;
    /* width: 100px; */
    width: 10%;
    max-width: 150px;
    background-image: url('public/border_animals_2.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    z-index: 100;
    pointer-events: none;
}

.side-border.left  { left: 0; }
.side-border.right { right: 0; transform: scaleX(-1); }

.parchment-container {
  position: relative; /* Required for the positioning of the background */
  z-index: 1;         /* Ensures content stays on top */
  min-height: 100vh
}

.parchment-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  
  /* Your background image goes here */
  background-image: url('public/parchment-paper.jpg');
  background-size:cover;
  
  /* Adjust this value (0.0 to 1.0) for transparency */
  opacity: 0.4;       
  
  z-index: -1;        /* Pushes the image behind the text */
}

.manufacturing-consent-regular {
  font-family: "Manufacturing Consent", system-ui;
  font-weight: 400;
  font-style: normal;
}

.grenze-gotisch-regular {
  font-family: "Grenze Gotisch", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


#navbar{
    /* font-family: "Manufacturing Consent", system-ui; */
    font-family: var(--fancy-font);
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
    margin-top: 40px;
    display: flex;
    width: 100%;
    max-width: 700px;
    justify-content: space-around;
    font-size: 35px;
}

.middle-ages{
    font-family: "Middle Ages", serif;
}



@media (max-width: 850px) {
    #navbar{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar-item{
        margin-bottom: 10px;
        font-size: 30px;
    }

    .side-border{
        min-width: 55px;
    }
}

/* @media (min-width: 450px){

} */

.navbar-item{
    cursor: pointer;
}

.active{
    color: rgb(197, 154, 0);   
}

#content{
    margin-top: 10px;
}

#announcement-text{
    font-size: 30px;
    text-align: center;
}

.name-text{
    align-self: center;
    text-align: center;
    font-size: 40px;
    /* font-family: "Manufacturing Consent", system-ui; */
    font-family: var(--fancy-font);
    margin: 22px 0 22px 0;
}

.fancy{
    /* font-family: var(--fancy-font); */
    font-size: 40px;
}

#and{
    margin: 0;
    font-style: italic;
}

#photo-grid {
    column-count: 3;
    column-gap: 12px;
    margin: 48px auto;
    width: 100%;
    max-width: 900px;
    padding: 0 16px;
    box-sizing: border-box;
}

#photo-grid img {
    width: 100%;
    display: block;
    margin-bottom: 12px;
    border-radius: 3px;
    break-inside: avoid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#photo-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* @media (max-width: 600px) {
    #photo-grid {
        column-count: 2;
    }
} */

@media (max-width: 600px) {
    #photo-grid {
        column-count: 1;
    }
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox.open {
    display: flex;
}

#lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    cursor: default;
}

#lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
}

#lightbox-close:hover {
    opacity: 1;
}