html {
  box-sizing: border-box;
  overflow-x: hidden; /* Zakáže horizontální posuvník */
  width: 100%; /* 100vw by zahrnoval i šířku posuvníku */
  scroll-behavior: smooth;
}

/* Režim "jen si hrát": obsah je skrytý a tah prstem kreslí do teček */
html.play {
  touch-action: none;
}
html.play .portfolio,
html.play .photo,
html.play .marta-image,
html.play .titleMenu video,
html.play .titleMenu h1,
html.play .dropdown .button-wrap {
  display: none;
}
html.play .titleMenu {
  grid-template-columns: 1fr;
}
html.play .titleMenu .dropdown {
  grid-column: 1;
}
*,
::after,
::before {
  box-sizing: inherit;
}

body {
  background: #000;
  overflow: hidden;
}

/* Volný prostor na konci stránky, kde si lze hrát s tečkami */
.dots {
  height: 40vh;
}

/* Úvod a volný prostor: tah prstem kreslí do teček. Od portfolia dál se scrolluje. */
.titleMenu,
.dots {
  touch-action: none;
}

/* Čtvercová síť teček (vykresluje index.js) */
#dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#title {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  font-family: "lato", sans-serif;
  font-weight: 300;
  font-size: 50px;
  letter-spacing: 10px;
  margin-top: -60px;
  padding-left: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: introFadeUp 1.2s ease-out forwards;
}
#title span {
  background: -webkit-linear-gradient(white, #38495a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

@keyframes introFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.titleMenu {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
}

.marta-image,
.titleMenu video {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  margin: 0;
  max-width: 100%;
  height: auto;
}
h1 {
  font-family: "Unna", sans-serif;
  font-size: 5rem;
  color: #b9ae50;
  font-style: italic;
  text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.5);
}
.titleMenu video {
  opacity: 0.7;
  /* měkké okraje: průhlednost plynule roste od kraje dovnitř */
  mask-image:
    linear-gradient(to right, transparent, #000 15%, #000 85%, transparent),
    linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 15%, #000 85%, transparent),
    linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
}

.titleMenu h1,
.titleMenu .dropdown {
  grid-column: 2;
  padding-left: 3rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dropdown .button-wrap {
  width: 55%;
  margin-left: 15%;
}

.dropdown .button {
  font-size: 2em;
}

/* Blur the other buttons while one is hovered */
@media (hover: hover) and (pointer: fine) {
  .dropdown:has(.button-wrap:hover) .button-wrap:not(:hover) {
    filter: blur(4px);
    opacity: 0.6;
  }
}
a {
  text-decoration: none;
  color: inherit;
}
/* Defs */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --global--size: clamp(2rem, 4vw, 5rem);
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========== BUTTON ========== */

/* Button Wrap Container */
.button-wrap {
  position: relative;
  z-index: 2;
  width: 70%;
  min-width: min(100%, 16rem);
  border-radius: 999vw;
  background: transparent;
  pointer-events: none;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

/* Button Shadow Container */
.button-shadow {
  --shadow-cuttoff-fix: 2em;
  position: absolute;
  width: calc(100% + var(--shadow-cuttoff-fix));
  height: calc(100% + var(--shadow-cuttoff-fix));
  top: calc(0% - var(--shadow-cuttoff-fix) / 2);
  left: calc(0% - var(--shadow-cuttoff-fix) / 2);
  filter: blur(clamp(2px, 0.125em, 12px));
  -webkit-filter: blur(clamp(2px, 0.125em, 12px));
  -moz-filter: blur(clamp(2px, 0.125em, 12px));
  -ms-filter: blur(clamp(2px, 0.125em, 12px));
  overflow: visible;
  pointer-events: none;
}

/* Shadow */
.button-shadow::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 999vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  left: calc(var(--shadow-cuttoff-fix) - 0.875em);
  padding: 0.125em;
  box-sizing: border-box;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  overflow: visible;
  opacity: 1;
}

/* ========== BUTTON BASE STYLES ========== */

.button {
  /* Basic Styling */
  --border-width: clamp(1px, 0.0625em, 4px);
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem; /* touch target >= 44-48px */
  padding: 0.875em 1.5em;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); /* never below 16px */
  line-height: 1.3;
  text-align: center;
  font-size: 3em;
  font-family: Gruppo, sans-serif;
  color: #b9ae50;
  text-shadow: 0.05em 0.05em 0.05em rgba(0, 0, 0, 0.763);
  padding: 0.5rem 0.5rem 0.75rem 0.5rem;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  pointer-events: auto;
  z-index: 3;
  background: linear-gradient(
    -75deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 999vw;
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
    0 0 0 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -moz-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -ms-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.button:hover {
  transform: scale(0.975);
  backdrop-filter: blur(0.01em);
  -webkit-backdrop-filter: blur(0.01em);
  -moz-backdrop-filter: blur(0.01em);
  -ms-backdrop-filter: blur(0.01em);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
    0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
    0 0 0 0 rgba(255, 255, 255, 1);
}

/* Button Text */
.button span {
  position: relative;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.05em;
  font-weight: 500;
  font-size: 1em;
  color: rgba(50, 50, 50, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1);
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  padding-inline: 1.5em;
  padding-block: 0.875em;
}

.button:hover span {
  text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
}

/* Text */
.button span::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--border-width)); /* Prevent overlapping border */
  height: calc(100% - var(--border-width));
  top: calc(0% + var(--border-width) / 2);
  left: calc(0% + var(--border-width) / 2);
  box-sizing: border-box;
  border-radius: 999vw;
  overflow: clip;
  background: linear-gradient(
    var(--angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 40% 50%,
    rgba(255, 255, 255, 0) 55%
  );
  z-index: 3;
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  transition:
    background-position calc(var(--anim--hover-time) * 1.25)
      var(--anim--hover-ease),
    --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.button:hover span::after {
  background-position: 25% 50%;
}

.button:active span::after {
  background-position: 50% 15%;
  --angle-2: -15deg;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .button span::after,
  .button:active span::after {
    --angle-2: -45deg;
  }
}

/* ========== BUTTON OUTLINE ========== */

/* Outline */
.button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 999vw;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background:
    conic-gradient(
      from var(--angle-1) at 50% 50%,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0) 5% 40%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 60% 95%,
      rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(180deg, #b9ae50, #b9ae50);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition:
    all var(--anim--hover-time) var(--anim--hover-ease),
    --angle-1 500ms ease;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(185, 174, 80, 0.5);
}

.button:hover::after {
  --angle-1: -125deg;
}

.button:active::after {
  --angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {
  .button::after,
  .button:hover::after,
  .button:active::after {
    --angle-1: -75deg;
  }
}

/* Shadow Hover */
.button-wrap:has(.button:hover) .button-shadow {
  filter: blur(clamp(2px, 0.0625em, 6px));
  -webkit-filter: blur(clamp(2px, 0.0625em, 6px));
  -moz-filter: blur(clamp(2px, 0.0625em, 6px));
  -ms-filter: blur(clamp(2px, 0.0625em, 6px));
  transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap:has(.button:hover) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.875em);
  opacity: 1;
}

/* Rotation */
.button-wrap:has(.button:active) {
  transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(.button:active) .button {
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
    0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),
    0 0.25em 0 0 rgba(255, 255, 255, 0.75),
    inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);
}

.button-wrap:has(.button:active) .button-shadow {
  filter: blur(clamp(2px, 0.125em, 12px));
  -webkit-filter: blur(clamp(2px, 0.125em, 12px));
  -moz-filter: blur(clamp(2px, 0.125em, 12px));
  -ms-filter: blur(clamp(2px, 0.125em, 12px));
}

.button-wrap:has(.button:active) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  opacity: 0.75;
}

.button-wrap:has(.button:active) span {
  text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12);
}

@media only screen and (max-width: 800px) {
  .button {
    font-size: 1em;
  }
}

/* Mobilní úvod: h1, pak IntroMOB, pak dropdown pod sebou */
.titleMenu .intro-mob {
  display: none;
}

@media only screen and (max-width: 800px) {
  .titleMenu {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .titleMenu .intro-desktop {
    display: none;
  }

  .titleMenu .intro-mob {
    display: block;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  .titleMenu h1 {
    grid-column: 1;
    grid-row: 1;
    padding: 1rem 1rem 0;
    font-size: 3rem;
    text-align: center;
  }

  /* Scroll povolen všude v úvodu, jen dropdown dál kreslí do teček */
  .titleMenu {
    touch-action: pan-y;
  }

  .titleMenu .dropdown {
    touch-action: none;
    grid-column: 1;
    grid-row: 3;
    padding: 1rem;
    align-items: center;
  }

  .dropdown .button-wrap {
    width: min(100%, 20rem);
    margin-left: 0;
  }

  .dropdown .button {
    font-size: 1.5rem;
  }
}

html.play .titleMenu .intro-mob {
  display: none;
}

/* Kulaté hamburger tlačítko v pravém horním rohu */
.menu-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 3.5rem;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem);
}

/* Zobrazí se na úrovni .portfolio (třídu přepíná index.js) */
.menu-wrap.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Výraznější blur u tlačítek přes obsah, aby pod nimi neprosvítal text */
.menu-toggle,
.menu-toggle:hover,
.menu-panel .button,
.menu-panel .button:hover {
  backdrop-filter: blur(11px) saturate(1.2);
  -webkit-backdrop-filter: blur(11px) saturate(1.2);
  background-color: rgba(0, 0, 0, 0.18);
}

/* Rozbalovací menu pod tlačítkem */
.menu-panel {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 10;
  width: min(18rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel .button-wrap {
  width: 100%;
}

.menu-panel .button {
  font-size: 1.5rem;
}

.menu-toggle {
  width: 3.5rem;
  height: 3.5rem;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
}

.menu-toggle::after {
  border-radius: 50%;
}

.menu-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  position: relative;
  z-index: 2;
}

h2 {
  font-family: "gruppo", sans-serif;
  font-weight: 400;
  font-size: 3rem;
  color: #b9ae50;
  text-shadow: 0.3rem 0.3rem 0.3rem rgba(238, 236, 236, 0.146);
}
.portfolio {
  font-family: "barlow", sans-serif;
  color: #b9ae50;
  padding-left: 8vw;
  padding-right: 8vw;
  font-size: 1.2rem;
}

.portfolio .caption {
  padding-bottom: 1.5rem;
  font-size: 1.2rem;
}
.text,
.photo,
.video,
.web {
  /* Mezi sekcemi výrazně víc než uvnitř nich (zákon blízkosti), škála po 8 px */
  padding-bottom: clamp(6rem, 4rem + 5vw, 8rem);
}
@media only screen and (max-width: 600px) {
  .portfolio {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quiz {
  font-family: "barlow", sans-serif;
  font-style: italic;
  color: #070603;
  margin: 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(228, 243, 162, 0.643);
  box-shadow: 0 0.5rem 1rem rgba(239, 236, 236, 0.234);
  font-size: 1rem;
}

/* Porovnání před / po: dvě fotky přes sebe, posuvník odhaluje vrchní */
.compare {
  position: relative;
  max-width: 650px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(239, 236, 236, 0.234);
  user-select: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.compare-small {
  max-width: 380px;
}

@media only screen and (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.compare-zoom {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1; /* nad průhledným posuvníkem */
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 6, 3, 0.65);
  color: #b9ae50;
  font-size: 1.3rem;
  cursor: pointer;
}

.compare-zoom:hover {
  background: #b9ae50;
  color: #070603;
}

.lightbox {
  /* max. 900 px na šířku a zároveň se vejde na výšku okna (poměr 4:3) */
  width: min(90vw, 900px, calc(75vh * 4 / 3));
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

/* Fotky na výšku (4:5): 5 na řádek */
.compare-portrait {
  aspect-ratio: 4 / 5;
}

.gallery-portrait {
  grid-template-columns: repeat(5, 1fr);
}

.gallery + .gallery {
  margin-top: 1.5rem;
}

@media only screen and (max-width: 1000px) {
  .gallery-portrait {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 600px) {
  .gallery-portrait {
    grid-template-columns: 1fr;
  }

  /* Fotky na mobilu na celou šířku textu (jako caption) */
  .gallery-item .compare-small {
    max-width: none;
  }
}

.lightbox-portrait {
  width: min(90vw, 700px, calc(75vh * 4 / 5));
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox .compare {
  max-width: none;
}

.lightbox-close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  border: 0;
  background: none;
  color: #b9ae50;
  font-size: 1.6rem;
  cursor: pointer;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #b9ae50;
  pointer-events: none;
}

.compare-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.8rem;
  height: 2.8rem;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b9ae50;
  color: #070603;
  font-size: 1.4rem;
}

.compare-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(7, 6, 3, 0.65);
  color: #b9ae50;
  font-family: "barlow", sans-serif;
  pointer-events: none;
}

.compare-label-before {
  left: 1rem;
}

.compare-label-after {
  right: 1rem;
}

/* Průhledný range přes celou plochu: tažení myší, dotykem i šipkami */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:focus-within {
  outline: 2px solid #b9ae50;
  outline-offset: 2px;
}

@media only screen and (max-width: 800px) {
  .quiz-grid {
    grid-template-columns: 1fr;
  }
}

/* Videa: malý náhled (jen metadata), po kliknutí se video otevře ve velkém okně */
.video p,
.web p {
  padding-bottom: 2rem;
  font-size: 16px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* velká mezera jen mezi řádky, pod posledním popiskem nic nezůstane */
  gap: 4.5rem 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  margin: 0;
  font-family: "barlow", sans-serif;
  color: #e4f3a2;
}

.video-card figcaption {
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.4;
  font-style: italic;
  padding-top: 1rem;
}

.video .info {
  color: #b9ae50;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;

  padding-bottom: 0.5rem;
}

.video-card strong {
  display: block;
  color: #b9ae50;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #070603;
  box-shadow: 0 0.5rem 1rem rgba(239, 236, 236, 0.234);
  cursor: pointer;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7, 6, 3, 0.65);
  color: #b9ae50;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.video-thumb:hover .video-play {
  background: #b9ae50;
  color: #070603;
}

.lightbox-video {
  width: auto;
  max-width: 90vw;
}

.lightbox-video video {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 1rem;
}

/* Weby: tři široké náhledy přes celou šířku */
.webinfo {
  padding: 0.5rem 0;
}
.web-grid {
  grid-template-columns: repeat(3, 1fr);
}

.web-grid .video-thumb {
  aspect-ratio: 16 / 10;
}

@media only screen and (max-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .web-grid {
    grid-template-columns: 1fr;
  }

  /* Weby: stejné mezery mezi odkazem, popisem a dalším webem jako u videí */
  .web .info {
    display: block;
    padding-bottom: 0.5rem;
  }

  .web .webinfo {
    padding: 0;
  }
}

@media only screen and (max-width: 500px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .web-grid .video-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobilní menu: při kliknutí jednou oběhne světlo po borderu tlačítka */
@keyframes border-orbit {
  to {
    --angle-1: 285deg;
  }
}

@media only screen and (max-width: 800px) {
  .menu-toggle.orbit::after,
  .menu-panel .button.orbit::after {
    --angle-1: -75deg;
    animation: border-orbit 0.9s ease-in-out;
  }
}

footer{
  font-family: "barlow", sans-serif;
  color: #b9ae50;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
}
/* Hezčí zalamování: bez osamocených slov na posledním řádku */
p,
figcaption,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}
