:root {
  --brand-height: 100px;
  --navbar-padding: 0.5rem;
  --navbar-height: calc(var(--brand-height) + 2 * var(--navbar-padding));
  --instax-border-width: 1.2rem;

  --shadow-color: rgb(33, 33, 33);
  --secondary-color: rgb(90, 152, 235);
}

body {
  /* settings on body instead of html because lightbox is using body too*/
  overflow-y: scroll;
  overflow-x: hidden;
}

.hero-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  padding-top: var(--navbar-height);

  background-image: url('/static/pictures/photos/background.jpg');
  background-size: cover;
  background-position: center;

  isolation: isolate;
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(84, 84, 84, 0.3);
  pointer-events: none;
  z-index: 0;
}

.hero-background.img-2 {
  background-image: url('/static/pictures/photos/background_2.jpg');
}

p {
  margin-bottom: 2rem;
}

.container {
  position: relative; /* fixme text disappear */
}

.landing-logo {
  margin-top: -45px;
}

.hero-block {
  height: 7rem;
  display: grid;
  place-content: end center;
  color: ivory;
  text-align: center;
  animation-delay: 4.7s;
}

a {
  color: var(--secondary-color);
}

h1,
.h1 {
  font-family: 'Riffic';
  font-size: clamp(3.5rem, 7vw, 6rem);
}

h2,
.h2 {
  font-family: 'Riffic';
  font-size: clamp(2rem, 4vw, 4rem);
}

h3,
.h3 {
  font-family: 'Riffic';
  font-size: clamp(2rem, 3vw, 4rem);
}

h4,
.h4 {
  font-family: 'Riffic';
  font-size: clamp(1.5rem, 2vw, 3rem);
}

.fit-center {
  width: fit-content;
  margin: 0 auto;
}

.footer {
  font-family: 'Riffic';
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  color: white;
  background-color: rgba(255, 255, 240, 0.219);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer .container {
  display: grid;
  place-items: start;
}

a {
  text-decoration: none;
}

.instax-border {
  border-style: solid;
  border-color: ivory;
  border-width: var(--instax-border-width) var(--instax-border-width)
    calc(2 * var(--instax-border-width)) var(--instax-border-width);
  border-radius: 2px;
  box-shadow: 5px 10px 15px var(--shadow-color);
}

.photo-reel img {
  width: 105%;
  animation-delay: var(--delay);
}

.photo-reel .photo:nth-child(1) {
  --delay: 3.2s;
  z-index: 400;
}

.photo-reel .photo:nth-child(2) {
  --delay: 4.2s;
  z-index: 500;
}

.photo-reel .photo:nth-child(3) {
  --delay: 3.7s;
  z-index: 400;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  column-gap: 0.5rem;
  justify-content: center;
}

.interactive-gallery {
  background-color: rgba(255, 255, 240, 0.769);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}

.text-container {
  background-color: rgba(255, 255, 240, 0.769);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3rem;
}

.photo-grid {
  row-gap: 1rem;
  text-align: center;
  user-select: none;
}

.photo-grid h2 {
  --line-thickness: 0.8rem;
  --line-gap: 2rem;

  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  gap: var(--line-gap);
  padding-top: 3rem;
}

.photo-grid h2::before,
.photo-grid h2::after {
  content: '';
  display: block;
  flex: 1;
  background-color: var(--secondary-color);
  height: var(--line-thickness);
  border-radius: 10rem;
}

.photo-grid img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.photo-grid .photo {
  display: inline-block;
  margin: 0.5rem 0;
  height: 13rem;
  max-height: 30vw;
  rotate: calc(var(--tilt) * 5deg);
  transition:
    scale 0.1s ease-in-out,
    translate 0.25s ease-out;
}

.photo-grid .photo.hidden {
  display: none;
}

.photo-grid .photo:hover {
  scale: 110%;
}

.photo-reel img {
  transition:
    scale 0.1s ease-in-out,
    translate 0.25s ease-out;
}

.photo-reel img:hover {
  scale: 105%;
}

.interactive-gallery.has-preview .photo-grid .photo.filter-preview {
  translate: 0 -30px;
  transition-delay: calc(var(--filterPreviewDelay) * 1ms);
}

.photo-grid .instax-border {
  --instax-border-width: 0.8rem;
}

.lightbox .lb-image {
  border-width: 20px;
  border-bottom-width: 50px;
  border-color: ivory;
}

.lb-data .lb-caption {
  /* add ellipsis in lightbox2 caption */
  white-space: nowrap;
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  padding-bottom: 2px;
}

.lb-data .lb-details {
  top: -50px;
  margin-left: 16px;
  color: rgb(22, 22, 22);
  z-index: 10001;
  position: relative;
}

.text-container p {
  text-align: justify;
}

.logo {
  height: 4rem;
}

.vertical-center {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.contact-links {
  display: grid;
  row-gap: 1rem;
  place-content: start;
}

.contact-links a {
  font-size: 1.25rem;
  font-weight: 500;
}

.avatar {
  width: 80%;
  border: 12px ivory solid;
}

.row-gap {
  row-gap: 1rem;
}

.btn-lg {
  margin-top: 4vw;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 5% 13%;
  font-size: 2.5rem;
}

.vulpy-sticker {
  width: 135%;
  margin-left: -45px;
  margin-top: 0px;
  transform: rotate(8deg);
}

.readable-text {
  max-width: 60ch;
}

@media (max-width: 767px) {
  .photo-reel img {
    width: 80%;
  }

  .photo-reel .photo:nth-child(2) {
    --delay: 3.7s;
    z-index: 500;
  }

  .photo-reel .photo:nth-child(3) {
    --delay: 4.2s;
    z-index: 600;
  }

  .contact-links {
    display: grid;
    place-content: center;
  }

  .photo-grid .photo {
    height: 10rem;
    max-height: 30vw;
  }

  .landing-logo {
    margin-top: 0px;
  }
}

@media (max-width: 991px) {
  /* large */
  .lightbox .lb-image {
    border-width: 0px;
    border-bottom-width: 50px;
    width: 100%;
    height: auto;
  }

  .lb-data .lb-caption {
    padding-top: 8px;
  }

  .lb-dataContainer {
    padding: 0; /* Odstranění paddingu okolo obrázku */
  }

  .lb-outerContainer {
    padding: 0;
    max-width: 100vw;
  }

  .lightboxOverlay {
    opacity: 0.92;
  }

  .vulpy-sticker {
    width: 130%;
    margin-left: -15%;
    margin-top: -30px;
    transform: rotate(-3deg);
  }

  .about-img {
    margin-top: -30px;
    margin-bottom: 20px;
  }
}

@media (max-width: 475px) {
  .photo-grid .instax-border {
    --instax-border-width: 0.6rem;
  }

  .photo-grid h2 {
    --line-thickness: 0.5rem;
    --line-gap: 1rem;
  }
}

.navbar {
  z-index: 1000;
  font-size: 1.5rem;
}

.navbar .navbar-brand .navicon {
  height: var(--brand-height);
}

@keyframes toony-wobble {
  0% {
    -webkit-transform: translateZ(0) scale(1);
    transform: translateZ(0) scale(1);
    opacity: 0;
  }

  33% {
    -webkit-transform: translate3d(-25%, 0, 0) rotate(-7deg) scale(0.7, 1);
    transform: translate3d(-25%, 0, 0) rotate(-7deg) scale(0.7, 1);
    opacity: 1;
  }

  66% {
    -webkit-transform: translate3d(2%, 0, 0) rotate(3deg) scale(1.1, 1);
    transform: translate3d(2%, 0, 0) rotate(3deg) scale(1.1, 1);
  }

  to {
    -webkit-transform: translateZ(0) scale(1);
    transform: translateZ(0) scale(1);
  }
}

.animate__toony-wobble {
  -webkit-animation-name: toony-wobble;
  animation-name: toony-wobble;
}
