/* ===========================================================
   Tablet Styles  –  769px to 1024px
   Standalone file: loaded only at this breakpoint.
   Uses burger menu + Swiper viewer (same as mobile).
=========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: "Inter", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ---- Layout ---- */
.sidebar-layout { display: block; }
.sidebar         { display: none; }
.sidebar-main    { width: 100%; }

/* ---- Burger button ---- */
.burger {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 44px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* No backdrop needed — nav is full-screen on tablet */
.mnav-overlay { display: none; }

/* ---- Full-screen nav (same as mobile) ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
  overflow-y: auto;
  width: 35vw
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mnav-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 76px 40px 36px;
}

/* Artist */
.mnav-artist { margin-bottom: 32px; }
.mnav-artist a {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #111;
  text-decoration: none;
}

/* Main nav */
.mnav-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ebebeb;
}
.mnav-main a {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: #111;
  text-decoration: none;
  letter-spacing: 0;
}
.mnav-main a:hover { color: #444; }

/* Secondary nav */
.mnav-secondary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.mnav-secondary a {
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
  text-decoration: none;
}
.mnav-secondary a:hover { color: #111; }

/* Footer: search + meta row */
.mnav-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid #ebebeb;
}

/* Search inside footer */
.mnav-search .search-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font-family: var(--font-spectral);
  font-size: 0.95rem;
  color: #333;
  padding: 4px 1.4rem 4px 2px;
  outline: none;
  letter-spacing: 0.02em;
}
.mnav-search .search-input::placeholder { color: rgba(0, 0, 0, 0.32); }
.mnav-search .search-input:focus { border-bottom-color: rgba(0, 0, 0, 0.55); }
.mnav-search .search-dropdown {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 0;
  right: 0;
  background: #f2f4f7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
  max-height: 40vh;
  overflow-y: auto;
  z-index: 1100;
}
.mnav-search .search-result { padding: 8px 12px; display: flex; justify-content: space-between; gap: 8px; }
.mnav-search .search-result-title { font-size: 0.88rem; color: #222; }
.mnav-search .search-result-cat   { font-size: 0.74rem; color: rgba(0,0,0,0.42); white-space: nowrap; }
.mnav-search .search-clear {
  position: absolute;
  right: 2px;
  bottom: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.32);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.mnav-search .search-clear:hover { color: rgba(0, 0, 0, 0.7); }

/* Footer meta row: social + lang + impressum */
.mnav-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mnav-social { display: flex; gap: 14px; align-items: center; }
.mnav-social img { height: 17px; opacity: 0.55; }
.mnav-impressum {
  font-size: 0.78rem;
  color: #bbb;
  text-decoration: none;
  margin-left: auto;
}

/* ---- Search box (standalone, e.g. inside sidebar) ---- */
.search-box { position: relative; }
.search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  background: transparent;
  font-size: 1rem;
  padding: 6px 2px;
  outline: none;
  font-family: inherit;
  color: #222;
}
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 200;
  list-style: none;
}
.search-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 12px;
  cursor: pointer;
  gap: 10px;
}
.search-result.highlighted { background: #f5f5f5; }
.search-result-title { font-size: 0.95rem; color: #222; }
.search-result-cat   { font-size: 0.78rem; color: #999; white-space: nowrap; }

/* ---- Gallery — vertical snap scroller ---- */
.mobile-view-only { display: block; }

.arbeiten-main {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background: #fff;
}

.arbeiten-section {
  scroll-snap-align: start;
  height: 100dvh;
  z-index: 1;
}

.serien-main { scroll-snap-type: y mandatory; }

.arbeiten-main.no-snap { scroll-snap-type: none; }

/* Technique title */
.technik-title-sticky {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 2.4vh 0;
}
.technik-title-sticky h2 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #222;
  background: rgba(255,255,255,0.9);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
}

/* Swiper image — needs higher specificity than Swiper's .swiper-zoom-container > img (0,1,1) */
.tablet-swiper .carousel-image,
.swiper-zoom-container > img.carousel-image {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Meta info — exact desktop .arbeit-meta style */
.arbeit-meta {
  position: fixed;
  bottom: 2.5vh;
  left: 0;
  z-index: 50;
  padding: 12px 24px 20px 24px;
  color: rgba(0, 0, 0, 0.82);
  max-width: 70vw;
  overflow-wrap: anywhere;
  hyphens: auto;
  pointer-events: none;
}
.arbeit-meta-head {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
}
.arbeit-meta-title {
  display: block;
  font-weight: 200;
  margin-bottom: 4px;
}
.arbeit-meta-lines {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.65);
}
.arbeit-meta-count {
  display: block;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
}

/* Serien grid — 3 columns on tablet */
.serien-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
  box-sizing: border-box;
  align-content: start;
}
.serien-grid .grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.serien-grid .grid-bild {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Home page ---- */
.home-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Inter", sans-serif;
  color: #333;
  overflow-x: hidden;
}
.home-mobile-section.intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: 100dvh;
  padding: 80px 40px 60px;
  box-sizing: border-box;
}
.home-mobile-title {
  font-size: 2.2rem;
  font-family: "Spectral";
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}
.home-mobile-subtitle {
  font-family: "Spectral";
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.6em;
}
.home-mobile-cat-link { color: inherit; text-decoration: none; }
.home-mobile-cat-link:hover { text-decoration: underline; }
.home-mobile-image { width: 100%; max-width: 680px; margin: 0 auto 2em; }
.home-mobile-image a { display: block; }
.home-mobile-section.ausstellungen {
  background: #fafafa;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 60px 40px 80px;
}
.home-mobile-section.ausstellungen h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6em;
}
.home-mobile-section.ausstellungen h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2em;
}
.poster-link img {
  width: 60%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.home-mobile-lang { margin: 0 auto 40px; }

/* ---- Tablet Landing Page ---- */
.t-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3vh 4% 2.5vh;
  box-sizing: border-box;
  gap: 2.5vh;
}
.t-title {
  flex-shrink: 0;
  font-family: var(--font-spectral);
  font-size: clamp(2.2rem, 2.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #222;
  margin: 0;
  text-align: center;
}
.t-cols {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 4vw;
  width: 80%;
}
.t-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.t-col-label,
.t-col-label:link,
.t-col-label:visited {
  display: block;
  font-family: var(--font-spectral);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  text-align: center;
}
.t-col-label:hover { color: #000; }
.t-col-img,
.t-col-img:link,
.t-col-img:visited {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  transform: translateZ(0);
  text-decoration: none;
}
.t-col-img img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.t-misc {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-spectral);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: #555;
}
.t-misc-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  flex-wrap: wrap;
}
.t-misc-lang { display: flex; justify-content: center; }
.t-misc a,
.t-misc a:link,
.t-misc a:visited { color: inherit; text-decoration: none; }
.t-misc a:hover {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  color: #111;
}
.t-misc-item { display: inline-flex; align-items: center; gap: 0.2em; }
.t-sep { color: rgba(0, 0, 0, 0.3); user-select: none; }
.t-poster-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5vw;
  height: 100vh;
  padding: 40px 5%;
  box-sizing: border-box;
}
.t-poster-img-wrap { display: flex; justify-content: center; align-items: center; flex: 1; }
.t-poster-text {
  flex: 1;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-spectral);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
  gap: 0.75rem;
}
.t-poster-text h2 {
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.t-poster-text p { margin: 0; }
.t-poster-text a,
.t-poster-text a:link,
.t-poster-text a:visited {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* ---- Homepage (desktop layout on tablet) ---- */
.homepage {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.homepage-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4vh;
  height: 100%;
  width: 100%;
}
.home-intro {
  text-align: center;
  font-family: "Spectral";
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
.home-intro h2 {
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}
.home-intro p { font-size: clamp(0.95rem, 1.3vw, 1.15rem); color: #666; }
.home-intro p.home-intro-main { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.home-intro p span,
.home-intro p a {
  position: relative;
  cursor: pointer;
  transition: text-decoration 0.2s ease;
  color: inherit;
  text-decoration: none;
}
.home-intro p span.underline,
.home-intro p a.underline,
.home-intro a:hover {
  text-decoration: underline dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  color: #111;
}
.home-intro p a:visited,
.home-intro p a:hover { color: inherit; }

.home-blocks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw;
  width: 100%;
  height: 58%;
}
.home-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22%;
  height: 85%;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.home-image { position: relative; width: 100%; height: 100%; }
.home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.home-section:hover .home-image img { transform: scale(1.05); }

.series-stack { position: relative; width: 100%; height: 100%; overflow: hidden; }
.series-stack img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: top 1.2s ease, clip-path 1.2s ease;
  clip-path: inset(33.33% 0 33.33% 0);
  z-index: 1;
}
.series-stack img:nth-child(1) { top: -33.33%; }
.series-stack img:nth-child(2) { top: 0; }
.series-stack img:nth-child(3) { top: 33.33%; }
.home-section:hover .series-stack img:nth-child(1) { top: 0; clip-path: inset(0 0 0 0); z-index: 2; }
.home-section:hover .series-stack img:nth-child(2),
.home-section:hover .series-stack img:nth-child(3) { top: 66%; }

.home-overlay {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
  z-index: 5;
}
.home-section:hover .home-overlay { opacity: 1; }

.link-with-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.link-with-badge.has-live { padding-right: 2.2em; }
.live-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.35rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  user-select: none;
  pointer-events: none;
  margin-left: -0.1em;
  transform: translate(-0.4em, -1.5em) rotate(18deg);
  transform-origin: left bottom;
  color: red;
}

.extra-section {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  padding: 40px 5%;
  gap: 40px;
  height: 100vh;
}
.extra-section .extra-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.extra-section .extra-image img { width: 100%; height: 100%; object-fit: contain; }
.extra-section .extra-text {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Merriweather", serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* ---- Page title (shared header bar with burger) ---- */
.page-title {
  height: 70px;
  line-height: 70px;
  text-align: center;
  font-family: var(--font-inter);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* ---- Language switcher ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.4);
  padding: 4px 0;
}
.lang-switcher a { color: rgba(0,0,0,0.4); text-decoration: none; }
.lang-switcher a:hover { color: rgba(0,0,0,0.75); }
.lang-current { color: rgba(0,0,0,0.82); font-weight: 600; letter-spacing: 0.025em; }

/* ---- Contact ---- */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: 7vh;
}
.kontakt-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 3rem;
}
.kontakt-text { max-width: 80vw; }
.kontakt-text p { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.kontakt-form > p { margin: 0 0 0.2rem; font-size: 0.95rem; }
.kontakt-form label { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.kontakt-form input,
.kontakt-form textarea {
  padding: 0.65rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #222;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 6px;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.kontakt-form textarea { resize: vertical; min-height: 6rem; }
.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder { color: rgba(0,0,0,0.45); font-size: 0.85rem; }
.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.95);
}
.kontakt-image { height: clamp(280px, 42vh, 460px); overflow: hidden; }
.kontakt-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kontakt-form button {
  margin-top: 0.75rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: rgba(0,0,0,0.85);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.kontakt-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,0.12); }

/* ---- Vita ---- */
.vita-page {}
.vita-page .extra-section .vita-section {
  height: auto;
  min-height: auto;
  padding: 10px 24px;
  gap: 24px;
  display: grid;
  align-items: stretch;
}
.vita-page .extra-image,
.vita-page .extra-text { width: 100%; max-width: 720px; margin: 0 auto; }
.vita-page .extra-image { height: clamp(260px, 42vh, 460px); overflow: hidden; border-radius: 8px; }
.vita-page .extra-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vita-page .extra-text { font-size: 1rem; text-align: left; line-height: 1.65; max-width: 720px; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 9999;
  white-space: nowrap;
}
.toast-success { background: #e6f4ea; color: #2d6a4f; border: 1px solid #b7dfc4; }
.toast-error   { background: #fdecea; color: #922; border: 1px solid #f5c6c6; }

/* ---- sr-only ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   OVERVIEW OVERLAY (serien single-image mode)
============================================================ */
.overview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 52px 20px 36px;
  touch-action: pan-y;
}

.overview-x {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(0, 0, 0, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-masonry {
  width: 100%;
  column-count: 2;
  column-gap: 12px;
}

.overview-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  break-inside: avoid;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  position: relative;
  aspect-ratio: var(--ar, auto);
}

.overview-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.overview-tile img[data-loaded="true"] { opacity: 1; }

.overview-tile.is-active {
  outline: 2px solid rgba(0, 0, 0, 0.55);
  outline-offset: -2px;
}

.overview-meta {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transition: opacity 160ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  pointer-events: none;
}

.overview-tile:hover .overview-meta,
.overview-tile:focus-visible .overview-meta { opacity: 1; }

.overview-meta-text { text-align: center; color: #000; max-width: 100%; }
.overview-meta-title { display: block; font-size: 13px; font-weight: 500; line-height: 1.25; }
.overview-meta-size  { display: block; font-size: 11px; opacity: 0.85; margin-top: 3px; }
