/* style.css */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* enforce a site minimum width */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-width: 490px;
    overflow-y: scroll; /* force scroll container for momentum on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --default_corner_radius: 6px;
}

@font-face {
    font-family: 'Lexend';
    src: url('fonts/Lexend/Lexend-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 350; /* Variable font weights from 300 to 800 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RethinkSans';
    src: url('fonts/Rethink_Sans/RethinkSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 350; /* Variable font weights from 300 to 800 */
    font-style: normal;
    font-display: swap;
}

body {
    background: #242424; /* #161616 */
    color: #dddddd;
}

.content_section {
    font-family: 'RethinkSans';
    font-size: 16px;
    font-weight: 250;
    margin-left: 250px;
    padding: 20px 40px 0px 40px; /* 40px 4% 40px 4%; */
    line-height: 1.5;
    color: #aaaaaa;
}

.content_section p {
    margin-top: 10px;
    padding-left: 24px;
    border: 0px dashed #ffff00;
}

.content_section p img {
  float: left;
  margin: 0 30px 0 0;
  vertical-align: top;
}

.content_section h1{
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 40px;
    color: #dddddd;
    border: 0px solid #aaaaaa;
    border-radius: var(--default_corner_radius);
    clear: left;
}

.content_section h2{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 40px;
    color: #dddddd;
    padding-left: 20px;
    border-left: 4px solid #5C5F70;
    clear: left;
}

.content_section strong{
    font-weight: 700;
}

.preview {
    flex: 0 0 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--default_corner_radius);
    position: relative;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4);
    /* remove any min-height/max-height you had here */
}

/* 2) In .preview img, center the crop: */
.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;   /* <— ensures centered cropping */
    display: block;
    line-height: 0;
    transition: transform .8s ease;
    transform-origin: center center;
}

.preview img:hover{
    transform: scale(1.1);
}

.flexbox {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 0px;
}

.content_minibox {
    min-width: 410px;
    width: calc((100% - 40px) / 2);
    display: flex;
    flex-wrap: wrap;
    border: 0px solid #808080;
    opacity:0;
    transform:translateY(20px);
    border: 0px solid #ffffff;
}

.content_minibox.animate{
    animation: fadeInUp .6s forwards;
}

@media (max-width: 1200px) {
  .content_minibox {
    width: 100%;
  }
}

.content_minibox h2 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
}

.content_minibox > a {
    text-decoration: none;
    color: inherit;
}

.vspacer {
    height: 100%;
}

.contact {
    width: 100%;
    padding-left: 24px;
    font-family: 'RethinkSans';
    font-size: 16px;
    border: 0px dashed #ffff00;
}

.contact button {
    width: 120px;
    height: 30px;
    font-weight: 500;
    margin-top: 10px;
    font-family: 'RethinkSans';
    font-size: 16px;
    background: #dddddd;
    border: none;
    border-radius: var(--default_corner_radius);
}

.contact button:hover {
    background: #bbbbbb;
}

.contact button:active {
    background: #eeeeee;
}

.contact input {
    display: flex;
    height: 26px;
    align-items: center;
}

.contact label {
    font-weight: 900;
}

.input_field {
    margin: 5px 0 15px 0;
    padding: 0 15px;
    width: 100%;
    display: block;
    text-align: left;
    background: #dddddd;
    border: none;
    border-radius: var(--default_corner_radius);
}

.menu_box {
    position: fixed;
    text-decoration: None;
    background: rgba(54, 55, 59, 0.75); /* rgba(7, 7, 7, 0.75); /* rgba(54, 55, 59, 0.75); */
    margin: 20px 0 20px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
    width: 230px;
    border-radius: var(--default_corner_radius);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menu {
    text-decoration: None;
    padding: 0;
}

.menu a {
    font-size: 14px;
    font-weight: 320;
    font-family: 'Lexend', sans-serif;
    text-decoration: none;
    text-transform: none;
    color: #bbbbbb;
    display: block;
    transition: background 0.35s ease, padding-left 0.35s ease;
}

.menu a:hover {
    background: rgba(0, 0, 0, 0.4);
    font-weight: 500;
    padding-left: 8px;
}

.menu a:active {
    background: rgba(0, 0, 0, 0.5);
    font-weight: 900;
    transition: none;
}

/* Highlight active menu link */
.menu a.active .menu_element {
    font-weight: 900;
    color: #ffffff;
}

.menu_element {
    display: flex;
    justify-content: left;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    padding: 10px 0 10px 30px;
}

.vanishing {
    display: flex;
}

.appearing {
    display: none;
}

a[href="./index.html"] {
  display: flex;
  align-items: center;
}

.menu_icon {
    margin-right: 16px;
    /* box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); */
    /* border-radius: 3.2px; */
}

.highlight_box {
    position: absolute;
    background: rgba(255, 255, 255, 0.1); /* rgba(255, 255, 255, 0.05);  #3C3C3F; */
    height: 66px;
    width: 200px; /* calc(100% - 10px); */
    margin: 0 0 0 -15px;
    border-radius: var(--default_corner_radius);
    /* box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4); */
    z-index: -1;
}

.vertspace {
    margin-top: 10px;
}

.logo {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 8px;
    margin-bottom: 25px;
    border: 0px dashed #00ff00;
    color: #ffffff;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
}

.logo_img {
    margin: 0 14px 0 0;
    padding: 0;
    border: 0px solid #808080;
    height: 40px;
}

.logo_text {
    display: block;
    border: 0px solid #0000ff;
    line-height: 1.2;
}

.logo_name {
    font-size: 18px;
    font-weight: 200;
    font-family: 'Lexend', sans-serif;
    padding: 0;
    margin: 0;
    border: 0px solid #000000;
}

.logo_title {
    font-size: 14px;
    font-weight: 900;
    font-family: 'Lexend', sans-serif;
    padding: 0;
    margin: 0;
}

.row {
  display: flex;
  width: 100%;
  margin-bottom:var(--gallery_gap);
}

.hamburger_box {
    align-items: center;
    height: 100%;
    border: 0px dashed #ffff00;
    cursor: pointer;            /* make it obviously clickable */
    padding: 20px;            /* a little finger‑space */
}

.legal_notice {
    font-size: 12px;
    font-weight: 200;
    font-family: 'Lexend', sans-serif;
    color: #bbbbbb;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 0 0 20px 30px;
    justify-content: left;
    align-items: center;
    line-height: 1.75;
}

.legal_notice a {
    font-size: 11px;
    font-weight: 500;
    font-family: 'Lexend', sans-serif;
    color: #bbbbbb;
    text-decoration: none;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
}

.img_wrapper {
  overflow: hidden;
  border-radius: var(--default_corner_radius);
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4);
}

.img_wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
  transform-origin: center center;
}

.img_wrapper img:hover {
  transform: scale(1.1);
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.img_wrapper {
  /* keep existing properties */
  opacity: 0;
  transform: translateY(20px);
}

.img_wrapper.animate {
  animation: fadeInUp 0.6s forwards;
}

/* Overlay for large image display */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 1.0);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#overlay img {
  max-width: 100%;
  max-height: 100%;
  opacity: 1;
  transition: opacity 0.4s ease;
}

#overlay .close,
#overlay .prev,
#overlay .next {
  position: absolute;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

#overlay .close {
  top: 0;
  right: 0;
  padding: 20px;
}

#overlay .prev {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 20px 40px 20px 20px;
}

#overlay .next {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 20px 20px 20px 40px;
}

#overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#overlay.closing {
  visibility: visible;
  pointer-events: none;
}

/* #################################################################################### */
/* ### MOBILE SETTINGS ################################################################ */
/* #################################################################################### */

@media only screen and (max-width: 1110px) {  /* SWITCH RESOLUTION: 739px */
    .menu_box {
        margin: 20px 20px 0 20px;
        height: 80px;
        width: calc(100% - 40px);
        position: fixed;
        flex-direction: row;
        z-index: 1000;
        min-width: 450px;
        align-items: center;
    }
    .logo {
      margin-top: 25px;
    }
    .vertspace {
        margin-top: 0px;
    }
    .highlight_box {
        padding: 0;
        left: 0;
        top: 0;
        height: 60px;
        margin: 10px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .content_section {
        margin-left: 0;
        padding-top: 140px;
    }
    .vanishing {
        display: none;
    }
    .appearing {
        display: flex;
    }
    .legal_notice {
        padding: 0 40px 0 0;
        margin: 0;
        border: 0px dashed #ffff00;
        min-width: 152px;
        max-width: 152px;
        text-align: right;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        height: 100%;
    }
    #mainMenu {
        display: none;                 /* hidden until toggled */
        position: absolute;
        top: 80px;                    /* height of the mobile top bar */
        width: 210px;
        background: rgba(43, 43, 48, 0.75); /* #2B2B30; */
        flex-direction: column;
        z-index: 999;                  /* sit above page content */
        margin-top: 10px;
        left: 50%;                   /* center horizontally */
        transform: translateX(-50%);
        padding: 10px 0 10px 0;
        border-radius: var(--default_corner_radius);
        box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.4);
        border: 0px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    #mainMenu.open {
        display: flex;                 /* show when toggled */
    }
    #mainMenu.open .vanishing {
        display: flex;                 /* override earlier “vanish” rule */
    }
    #mainMenu .menu_element {
        padding: 12px 20px;            /* 12, 30: comfy touch targets */
    }
}
