/* Monika Žáková: site styles
   Breakpoints: tablet < 992px, mobile < 768px (same as the old Brizy site). */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */

@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/red-hat-text-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/red-hat-text-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Red Hat Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/red-hat-text-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/red-hat-text-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Red Hat Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/red-hat-text-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/red-hat-text-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "DM Serif Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-text-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-text-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens & base ---------- */

:root {
  --navy: #061726;
  --slate: #5b6067;
  --blue: #1176c1;
  --pink: #edb2cb;
  --blush: #fbf1fa;
  --instagram: #f73a84;
  --linkedin: #0a66c2;
  --serif: "DM Serif Text", Georgia, "Times New Roman", serif;
  --sans: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

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

h1, h2, h3, p, ul, dl, dd, figure, blockquote {
  margin: 0;
}

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

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

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 15px;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
}

.skip-link:focus {
  top: 15px;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: 15px;
}

/* Full-bleed background photo behind a section's content */
.section-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1.5px;
}

.title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -1px;
}

.muted {
  color: var(--slate);
}

@media (max-width: 991px) {
  /* DM Serif Text has no bold; the browser synthesises it, as on the old site */
  .display { font-size: 40px; font-weight: 600; }
  .title { font-size: 35px; line-height: 1.2; }
}

@media (max-width: 767px) {
  .display { font-size: 36px; }
  .title { font-size: 29px; line-height: 1.3; letter-spacing: -0.5px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
  text-align: center;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Solid navy: "Download Portfolio as PDF", "Buy Online" */
.btn--dark {
  background: var(--navy);
  color: #fff;
}

/* Outlined pill: media links on the CV page */
.btn--pill {
  gap: 14px;
  padding: 14px 44px;
  border-color: var(--navy);
  border-radius: 100px;
  color: var(--navy);
  font-weight: 700;
}

.btn--pill svg {
  width: 12px;
  height: 12px;
}

.btn--pill:hover {
  color: var(--blue);
}

@media (max-width: 991px) {
  .btn { font-size: 14px; line-height: 22.4px; }
  .btn--pill { gap: 10px; padding: 12px 20px; font-weight: 500; }
}

/* ---------- Header ---------- */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1170px, 100% - 30px);
  min-height: 177px;
  margin-inline: auto;
  padding-block: 40px 44px;
}

.brand img {
  width: 352px;
}

.site-nav ul {
  display: flex;
  gap: 10px;
  margin-right: 15px;
}

.site-nav a,
.footer-nav a {
  display: block;
  padding: 0 5px;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
}

.menu-toggle {
  display: none;
  padding: 8px;
  margin-right: -8px;
  color: #000;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 991px) {
  .site-header__inner {
    min-height: 142px;
    padding-block: 15px;
  }
  .brand img { width: 424px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; margin-right: 23px; }
  .menu-toggle svg { width: 24px; height: 24px; }
}

@media (max-width: 767px) {
  .site-header__inner { min-height: 111px; }
  .brand img { width: 294px; }
  .menu-toggle { margin-right: 12px; }
  .menu-toggle svg { width: 32px; height: 32px; }
}

@media (max-width: 359px) {
  .brand img { width: 240px; }
}

/* Off-canvas menu (tablet & mobile) */
.mobile-menu {
  width: 80%;
  max-width: 440px;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #333;
  color: #fff;
  transition: translate 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
  translate: 100% 0;
}

.mobile-menu[open] {
  translate: 0 0;
}

@starting-style {
  .mobile-menu[open] {
    translate: 100% 0;
  }
}

.mobile-menu::backdrop {
  background: rgba(0, 0, 0, 0.3);
}

.mobile-menu__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

.mobile-menu__close {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.mobile-menu__close svg {
  width: 18px;
  height: 18px;
}

.mobile-menu a {
  display: block;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* ---------- Carousel (shared) ---------- */

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.carousel__track {
  --per-view: 1;
  display: flex;
  transform: translateX(calc(var(--index, 0) * -100% / var(--per-view) + var(--drag, 0px)));
  transition: transform 0.5s ease;
}

.carousel__track > * {
  flex: 0 0 calc(100% / var(--per-view));
  min-width: 0;
}

.carousel__arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  place-items: center;
  translate: 0 -50%;
  transition: opacity 0.2s;
}

.carousel__arrow:hover {
  opacity: 0.8;
}

.carousel__dots {
  display: flex;
  justify-content: center;
}

/* 10px dot inside a 24px tap target */
.carousel__dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.carousel__dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.carousel__dots button[aria-current="true"]::before {
  background: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

/* ---------- Home: hero ---------- */

.hero {
  height: 760px;
  background: #d9dcdf;
}

.hero .carousel,
.hero .carousel__viewport,
.hero .carousel__track {
  height: 100%;
}

/* Contained + repeated, so neighbouring pages of the spread peek in at the sides */
.hero__slide {
  position: relative;
  background-position: center;
  background-repeat: repeat;
  background-size: contain;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 23, 38, 0.2);
}

.hero .carousel__arrow {
  width: 42px;
  height: 32px;
  color: rgba(255, 255, 255, 0.7);
}

.hero .carousel__arrow svg {
  width: 16px;
  height: 32px;
}

.hero .carousel__prev { left: 30px; }
.hero .carousel__next { right: 30px; }

.hero .carousel__dots {
  position: absolute;
  bottom: 43px;
  left: 0;
  right: 0;
  color: #fff;
}

@media (max-width: 991px) {
  .hero { height: 533px; }
}

@media (max-width: 767px) {
  .hero { height: 266px; }
  .hero__slide { background-position: center bottom; }
}

/* ---------- Home: upcoming exhibitions ---------- */

.exhibitions {
  position: relative;
  isolation: isolate;
  padding: 63px 15px 67px;
  text-align: center;
}

.exhibitions::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}

.exhibitions .display {
  color: #000;
}

.exhibitions__list {
  max-width: 737px;
  margin: 59px auto 0;
  padding: 46px 15px 39px;
  border-radius: 10px;
  /* slate glaze over brand blue, as on the old site */
  background: linear-gradient(rgba(91, 96, 103, 0.7), rgba(91, 96, 103, 0.7)), rgba(17, 118, 193, 0.75);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.exhibitions__list li + li {
  margin-top: 24px;
}

@media (max-width: 991px) {
  .exhibitions { padding-block: 60px 50px; }
  .exhibitions__list { max-width: 498px; margin-top: 40px; padding-block: 26px 38px; letter-spacing: -0.5px; }
}

@media (max-width: 767px) {
  /* phones get a plain white section, like the old site */
  .exhibitions { padding-block: 35px 26px; }
  .exhibitions .section-bg { display: none; }
  .exhibitions::before { background: #fff; }
  .exhibitions__list {
    width: 58%;
    margin-top: 25px;
    padding: 30px 10px 43px;
    /* the glaze stops 6px short of the edges on phones, leaving blue bands */
    background:
      linear-gradient(rgba(91, 96, 103, 0.7), rgba(91, 96, 103, 0.7)) center / 100% calc(100% - 12px) no-repeat,
      rgba(17, 118, 193, 0.75);
  }
}

/* ---------- Home: story ---------- */

.story {
  padding-block: 115px 112px;
}

.story__grid {
  display: grid;
  grid-template-columns: 325px 1fr;
  gap: 65px;
}

.story__bio {
  margin-top: 21px;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}

.story__cta {
  margin-top: 49px;
  padding: 11px 26px;
  border-color: var(--blue);
  border-radius: 100px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0;
  transition-duration: 0.5s;
}

.story__cta:hover {
  border-color: rgba(6, 23, 38, 0.8);
  color: var(--navy);
}

.story__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}

.story__images img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* The two right-hand photos set the row heights. The tall photo is taken out
   of the sizing (absolutely positioned) and fills both rows; giving the images
   height: 100% instead makes Safari mis-size the rows. */
.story__tall {
  position: relative;
  grid-row: span 2;
}

.story__tall img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.story__images > img:nth-of-type(1) { aspect-ratio: 361 / 402; }
.story__images > img:nth-of-type(2) { aspect-ratio: 361 / 244; }

@media (max-width: 991px) {
  .story { padding-block: 65px 66px; }
  .story__grid { grid-template-columns: 251fr 427fr; gap: 45px; padding-inline: 45px 52px; }
  .story__bio { display: none; }
  .story__cta { margin-top: 22px; padding: 11px 26px; font-size: 16px; line-height: 25.6px; letter-spacing: 1px; }
}

@media (max-width: 767px) {
  .story { padding-block: 45px 40px; }
  .story__grid { grid-template-columns: 1fr; gap: 35px; padding-inline: 15px; }
  .story__text { padding-inline: 30px; text-align: center; }
  .story__cta { margin-top: 10px; padding: 11px 24px; font-size: 20px; line-height: 32px; }
  .story__images { width: 330px; max-width: 100%; margin-inline: auto; }
}

/* ---------- Testimonials ---------- */

.testimonials {
  padding-block: 85px 109px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.testimonials .carousel {
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: 15px;
}

.testimonials .carousel__viewport {
  max-width: 890px;
  margin-inline: auto;
}

.testimonial {
  padding-inline: 15px;
}

.testimonial__avatar {
  width: 86px;
  height: 85px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial blockquote {
  margin-top: 20px;
}

.testimonial figcaption {
  margin-top: 10px;
}

.testimonial__name {
  display: block;
  color: var(--pink);
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.testimonial__role {
  display: block;
  color: var(--blush);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.testimonials .carousel__arrow {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.7);
}

.testimonials .carousel__arrow svg {
  width: 32px;
  height: 32px;
}

.testimonials .carousel__prev { left: 30px; }
.testimonials .carousel__next { right: 30px; }

@media (max-width: 991px) {
  .testimonials { padding-block: 55px 64px; }
  .testimonials .carousel__viewport { margin-inline: 50px; }
  .testimonials .carousel__prev { left: 45px; }
  .testimonials .carousel__next { right: 45px; }
  .testimonial__avatar { width: 66px; height: 65px; }
  .testimonial blockquote { margin-top: 21px; }
  .testimonial figcaption { margin-top: 20px; }
  .testimonial__name { font-size: 18px; line-height: 27px; letter-spacing: -0.5px; }
  .testimonial__role { letter-spacing: -0.5px; }
}

@media (max-width: 767px) {
  .testimonials { padding-block: 65px 67px; }
  .testimonials .carousel { padding-inline: 0; }
  .testimonials .carousel__viewport { margin-inline: 65px; }
  .testimonials .carousel__prev { left: 28px; }
  .testimonials .carousel__next { right: 28px; }
  .testimonial { padding-inline: 10px; }
  .testimonial__avatar { width: 72px; height: 71px; }
  .testimonial blockquote { margin-top: 20px; }
  .testimonial figcaption { margin-top: 10px; }
  .testimonial__role { letter-spacing: 0; }
}

/* ---------- Home: artwork showcase ---------- */

.showcase {
  padding-block: 185px 176px;
  text-align: center;
}

.series {
  margin-top: 265px;
}

.showcase > .display + .series {
  margin-top: 116px;
}

#soft-logic {
  margin-top: 185px;
}

.series__intro {
  max-width: 704px;
  margin-inline: auto;
  padding-inline: 15px;
}

.series__intro p {
  margin-top: 20px;
  color: var(--slate);
  line-height: 1.9;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 145px;
  padding-inline: 15px;
}

.gallery--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Desktop gaps between text and photos follow the old site series by series */
#echoes-of-antifragility .gallery { margin-top: 138px; }
#soft-logic .gallery { margin-top: 125px; }
#echoes-of-fragility .gallery { margin-top: 178px; }
#zero-gravity .gallery { margin-top: 151px; gap: 50px; padding-inline: 34px; }

.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
}

/* 4-up rows are cropped to one height on larger screens; each image's
   object-position keeps the framing the old site used */
@media (min-width: 768px) {
  .gallery:not(.gallery--3) img {
    aspect-ratio: 330 / 421;
    object-fit: cover;
  }
}

@media (max-width: 991px) {
  .showcase { padding-block: 60px 55px; }
  .series { margin-top: 125px; }
  #soft-logic { margin-top: 115px; }
  .showcase > .display + .series { margin-top: 20px; }
  .series__intro { max-width: none; padding-inline: 62px; }
  .gallery,
  #soft-logic .gallery,
  #echoes-of-fragility .gallery,
  #zero-gravity .gallery { grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 90px; padding-inline: 30px; }
  #echoes-of-antifragility .gallery { grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 80px; padding-inline: 30px; }
}

@media (max-width: 767px) {
  .showcase { padding-block: 60px 55px; }
  .series { margin-top: 95px; }
  #soft-logic { margin-top: 115px; }
  .gallery,
  #echoes-of-antifragility .gallery,
  #soft-logic .gallery,
  #echoes-of-fragility .gallery,
  #zero-gravity .gallery { grid-template-columns: 1fr; gap: 20px; margin-top: 70px; padding-inline: 15px; }
  #echoes-of-antifragility .gallery,
  #zero-gravity .gallery { gap: 60px; }
  .series__intro { padding-inline: 33px; }
}

/* ---------- Home: portfolio download ---------- */

.portfolio {
  position: relative;
  isolation: isolate;
  padding: 151px 15px 110px;
  color: #fff;
  text-align: center;
}

.portfolio::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(6, 23, 38, 0.46);
}

.portfolio__title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -1px;
}

.portfolio__text {
  max-width: 830px;
  margin: 19px auto 0;
  font-size: 16px;
  line-height: 1.9;
}

.portfolio__chevron {
  width: 48px;
  height: 48px;
  margin: 26px auto 0;
}

.portfolio__download {
  margin-top: 20px;
  padding: 17px 42px;
  border-radius: 4px;
  color: var(--blush);
}

.portfolio__download:hover {
  border-color: rgba(28, 28, 28, 0.8);
  background: #fff;
  color: var(--navy);
}

@media (max-width: 991px) {
  .portfolio { padding-block: 82px 91px; }
  .portfolio__text { max-width: none; line-height: 1.6; }
  .portfolio__chevron { margin-top: 28px; }
  .portfolio__download { padding: 12px 40px; }
}

@media (max-width: 767px) {
  .portfolio { padding-block: 99px 81px; }
  .portfolio__text { display: none; }
  .portfolio__download { padding: 9px 20px; }
}

/* ---------- Home: book ---------- */

.book {
  padding-block: 150px 135px;
}

.book__heading {
  text-align: center;
}

.book__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: 127px;
}

.book__cover img {
  width: calc(100% - 15px);
  border-radius: var(--radius);
}

.book__text {
  padding: 12px 85px 0 100px;
  color: var(--slate);
}

.book__publisher {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.1px;
}

.book__text .display {
  margin-top: 19px;
  color: var(--navy);
}

.book__text p:not(.book__publisher) {
  margin-top: 20px;
  line-height: 1.9;
}

.book__buy {
  margin-top: 40px;
  padding: 12px 40px;
  border-radius: var(--radius);
}

.book__buy:hover {
  border-color: rgba(28, 28, 28, 0.8);
  background: var(--blue);
}

@media (max-width: 991px) {
  .book { padding-block: 60px 66px; }
  .book__grid { grid-template-columns: 365fr 350fr; gap: 45px; margin-top: 53px; padding-inline: 15px; }
  .book__cover img { width: 100%; }
  .book__text { padding: 0; }
  .book__text .display { margin-top: 20px; }
  .book__text p:not(.book__publisher) { margin-top: 21px; font-size: 15px; line-height: 1.6; }
  .book__buy { margin-top: 20px; padding: 9px 24px; }
}

@media (max-width: 767px) {
  .book { padding-block: 89px 45px; }
  .book__grid { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; padding-inline: 0; }
  .book__text { padding-inline: 20px; text-align: center; }
  .book__text .display { margin-top: 9px; }
  .book__text p:not(.book__publisher) { margin-top: 10px; font-size: 17px; line-height: 1.9; text-align: justify; }
  .book__buy { margin-top: 20px; padding: 12px 42px; }
}

/* ---------- Footer & social icons ---------- */

.site-footer {
  padding: 90px 15px 231px;
  text-align: center;
}

.site-footer__logo {
  width: 456px;
  max-width: 100%;
  margin-inline: auto;
}

.social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.social a {
  display: block;
  transition: opacity 0.2s;
}

.social a:hover {
  opacity: 0.8;
}

.social svg {
  width: 42px;
  height: 42px;
}

.social__instagram { color: var(--instagram); }
.social__linkedin { color: var(--linkedin); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  margin-top: 63px;
}

@media (max-width: 991px) {
  .site-footer { padding-block: 60px 54px; }
  .site-footer__logo { width: 280px; }
  .social { margin-top: 23px; }
  .footer-nav { margin-top: 58px; }
}

@media (max-width: 767px) {
  .site-footer { padding-block: 45px 36px; }
  .site-footer__logo { width: 266px; height: 129px; object-fit: contain; }
  .social { margin-top: 30px; }
  .footer-nav { gap: 0 10px; max-width: 300px; margin: 72px auto 0; }
  .footer-nav a { font-size: 14px; line-height: 24px; }
}

/* ---------- CV: intro ---------- */

.cv-intro {
  padding-block: 45px 115px;
}

.cv-intro__grid {
  display: grid;
  grid-template-columns: 1fr 555px;
  align-items: start;
  gap: 65px;
}

.cv-intro__lead {
  margin-top: 20px;
}

.cv-intro__text > :not(h1) {
  max-width: 460px;
}

.cv-block {
  margin-top: 19px;
}

.cv-block h2 + * {
  margin-top: 21px;
}

.cv-list dt {
  font-weight: 700;
}

.cv-intro__portrait {
  width: 100%;
  border-radius: var(--radius);
}

@media (max-width: 991px) {
  .cv-intro { padding-block: 65px 121px; }
  .cv-intro__grid { grid-template-columns: 1fr 286px; gap: 45px; padding-inline: 45px 37px; }
  .cv-intro__text { line-height: 1.5; }
  .cv-intro__text > :not(h1) { max-width: none; }
  .cv-block { margin-top: 20px; }
  .cv-block h2 + * { margin-top: 20px; }
}

@media (max-width: 767px) {
  .cv-intro { padding-block: 45px 73px; }
  .cv-intro__grid { grid-template-columns: 1fr; gap: 51px; width: 100%; padding-inline: 45px; }
  .cv-intro__lead { font-size: 18px; line-height: 1.6; }
  .cv-block dl,
  .cv-block ul,
  .cv-block p { font-weight: 500; }
  .cv-intro__portrait { width: calc(100% + 20px); max-width: none; margin-inline: -10px; }
}

/* ---------- CV: exhibition history ---------- */

.history {
  padding-block: 115px 143px;
}

.history__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1024px;
  margin-inline: auto;
  text-align: center;
}

.history .cv-list {
  margin-top: 21px;
  padding-inline: 25px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 991px) {
  .history { padding-block: 65px; }
  .history__grid { max-width: 711px; gap: 29px; padding-inline: 15px; }
  .history .cv-list { margin-top: 20px; padding-inline: 0; line-height: 1.6; }
}

@media (max-width: 767px) {
  .history { padding-block: 75px 45px; }
  .history__grid { grid-template-columns: 1fr; gap: 40px; padding-inline: 43px; }
  .history .cv-list { padding-inline: 0; font-size: 16px; font-weight: 500; line-height: 1.6; text-align: left; }
}

/* ---------- CV: media carousel ---------- */

.media {
  padding-block: 91px 83px;
  text-align: center;
}

.media .carousel {
  max-width: 1032px;
  margin: 94px auto 0;
}

.media .carousel__track {
  --per-view: 3;
  align-items: flex-start;
}

.media-card {
  padding-inline: 15px;
  text-align: left;
}

.media-card img {
  width: 100%;
  aspect-ratio: 314 / 236;
  object-fit: cover;
}

.media-card p {
  margin-top: 20px;
  color: var(--slate);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.media-card .btn {
  margin-top: 20px;
}

.media .carousel__arrow {
  width: 32px;
  height: 32px;
  color: #000;
}

.media .carousel__arrow svg {
  width: 20px;
  height: 36px;
}

.media .carousel__prev { left: -40px; }
.media .carousel__next { right: -40px; }

.media .carousel__dots {
  margin-top: 38px;
  color: #000;
}

@media (max-width: 1119px) {
  .media .carousel { max-width: calc(100% - 90px); }
}

@media (max-width: 991px) {
  .media { padding-block: 60px 63px; }
  .media .carousel { max-width: calc(100% - 30px); margin-top: 93px; }
  .media .carousel__track { --per-view: 2; }
  .media .carousel__prev { left: 30px; }
  .media .carousel__next { right: 30px; }
  .media .carousel__dots { margin-top: 28px; }
}

@media (max-width: 767px) {
  .media { padding-block: 60px 48px; }
  .media .title { padding-inline: 15px; }
  .media .carousel { max-width: 100%; margin-top: 76px; }
  .media .carousel__track { --per-view: 1; }
  .media-card .btn { display: flex; width: fit-content; margin-inline: auto; }
  .media .carousel__arrow { top: 135px; color: #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5)); }
  .media .carousel__prev { left: 30px; }
  .media .carousel__next { right: 30px; }
  .media .carousel__dots { margin-top: 33px; }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  padding-block: 180px 80px;
}

.contact .section-bg {
  object-position: 100% 0;
}

.contact__inner {
  width: min(1170px, 100% - 30px);
  margin-inline: auto;
}

.contact__card {
  width: 58.2%;
  padding: 60px 68px;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.95);
}

.contact__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.contact__text {
  margin-top: 10px;
  color: var(--slate);
}

.contact__email {
  margin-top: 50px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.contact__email a:hover {
  color: var(--blue);
}

.contact__label {
  margin-top: 59px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.1px;
}

.contact .social {
  justify-content: flex-start;
  margin-top: 20px;
}

.contact .social svg {
  width: 74px;
  height: 74px;
}

@media (max-width: 991px) {
  .contact { padding-block: 100px 40px; }
  .contact__inner { width: calc(100% - 50px); }
  .contact__card { width: 490px; max-width: 100%; padding: 70px 20px 55px; border-radius: 6px; }
  .contact__title { font-size: 27px; line-height: 1.3; }
  .contact__text { line-height: 1.5; }
  .contact__email { margin-top: 39px; }
  .contact__label { margin-top: 30px; }
  .contact .social { margin-top: 10px; }
}

@media (max-width: 767px) {
  .contact { padding-block: 80px 52px; }
  .contact__card { width: 69%; min-width: 260px; padding: 20px 35px 25px; }
  .contact__title { font-size: 23px; line-height: 1.3; }
  .contact__text { margin-top: 10px; font-size: 18px; line-height: 1.6; }
  .contact__email { margin-top: 25px; }
  .contact__label { margin-top: 30px; }
  .contact .social { margin-top: 20px; }
}

/* ---------- 404 ---------- */

.not-found {
  padding: 60px 15px 20px;
  text-align: center;
}

.not-found p {
  margin-top: 20px;
  color: var(--slate);
}

.not-found .btn {
  margin-top: 40px;
  padding: 12px 40px;
  border-radius: var(--radius);
}

.not-found .btn:hover {
  background: var(--blue);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 11, 11, 0.92);
  color: #fff;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 50px 70px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 100px); /* the stage's vertical padding */
  max-height: calc(100dvh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  opacity: 1;
}

.lightbox__close {
  top: 6px;
  right: 6px;
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__arrow {
  top: 50%;
  width: 60px;
  height: 90px;
  translate: 0 -50%;
}

.lightbox__arrow svg {
  width: 20px;
  height: 40px;
}

.lightbox__prev { left: 5px; }
.lightbox__next { right: 5px; }

.lightbox__counter {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  pointer-events: none;
  color: #ccc;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 767px) {
  .lightbox__stage { padding: 50px 10px; }
  .lightbox__arrow { top: auto; bottom: 0; translate: none; height: 50px; }
}
