/**** CSS RESET START ****/

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body, h1, h2, h3, h4, h5, p, ul, ol, li, figure {
    margin: 0;
  }

  ul, ol {
    padding: 0;
    list-style: none;
  }

  img, picture, video {
    display: block;
    max-width: 100%;
    height: auto;
  }

  input, textarea, button, select {
    font: inherit;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    border: 0;
    background: none;
    cursor: pointer;
  }

  textarea {
    resize: vertical;
  }
}
/**** CSS RESET END ****/

/**** GLOBALS START ****/
/* CSS HEX */
:root {
  --snow: #f7f7f7ff;
  --snow-transparent: #f7f7f7f2;
  --dust-grey: #dedcd9ff;
  --silver: #cccbc8ff;
  --grey-olive: #878684ff;
  --charcoal: #545452ff;
  --graphite: #333332ff;
  --carbon-black: #212120ff;

  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Montserrat", sans-serif;

  --bg-main: var(--snow);
  --bg-soft: var(--dust-grey);
  --bg-dark: var(--carbon-black);
  --bg-menu: var(--snow-transparent);

  --text-main: var(--carbon-black);
  --text-light: var(--snow);

  --font-allcaps: uppercase;
  --font-smallcaps: small-caps;
}

html {
  scroll-padding-top: 5rem;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
}

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8rem;
  margin: 1rem 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-variant: var(--font-smallcaps);
  font-weight: 300;
}

h2 {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 3.8rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
}

h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  text-transform: var(--font-allcaps);
  letter-spacing: 0.2rem;
  line-height: 2rem;
}

h5 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
}

a {
  font-size: 1rem;
  font-weight: 400;
}

section {
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
}

section:nth-of-type(even) {
  background: var(--bg-soft);
}

section:nth-of-type(odd) {
  background: var(--bg-main);
}

.divider {
  width: 100%;
  margin: 1rem 0;
  border-top: 1px solid;
}

.divider-light { border-color: var(--silver); }
.divider-dark { border-color: var(--charcoal); }
/**** GLOBALS END ****/

/**** MENU START ****/
header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  min-height: 5rem;
  background: var(--bg-menu);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
}

.menu-logo a {
  font-family: var(--font-serif);
  text-transform: var(--font-allcaps);
  font-size: 2rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-sans);
  text-transform: var(--font-allcaps);
  font-size: 1rem;
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: var(--text-main);
  margin: 0.3rem 0;
}

/**** MENU END ****/

/**** BACK TO TOP START ****/
.back-to-top {
  position: fixed;
  right: 2%;
  bottom: 4%;
  z-index: 9;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--grey-olive);
  background: var(--snow-transparent);
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 0.72;
  pointer-events: auto;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-0.1rem);
}

.back-to-top__arrow {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.lightbox-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}
/**** BACK TO TOP END ****/

/**** HERO START ****/
#hero {
  display: flex;
  background-image:
    linear-gradient(0deg, rgba(247, 247, 247, 1) 0%, rgba(247, 247, 247, 0.7) 50%, rgba(247, 247, 247, 0.9) 100%),
    url("images/promarker1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 5rem;
  justify-items: center;
  text-align: center;

}

#hero h1 {
  letter-spacing: 0.3rem;
}

#hero h3 {
  margin-top: 1rem;
  letter-spacing: 0.2rem;
}

#hero h4 {
  letter-spacing: 0.8rem;
}

/* SCROLL CUE START */
.scroll-cue {
  margin-top: 3rem;
  color: var(--text-main);
  animation: scrollCueFloat 2.8s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.scroll-cue:hover {
  animation-play-state: paused;
  opacity: 0.8;
}

.scroll-cue__arrow {
  width: 3.2rem;
  height: 3.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes scrollCueFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.4rem);
  }
}
/* SCROLL CUE END */
/**** HERO END ****/

/**** GALLERY START ****/
#gallery {
  padding: 5rem 5rem 3rem;
}

.masonry-grid {
  margin: 3rem 0;
}

.grid-sizer,
.masonry-item {
  width: 23%;
}

.gutter-sizer {
  width: 2%;
}

.masonry-item {
  margin-bottom: 2%;
  overflow: hidden;
}

.gallery-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transform: translateZ(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card:is(:hover, :focus-visible, :active) {
  transform: scale(1.03);
  opacity: 0.9;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-main);
}

.lightbox:fullscreen {
  background: var(--bg-main);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-main);
}

.lightbox__ui {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 4;
  display: flex;
  gap: 0.75rem;
}

.lightbox__close,
.lightbox__fullscreen {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  opacity: 1;
  transform: scale(1.04);
}

.lightbox__fullscreen:hover {
  opacity: 1;
  transform: scale(1.04);
}

.lightbox:fullscreen .lightbox__fullscreen:hover {
  transform: scale(0.96);
}

.lightbox__inner {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
}

.lightbox__figure {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  padding: 1.5rem 3.5rem 3.5rem;
}

.lightbox__figure.is-zoomed {
  cursor: zoom-out;
}

.lightbox__meta {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 3;
  width: calc(100% - 8rem);
  max-width: 60rem;
  text-align: center;
  pointer-events: none;
}

/*.lightbox__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(2rem, 4rem) minmax(0, 1fr) minmax(2rem, 4rem);
  align-items: center;
  width: min(94vw, 120rem);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.lightbox:fullscreen .lightbox__inner {
  width: 100vw;
  max-width: none;
  padding-inline: 2rem;
}

.lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox__figure.is-zoomed {
  cursor: zoom-out;
}

.lightbox__meta {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3;
  width: min(90vw, 40rem);
  text-align: center;
  pointer-events: none;
}*/

.lightbox__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text-main);
  opacity: 0.78;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
/*.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}*/

.lightbox:fullscreen .lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  color: var(--text-main);
  opacity: 0.6;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox__nav::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.lightbox__nav--prev {
  left: 1.25rem;
}

.lightbox__nav--next {
  right: 1.25rem;
}

.lightbox__nav--prev::before {
  transform: rotate(-135deg);
}

.lightbox__nav--next::before {
  transform: rotate(45deg);
}

.lightbox__nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}
/*.lightbox__nav {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: var(--text-main);
  opacity: 0.62;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox__nav::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.lightbox__nav--prev::before {
  transform: rotate(-135deg);
}

.lightbox__nav--next::before {
  transform: rotate(45deg);
}

.lightbox__nav:hover {
  opacity: 1;
  transform: scale(1.04);
}

.lightbox__nav--prev {
  justify-self: start;
}

.lightbox__nav--next {
  justify-self: end;
}*/

body.lightbox-open {
  overflow: hidden;
}
/**** GALLERY END ****/

/**** ABOUT START ****/
#about {
  padding: 5rem 5rem 3rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.profil {
  width: min(27rem, 100%);
}

.about-text {
  margin-left: 6%;
  max-width: 45vw;
  margin-right: 2rem;
}

.about-bullet {
  display: flex;
  gap: 3rem;
  max-width: 34rem;
}

.bullet-group h5 {
  margin: 0.2rem 0;
}
/**** ABOUT END ****/

/**** CONTACT START ****/
#contact {
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: calc(100vh - 12rem);
  min-height: calc(100svh - 12rem);
  padding: 5rem 5rem 3rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.contact-text {
  max-width: 38vw;
}

.contact-form {
  width: 38vw;
  min-width: 19rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-right: 4%;
}

#form-content {
  min-width: 17rem;
  display: flex;
  flex-direction: column;
  margin: 0 4rem;
}

.contact-form label {
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  color: var(--text-light);
  font-family: var(--font-sans);
  background: #54545266;
  margin-bottom: 1.8rem;
  padding: 0.6rem;
  border: none;
  border-bottom: 1px solid var(--grey-olive);
}

.contact-form button {
  padding: 0.8rem 3rem;
  color: var(--text-light);
  border: 1px solid var(--grey-olive);
  align-self: center;
  font-size: 1.2rem;
}

.contact-form button:hover {
  background: var(--graphite);
  border: 1px solid var(--grey-olive);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-status {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
}


/**** CONTACT END ****/

/**** FOOTER START ****/
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 7rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 5rem;
  border-top: 1px solid var(--charcoal);
}

footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
  text-transform: var(--font-allcaps);
}

.footer-name a {
  font-family: var(--font-serif);
  font-variant: var(--font-smallcaps);
  font-size: 1.6rem;
}

.footer-legals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-legals a,
.footer-legals p {
  margin: 0;
}
/**** FOOTER END ****/

/**** FORM LEGAL NOTE START ****/
.form-legal {
  margin: 2rem 0rem 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.2rem;
  color: var(--silver);
}

.form-legal a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  font-size: 0.7rem ;
}
/**** FORM LEGAL NOTE END ****/

/**** LEGAL PAGE START ****/
.legal-page {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-main);
  color: var(--text-main);
  padding: 8rem 5rem 4rem;
}

.legal-section {
  max-width: 52rem;
}

.legal-section h1 {
  margin-bottom: 2rem;
  font-size: 4rem;
}

.legal-section h2 {
  font-size: 2rem;
  line-height: 2.2rem;
  margin: 2.5rem 0 1rem;
}

.legal-section p {
  max-width: 46rem;
}

.legal-section a {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
/**** LEGAL PAGE END ****/




/* Small / medium devices (tablets, 601px to 900px) */
@media only screen and (min-width: 601px) and (max-width: 900px) {
  /* Globals */
  p {
    line-height: 1.7rem;
  }

  h1 {
    font-size: 6rem;
  }

  h2 {
    font-size: 3.1rem;
    line-height: 3.1rem;
  }

  h3 {
    font-size: 2.1rem;
  }

  h4 {
    letter-spacing: 0.14rem;
    line-height: 1.8rem;
  }

  /* Menu */
  header {
    padding: 0 2rem;
  }

  nav {
    gap: 1.25rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  /* Hero */
  #hero {
    margin-top: 5rem;
    padding: 2rem;
  }

  /* Gallery */
  #gallery {
    padding: 3rem 2.5rem;
  }

  .grid-sizer,
  .masonry-item {
    width: 32%;
  }

  .gutter-sizer {
    width: 2%;
  }

  .lightbox__inner {
    width: min(96vw, 72rem);
    padding: 4.5rem 1.25rem 2rem;
  }

  .lightbox__image {
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
  }

  /* About */
  #about {
    padding: 3rem 2.5rem;
    gap: 2rem;
  }

  .profil {
    width: min(20rem, 100%);
  }

  .about-text {
    width: min(68rem, 100%);
    margin: 0;
  }

  .about-bullet {
    gap: 2rem;
    flex-wrap: wrap;
  }

  /* Contact */
  #contact {
    min-height: auto;
    padding: 3rem 2.5rem;
    flex-direction: column;
    gap: 2.5rem;
  }

  .contact-text {
    max-width: 100%;
    margin-right: 0;
  }

  .contact-form {
    width: min(100%, 32rem);
    margin-right: 0;
  }

  /* Footer */
  footer {
    min-height: auto;
    padding: 1.5rem 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-legals {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .legal-page {
    padding: 7rem 2.5rem 3rem;
  }

  .legal-section h2 {
    font-size: 1.7rem;
    line-height: 1.9rem;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  /* Globals */
  p {
    line-height: 1.5rem;
  }
  h1 {
    font-size: 3.8rem;
    letter-spacing: initial !important;
  }
  h2 {
    font-size: 2.4rem;
    line-height: 2.8rem;
  }
  h3 {
    font-size: 1.8rem;
    letter-spacing: initial !important;
  }
  h4 {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    line-height: 1.6rem;
  }

  /* Menu */
  .menu-toggle {
    display: block;
    padding: 0.25rem;
    z-index: 20;
  }

  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem 3rem 1rem;
    background: var(--bg-menu);
    border-top: 1px solid var(--silver);
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }

  #site-nav.is-open {
    display: flex;
  }

  #site-nav a {
    margin-bottom: 1rem;
  }
  
  /* Hero */
  #hero {
    padding: 0 3rem;
  }


  /* Gallery */
  #gallery {
    padding: 3rem;
  }
    
  .grid-sizer,
  .masonry-item {
    width: 49%;
  }

  .gutter-sizer {
    width: 2%;
  }
  
  .lightbox__inner {
    padding: 0;
  }
  /*.lightbox__inner {
    grid-template-columns: 1fr;
    padding: 4.5rem 1rem 1.5rem;
  }*/

  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }

  .lightbox__figure {
    padding: 1rem 2.5rem 3rem;
  }

  .lightbox__meta {
    width: calc(100% - 4rem);
    bottom: 0.75rem;
  }
  /*.lightbox__nav--prev {
    left: 0.25rem;
  }

  .lightbox__nav--next {
    right: 0.25rem;
  }*/

  .lightbox__image {
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
  }

  /* About */
  #about {
    gap: 1.5rem;
    flex-direction: column;
    padding: 3rem;

  }

  .profil {
    width: 45%;
  }

  .about-text {
  max-width: 100%;
  margin: 1rem 0;
  }

  .about-bullet {
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Contact */
  #contact {
    min-height: auto;
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem;

  }

  .contact-text {
    max-width: 100%;
    margin-right: 0;
  }

  .contact-form {
    width: min(100%, 32rem);
    min-width: 17rem;
    margin-right: 0;
  }
  .contact-form button {
    width: 100%;
  }
  #form-content {
    margin: 0;
  }
  
  /* Footer */
  footer {
    min-height: auto;
    padding: 1rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-name a {
    font-size: 1.4rem;
  }

  .footer-legals {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .legal-page {
    padding: 6.5rem 2rem 2.5rem;
  }

  .legal-section h1 {
    font-size: 3.4rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
    line-height: 1.7rem;
  }

  .form-legal {
    font-size: 0.78rem;
    line-height: 1.3rem;
  }
}





