/* =========================================================
   ZÁKLAD
========================================================= */

:root {
  --cream: #f5f1ea;
  --paper: #faf8f4;
  --white: #ffffff;

  --ink: #171717;
  --soft-ink: #68645e;
  --muted: #99948c;

  --line: rgba(23, 23, 23, .13);

  --accent: #b98268;
  --accent-dark: #91624f;

  --sans: 'DM Sans', sans-serif;
  --serif: 'Playfair Display', serif;

  --max-width: 1220px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--sans);

  font-size: 15px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}


img {
  display: block;
  width: 100%;
}


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


button {
  font: inherit;
}


::selection {
  background: var(--ink);
  color: white;
}


.container {
  width: min(
    var(--max-width),
    calc(100% - 60px)
  );

  margin: 0 auto;
}


section {
  position: relative;
}


/* =========================================================
   TYPOGRAFIE
========================================================= */

h1,
h2,
h3 {
  margin: 0;

  font-family: var(--serif);
  font-weight: 400;

  letter-spacing: -.04em;
}


h1 {
  font-size: clamp(
    65px,
    9vw,
    125px
  );

  line-height: .88;
}


.hero-name {
  color: var(--accent-dark);
  font-style: italic;
}


h2 {
  font-size: clamp(
    48px,
    6vw,
    82px
  );

  line-height: .96;
}


h3 {
  font-size: 29px;
  line-height: 1.15;
}


.eyebrow {
  display: flex;
  align-items: center;

  gap: 12px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 2.5px;
  text-transform: uppercase;
}


.eyebrow::before {
  content: "";

  width: 30px;
  height: 1px;

  background: currentColor;
}


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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  min-height: 54px;

  padding: 0 27px;

  border: 1px solid var(--ink);

  background: var(--ink);

  color: white;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 1.5px;
  text-transform: uppercase;

  transition:
    background .4s var(--ease),
    color .4s var(--ease),
    transform .4s var(--ease);
}


.button:hover {
  background: transparent;
  color: var(--ink);

  transform: translateY(-3px);
}


.button-arrow {
  font-size: 17px;

  transition:
    transform .4s var(--ease);
}


.button:hover .button-arrow {
  transform: translateX(5px);
}


.button-outline {
  background: transparent;
  color: var(--ink);
}


.button-outline:hover {
  background: var(--ink);
  color: white;
}


/* =========================================================
   NAVIGACE
========================================================= */

.navbar {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  padding: 18px 0;

  transition:
    padding .4s var(--ease);
}


.navbar.scrolled {
  padding: 9px 0;
}


.nav-inner {
  display: flex;
  align-items: center;

  min-height: 65px;

  padding: 0 10px 0 24px;

  border: 1px solid rgba(255,255,255,.75);

  background:
    rgba(250,248,244,.78);

  backdrop-filter: blur(20px);

  box-shadow:
    0 10px 40px
    rgba(0,0,0,.045);
}


.logo {
  display: flex;
  align-items: center;

  gap: 13px;
}


.logo-symbol {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid var(--ink);

  font-family: var(--serif);

  font-size: 20px;
}


.logo-text {
  font-family: var(--serif);

  font-size: 19px;

  letter-spacing: -.02em;
}


.logo-subtitle {
  margin-top: -3px;

  color: var(--muted);

  font-size: 7px;

  letter-spacing: 2px;
  text-transform: uppercase;
}


.nav-links {
  display: flex;

  align-items: center;

  gap: 30px;

  margin-left: auto;
  margin-right: 30px;
}


.nav-links a {
  position: relative;

  color: var(--soft-ink);

  font-size: 10px;

  letter-spacing: .5px;
}


.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: var(--accent);

  transition:
    width .35s var(--ease);
}


.nav-links a:hover {
  color: var(--ink);
}


.nav-links a:hover::after {
  width: 100%;
}


.nav-button {
  min-height: 44px;

  padding: 0 21px;

  font-size: 9px;
}


.menu-button {
  display: none;

  width: 45px;
  height: 45px;

  border: 0;

  background: transparent;

  cursor: pointer;
}


.menu-button span {
  display: block;

  width: 20px;
  height: 1px;

  margin: 5px auto;

  background: var(--ink);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  position: fixed;

  inset: 0;

  z-index: 90;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--cream);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .4s ease,
    visibility .4s ease;
}


.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}


.mobile-links {
  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 24px;
}


.mobile-links a {
  font-family: var(--serif);

  font-size: 42px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 900px;

  display: flex;
  align-items: center;

  padding-top: 100px;

  overflow: hidden;

  background: var(--cream);
}


.hero-grid {
  display: grid;

  grid-template-columns: .82fr 1.18fr;

  gap: 80px;

  align-items: center;
}


.hero-copy {
  position: relative;

  z-index: 2;
}


.hero-copy .eyebrow {
  margin-bottom: 28px;
}


.hero-copy .button {
  margin-top: 70px;
}


.hero-title span {
  display: block;

  margin-left: 90px;

  font-style: italic;

  color: var(--accent);
}


.hero-description {
  max-width: 430px;

  margin:
    40px
    0
    35px;

  color: var(--soft-ink);

  font-size: 14px;

  line-height: 2;
}


.hero-meta {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-top: 20px;

  color: var(--muted);

  font-size: 9px;

  letter-spacing: 1px;
  text-transform: uppercase;
}


.hero-meta-line {
  width: 35px;
  height: 1px;

  background: var(--accent);
}


/* =========================================================
   HERO OBRAZ
========================================================= */

.hero-art {
  position: relative;

  height: 700px;
}


.hero-art-main {
  position: absolute;

  top: 0;
  right: 4%;

  width: 75%;
  height: 100%;

  overflow: hidden;

  background: #d9d1c5;

  box-shadow:
    0 45px 100px
    rgba(0,0,0,.15);
}


.hero-art-main img {
  height: 100%;

  object-fit: cover;

  transition:
    transform 1.2s var(--ease);
}


.hero:hover
.hero-art-main img {
  transform: scale(1.025);
}


.hero-art-frame {
  position: absolute;

  left: 2%;
  bottom: 50px;

  width: 190px;
  height: 230px;

  overflow: hidden;

  border: 13px solid white;

  background: #ddd;

  box-shadow:
    0 25px 60px
    rgba(0,0,0,.14);

  z-index: 3;
}


.hero-art-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


.hero-number {
  position: absolute;

  right: 0;
  bottom: 5px;

  font-family: var(--serif);

  font-size: 110px;

  line-height: 1;

  color: rgba(0,0,0,.07);
}


/* =========================================================
   INTRO
========================================================= */

.intro {
  padding: 155px 0;

  background: var(--white);
}


.intro-inner {
  max-width: 920px;

  margin: auto;

  text-align: center;
}


.intro h2 {
  margin: 0;
}


.intro h2 em {
  color: var(--accent);
}


.intro p {
  max-width: 620px;

  margin: 35px auto 0;

  color: var(--soft-ink);

  font-size: 15px;

  line-height: 2;
}


/* =========================================================
   GALERIE
========================================================= */

.gallery-section {
  padding: 150px 0;

  background: var(--paper);
}


.gallery-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 65px;
}


.gallery-heading p {
  max-width: 320px;

  margin: 0;

  color: var(--soft-ink);

  font-size: 13px;
}


/* =========================================================
   FILTRY
========================================================= */

.filters {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 42px;
}


.filter-button {
  padding: 11px 18px;

  border: 1px solid var(--line);

  background: transparent;

  color: var(--soft-ink);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 1.4px;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background .3s ease,
    color .3s ease,
    border .3s ease;
}


.filter-button:hover,
.filter-button.active {
  border-color: var(--ink);

  background: var(--ink);

  color: white;
}


/* =========================================================
   GALERIE GRID
========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}


.art-card {
  position: relative;
  display: block;

  width: 100%;

  aspect-ratio: 3 / 4;

  overflow: hidden;

  background: #ddd;

  cursor: pointer;

  opacity: 1;

  transform: scale(1);

  transition:
    opacity .35s ease,
    transform .35s ease;
}


.art-card.hidden {
  display: none;
}


.art-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 1s var(--ease);
}


/* =========================================================
   NAČÍST DALŠÍ
========================================================= */

.gallery-loadmore {
  display: flex;

  justify-content: center;

  margin-top: 50px;
}

.gallery-loadmore.hidden {
  display: none;
}


.art-card:hover img {
  transform: scale(1.045);
}


.art-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  padding: 30px;

  background:
    linear-gradient(
      transparent 45%,
      rgba(0,0,0,.65)
    );

  color: white;

  opacity: 0;

  transition:
    opacity .5s ease;
}


.art-card:hover
.art-overlay {
  opacity: 1;
}


.art-category {
  margin-bottom: 6px;

  font-size: 8px;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: rgba(255,255,255,.7);
}


.art-name {
  font-family: var(--serif);

  font-size: 28px;
}


.art-year {
  margin-top: 4px;

  color: rgba(255,255,255,.7);

  font-size: 9px;
}



/* =========================================================
   FOTKY Z VERNISÁŽE
========================================================= */

.vernisaz-section {
  margin-top: 70px;
}

.vernisaz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;

  margin-top: 24px;
}

.vernisaz-photo {
  overflow: hidden;

  aspect-ratio: 4 / 3;

  cursor: pointer;

  background: #ddd;
}

.vernisaz-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .5s ease;
}

.vernisaz-photo:hover img {
  transform: scale(1.05);
}

@media (max-width: 780px) {

  .vernisaz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
  position: fixed;

  inset: 0;

  z-index: 300;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background:
    rgba(12,12,12,.94);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .4s ease,
    visibility .4s ease;
}


.lightbox.active {
  opacity: 1;
  visibility: visible;
}


.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;

  width: auto;
  height: auto;

  object-fit: contain;
}


.lightbox-close {
  position: absolute;

  top: 25px;
  right: 30px;

  width: 45px;
  height: 45px;

  border: 1px solid rgba(255,255,255,.3);

  background: transparent;

  color: white;

  font-size: 22px;

  cursor: pointer;
}


.lightbox-arrow {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  z-index: 1;

  display: none;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;

  background: transparent;

  color: white;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition:
    background .3s ease,
    border-color .3s ease;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
}

.lightbox.has-nav .lightbox-arrow {
  display: flex;
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

@media (max-width: 600px) {

  .lightbox-arrow {
    width: 40px;
    height: 40px;

    font-size: 18px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

}


/* =========================================================
   VÝSTAVY
========================================================= */

.exhibitions {
  padding: 150px 0;

  background: var(--white);
}


.exhibition-heading {
  max-width: 760px;

  margin-bottom: 70px;
}


.exhibition-heading h2 {
  margin-top: 25px;
}


.exhibition-list {
  border-top:
    1px solid var(--line);
}


.exhibition {
  display: grid;

  grid-template-columns:
    180px
    1fr
    180px
    1fr;

  grid-template-areas:
    "num title date loc";

  gap: 40px;

  align-items: center;

  padding: 38px 0;

  border-bottom:
    1px solid var(--line);

  transition:
    padding .5s var(--ease),
    background .4s ease;
}


.exhibition:hover {
  padding-left: 20px;
  padding-right: 20px;

  background: var(--cream);
}


.exhibition-number {
  grid-area: num;

  color: var(--accent);

  font-family: var(--serif);

  font-size: 28px;
}


.exhibition-date {
  grid-area: date;

  color: var(--ink);

  font-size: 12px;

  line-height: 1.7;
}


.exhibition h3 {
  grid-area: title;

  font-size: 30px;
}


.exhibition-location {
  grid-area: loc;

  color: var(--soft-ink);

  font-size: 12px;

  line-height: 1.7;
}


.exhibition-link {
  justify-self: end;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 1.3px;

  text-transform: uppercase;
}


.exhibition-link span {
  display: inline-block;

  margin-left: 7px;

  font-size: 15px;

  transition:
    transform .4s var(--ease);
}


.exhibition:hover
.exhibition-link span {
  transform: translateX(5px);
}


/* =========================================================
   O AUTOROVI
========================================================= */

.about {
  padding: 150px 0;

  background: var(--cream);
}


.about-grid {
  display: grid;

  grid-template-columns: .85fr 1.15fr;

  gap: 100px;

  align-items: center;
}


.about-eyebrow-mobile {
  display: none;
}


.about-image {
  position: relative;

  height: 650px;
}


.about-image img {
  height: 100%;

  object-fit: cover;

  filter: grayscale(20%);
}


.about-image::before {
  content: "";

  position: absolute;

  top: -22px;
  left: -22px;

  width: 120px;
  height: 120px;

  border:
    1px solid var(--accent);

  z-index: 2;
}


.about-image::after {
  content: "";

  position: absolute;

  right: -22px;
  bottom: -22px;

  width: 120px;
  height: 120px;

  border:
    1px solid var(--accent);
}


.about-copy h2 {
  margin:
    25px
    0
    30px;
}


.about-copy h2 em {
  color: var(--accent);
}


.about-copy p {
  max-width: 570px;

  color: var(--soft-ink);

  font-size: 14px;

  line-height: 2;
}


.signature {
  margin-top: 35px;

  font-family: var(--serif);

  font-size: 32px;

  font-style: italic;

  color: var(--accent);
}


.about-copy .button {
  margin-top: 70px;
}


/* =========================================================
   CTA
========================================================= */

.contact {
  padding: 170px 0;

  background: var(--ink);

  color: white;

  overflow: hidden;
}


.contact::after {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  left: -250px;
  bottom: -250px;

  border-radius: 50%;

  background:
    rgba(185,130,104,.09);

  filter: blur(60px);
}


.contact-inner {
  position: relative;

  z-index: 2;

  max-width: 900px;

  margin: auto;

  text-align: center;
}


.contact .eyebrow {
  justify-content: center;

  color: #d4a68f;
}


.contact h2 {
  margin: 30px 0;

  font-size: clamp(
    55px,
    8vw,
    100px
  );
}


.contact h2 em {
  color: #d4a68f;
}


.contact p {
  max-width: 520px;

  margin:
    0 auto
    35px;

  color: rgba(255,255,255,.65);

  font-size: 14px;
}


.contact .button {
  border-color: white;

  background: white;

  color: var(--ink);
}


.contact .button:hover {
  background: transparent;

  color: white;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 45px 0 25px;

  background: #111;

  color: white;
}


.footer-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding-bottom: 35px;

  border-bottom:
    1px solid rgba(255,255,255,.12);
}


.footer-logo {
  display: flex;

  align-items: center;

  gap: 12px;
}


.footer-logo .logo-symbol {
  border-color:
    rgba(255,255,255,.5);
}


.footer-logo .logo-subtitle {
  color:
    rgba(255,255,255,.4);
}


.footer-address {
  margin-top: 4px;

  color:
    rgba(255,255,255,.4);

  font-size: 12px;
}


.footer-links {
  display: flex;

  gap: 25px;
}


.footer-links a {
  color:
    rgba(255,255,255,.55);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 1px;
}


.footer-links a:hover {
  color: white;
}


.footer-bottom {
  display: flex;

  justify-content: space-between;

  padding-top: 20px;

  color:
    rgba(255,255,255,.35);

  font-size: 8px;
}


/* =========================================================
   REVEAL ANIMACE
========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(35px);

  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
}


.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


.delay-1 {
  transition-delay: .1s;
}


.delay-2 {
  transition-delay: .2s;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

  .nav-links,
  .nav-button {
    display: none;
  }


  .menu-button {
    display: block;
  }


  .hero {
    padding:
      150px
      0
      90px;
  }


  .hero-grid {
    grid-template-columns: 1fr;

    gap: 70px;
  }


  .hero-copy {
    text-align: center;
  }


  .hero-copy .eyebrow {
    justify-content: center;
  }


  .hero-title span {
    margin-left: 0;
  }


  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }


  .hero-meta {
    justify-content: center;
  }


  .hero-art {
    height: 600px;
  }


  .hero-art-main {
    right: auto;
    left: 50%;

    transform: translateX(-50%);
  }


  .gallery-heading {
    display: block;
  }


  .gallery-heading p {
    margin-top: 20px;
  }


  .about-grid {
    grid-template-columns: 1fr;

    gap: 70px;
  }


  .about-eyebrow-mobile {
    display: flex;

    margin-bottom: 10px;
  }


  .about-copy .eyebrow {
    display: none;
  }


  .exhibition {
    grid-template-columns:
      70px
      1fr
      1fr;

    grid-template-areas:
      "num title title"
      "num date loc";
  }


  .exhibition-link {
    display: none;
  }

}


@media (max-width: 720px) {

  .container {
    width:
      calc(100% - 30px);
  }


  h1 {
    font-size:
      clamp(
        55px,
        16vw,
        80px
      );
  }


  h2 {
    font-size:
      clamp(
        43px,
        12vw,
        64px
      );
  }


  .hero-art {
    height: 500px;
  }


  .hero-art-main {
    width: 82%;
  }


  .hero-art-frame {
    width: 135px;
    height: 170px;

    border-width: 9px;
  }


  .intro,
  .gallery-section,
  .exhibitions,
  .about {
    padding:
      95px 0;
  }


  .gallery {
    gap: 15px;
  }


  .art-overlay {
    display: none;
  }


  .exhibition {
    grid-template-columns: 90px 1fr;

    grid-template-areas:
      "num title"
      "num date"
      "num loc";

    gap: 20px;

    padding: 30px 0;
  }


  .exhibition-number {
    font-size: 15px;

    line-height: 1.3;
  }


  .exhibition h3 {
    font-size: 25px;
  }


  .about-image {
    height: auto;
  }


  .about-image img {
    height: auto;

    object-fit: contain;
  }


  .contact {
    padding:
      110px 0;
  }


  .footer-top,
  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }


  .footer-links {
    flex-wrap: wrap;
  }

}
