/* Layout of mariugce.com. Same look as the former WordPress page (Elementor
   with flip boxes), reduced to what the pages use. */
@font-face { font-family: "Hurricane"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/hurricane-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hurricane"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/hurricane-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/roboto-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #7a7a7a;
  --back: #2b2b2b;
  --back-text: #c6c6c6;
  --script: "Hurricane", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { color: #ffffff; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

.wrap { max-width: 800px; margin: 0 auto; padding: 10px; }
.title {
  margin: 0; padding: 10px 0;
  font-family: var(--script); font-weight: 400; color: #000000;
  text-align: center; line-height: 1.2;
}
.title-big { font-size: min(64px, 14vw); }
.title-mid { font-size: min(44px, 10vw); }
.divider { width: 20%; margin: 15px auto; border: 0; border-top: 2px solid #000000; }

/* flip boxes: picture with a script title in front, text on the back.
   Turns on hover (mouse) or tap (touch, see site.js). */
.flip {
  position: relative; height: var(--h, 500px); margin: 10px 0;
  perspective: 1000px; cursor: pointer; outline: none; overflow: hidden;
}
.flip-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 800ms cubic-bezier(.455, .03, .515, .955);
}
.flip-front {
  background: #ffffff center / cover no-repeat;
}
.flip-front.contain { background-size: contain; }
.flip-front h2 {
  margin: 10px 0 0;
  font-family: var(--script); font-size: min(100px, 19vw); font-weight: 400; line-height: 1.2; color: #ffffff;
}
.flip-front.dark h2 { color: #000000; }
.flip-back {
  background: var(--back); color: var(--back-text);
  transform: rotateY(180deg); overflow-y: auto;
}
.flip-back > div { margin: auto 0; }
.flip-back ol { text-align: left; padding-left: 1.4em; }
.flip-back img { display: block; margin: 0 auto 1em; }
.flip:hover .flip-front, .flip.on .flip-front { transform: rotateY(-180deg); }
.flip:hover .flip-back, .flip.on .flip-back { transform: none; }
@media (hover: none) { .flip:hover:not(.on) .flip-front { transform: none; } .flip:hover:not(.on) .flip-back { transform: rotateY(180deg); } }
@media (min-width: 1025px) { .flip-front.fixed { background-attachment: fixed; } }
@media (max-width: 767px) { .flip { height: var(--hm, var(--h, 500px)); } }

/* standesamt: the Trauzeugen picture with its caption */
.witnesses {
  display: flex; align-items: center; justify-content: center; min-height: 400px;
  background: #ffffff url(/assets/img/trauzeugen.jpg) center / contain no-repeat;
  font-family: var(--script); font-size: min(91px, 18vw); color: #000000;
}

/* home: photo strip, 4 pictures at once */
.carousel { position: relative; margin: 10px 0; }
.carousel-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 calc((100% - 30px) / 4); width: calc((100% - 30px) / 4);
  aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: start;
}
.carousel button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: #ffffff; font-size: 20px; line-height: 1; cursor: pointer;
}
.carousel .prev { left: 6px; }
.carousel .next { right: 6px; }
@media (max-width: 767px) { .carousel-track img { flex-basis: calc((100% - 10px) / 2); width: calc((100% - 10px) / 2); } }

/* picture area */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.tile .color { opacity: 0; }
.tile:hover .color, .tile:focus .color { opacity: 1; }
.tile span {
  position: absolute; inset: auto 0 0; padding: 10px;
  font-family: var(--script); font-size: 48px; color: #ffffff; text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.tile-wide { grid-column: 1 / -1; aspect-ratio: 2; }
@media (max-width: 767px) { .tiles { grid-template-columns: 1fr; } .tile-wide { aspect-ratio: 1; } }

.back-link { display: inline-block; margin: 10px 0; color: var(--text); text-decoration: none; }
.back-link:hover { color: #000000; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: #eeeeee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.wrap-wide { max-width: 1200px; }
.download { color: var(--text); }
video { display: block; width: 100%; height: auto; background: #000000; }

/* lightbox (site.js) */
.lb {
  position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .92);
}
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; }
.lb button {
  position: absolute; border: 0; background: none; color: #ffffff; font-size: 40px; line-height: 1;
  padding: 16px; cursor: pointer;
}
.lb .lb-close { top: 0; right: 0; }
.lb .lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.lb .lb-dl { bottom: 0; right: 0; font-size: 15px; color: #cccccc; text-decoration: none; padding: 16px; position: absolute; }

/* login */
.login { max-width: 360px; margin: 60px auto; text-align: center; }
.login input {
  width: 100%; margin: 10px 0; padding: 12px; font: inherit;
  border: 1px solid #cccccc; border-radius: 3px;
}
.login button {
  padding: 12px 28px; border: 0; border-radius: 3px; font: inherit;
  background: var(--back); color: #ffffff; cursor: pointer;
}
.login-error { color: #b00020; }

.foot { padding: 20px; text-align: center; font-size: 14px; }
