/* Robert Chyba: one stylesheet for the four pages, after reference/navrh.png. Headings in
   Urbanist, text in Figtree; both with Czech characters, from assets/fonts/. */

@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(assets/fonts/urbanist-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(assets/fonts/urbanist-normal-latin.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: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/figtree-normal-latin.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;
}

:root {
  --color-page: #ffffff;
  --color-band: #f2f2f1;
  --color-heading: #111111;
  --color-text: #555555;
  --color-muted: #6f6f6f;
  --color-line: #e6e6e6;
  --color-field: #cfcfcf;
  /* The orange of the design (#d56601) carries white text only at 3.6:1, so buttons and orange
     text use a deeper shade; the design's orange stays for lines and decoration. */
  --color-accent: #d56601;
  --color-accent-strong: #b35c00;
  --color-accent-dark: #924b00;
  --color-dark: #262626;
  --color-error: #b3261e;

  --font-display: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --page-width: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-gap: clamp(64px, 8vw, 112px);
  --grid-gap: clamp(16px, 2vw, 28px);
  --header-height: 88px;
}

/* Base */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* Anchored sections stop below the fixed header. */
  scroll-padding-top: calc(var(--header-height) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-heading);
  color: #ffffff;
  text-decoration: none;
}

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

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

/* Every block keeps its content in the same 1200px column, so the page never stretches
   across a wide screen; only the photos that are meant to run edge to edge leave it. */
.container {
  width: min(100% - 2 * var(--gutter), var(--page-width));
  margin-inline: auto;
}

/* Shared pieces */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: 0;
  background: var(--color-accent-strong);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--color-accent-dark);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* The short orange line after every section label. */
.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-title {
  font-size: clamp(2.75rem, 5vw, 4rem);
}

.page-lead {
  margin-top: 16px;
  font-size: 1.125rem;
}

/* Photo cards: the photo, then the name and an arrow on one line. */
.photo-card {
  display: block;
  color: var(--color-heading);
  text-decoration: none;
}

.photo-card__image {
  overflow: hidden;
  background: var(--color-band);
}

.photo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Tall photos in landscape frames keep the faces, which sit in their upper part. */
.photo-card__image .is-top,
.gallery__photo .is-top {
  object-position: 50% 28%;
}

.photo-card:hover .photo-card__image img {
  transform: scale(1.03);
}

.photo-card__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.photo-card__caption h2,
.photo-card__caption h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.photo-card__arrow {
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.photo-card:hover .photo-card__arrow {
  transform: translateX(4px);
}

/* Header */

/* The header stays at the top while the page scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-page);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-height);
}

.brand {
  display: block;
  flex-shrink: 0;
  width: clamp(190px, 18vw, 240px);
}

.brand img {
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
}

/* The client section is the one link visitors with a code look for, so it stands apart in orange. */
.main-nav .main-nav__client {
  margin-left: 24px;
  color: var(--color-accent-strong);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-heading);
  transition: transform 0.2s;
}

.menu-toggle span::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--color-heading);
  transition: transform 0.2s, top 0.2s;
}

.menu-toggle[aria-expanded='true'] span {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span::before {
  top: 0;
  transform: rotate(-90deg);
}

/* Home: hero */

.hero {
  position: relative;
  height: clamp(460px, 72vh, 760px);
  overflow: hidden;
  background: var(--color-dark);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}

/* A shade from the bottom left keeps the white heading readable over the bright sky. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 60%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0) 60%);
}

.hero__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding-bottom: clamp(48px, 9vh, 96px);
}

.hero__title {
  margin-bottom: 32px;
  color: #ffffff;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.08;
}

/* Home: portfolio */

.portfolio {
  padding-top: var(--section-gap);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.portfolio__grid .photo-card__image {
  aspect-ratio: 27 / 25;
}

/* Home: about */

.about {
  padding-top: var(--section-gap);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.about__image {
  aspect-ratio: 6 / 5;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.about__text {
  padding-top: 8px;
}

.about__text h3 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.about__text p {
  max-width: 34em;
  margin-bottom: 32px;
}

/* Home: questions */

.faq {
  padding-top: var(--section-gap);
}

.faq__list {
  border-top: 1px solid var(--color-line);
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--color-heading);
  font-size: 1.125rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--color-accent-strong);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

/* While an answer slides shut, the cross already turns back into a plus. */
.faq__item.is-closing summary::after {
  transform: none;
}

.faq__item p {
  max-width: 46em;
  padding-bottom: 24px;
}

/* Home: the landscape strip before the footer runs edge to edge, as in the design. */
.landscape-strip {
  height: clamp(160px, 16vw, 260px);
  margin-top: var(--section-gap);
  overflow: hidden;
}

.landscape-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Category */

.page-intro {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.page-intro .page-lead {
  max-width: 34em;
}

.albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) var(--grid-gap);
}

.albums .photo-card__image {
  aspect-ratio: 3 / 2;
}

.pricing {
  padding-top: var(--section-gap);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--color-line);
  background: var(--color-page);
}

/* The middle package is the one most couples take, so it is set apart in the dark footer colour. */
.price-card--featured {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: #d6d6d6;
}

.price-card--featured h3,
.price-card--featured .price-card__price {
  color: #ffffff;
}

.price-card h3 {
  font-size: 1.5rem;
}

.price-card__price {
  margin: 8px 0 24px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1.1;
}

.price-card__price span {
  font-size: 0.5em;
}

.price-card ul {
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding: 6px 0 6px 22px;
}

.price-card li::before {
  content: '';
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}

.price-card__bonus {
  margin: 24px 0;
  padding: 16px 0;
  border-block: 1px solid var(--color-line);
  color: var(--color-heading);
}

.price-card--featured .price-card__bonus {
  border-color: #444444;
  color: #ffffff;
}

.price-card__or {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.price-card--featured .price-card__or {
  color: #b8b8b8;
}

.price-card__extra {
  margin-bottom: 28px;
  font-size: 1rem;
}

/* The buttons sit at the bottom of every card, however long its list. */
.price-card .button {
  margin-top: auto;
}

.pricing__note {
  margin-top: 32px;
  color: var(--color-heading);
  text-align: center;
}

.call-to-action {
  margin-top: var(--section-gap);
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--color-band);
  text-align: center;
}

.call-to-action p {
  margin-bottom: 28px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
}

/* Album */

.album-intro .page-lead {
  margin-top: 8px;
  color: var(--color-muted);
}

.client-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--color-band);
  color: var(--color-heading);
}

.client-banner a {
  color: var(--color-accent-strong);
  font-weight: 500;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery__row {
  display: grid;
  gap: 10px;
}

.gallery__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery__row--wide {
  grid-template-columns: 5fr 3fr;
}

.gallery__row--mixed {
  grid-template-columns: 4fr 5fr 4fr;
}

.gallery__photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-band);
}

.gallery__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery__photo:hover img {
  transform: scale(1.02);
}

/* Each row takes its height from its first photo; the others fill the same height, so their own
   proportions must not push the row taller. */
.gallery__row .gallery__photo:not(:first-child) img {
  position: absolute;
  inset: 0;
}

.gallery__photo--cover {
  aspect-ratio: 2 / 1;
}

.gallery__row--three .gallery__photo {
  aspect-ratio: 4 / 3;
}

.gallery__row--wide .gallery__photo:first-child {
  aspect-ratio: 2 / 1;
}

.gallery__row--mixed .gallery__photo:first-child {
  aspect-ratio: 15 / 16;
}

.gallery__expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-heading);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery__photo:hover .gallery__expand,
.gallery__photo:focus-visible .gallery__expand {
  opacity: 1;
}

.next-story {
  padding: clamp(48px, 6vw, 80px) 0 var(--section-gap);
  text-align: center;
}

.next-story a {
  display: inline-flex;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-heading);
  font-weight: 500;
  text-decoration: none;
}

.next-story a:hover {
  color: var(--color-accent-strong);
}

/* The album page ends right after the gallery for a single photo series. */
.album-page--single .gallery {
  margin-bottom: var(--section-gap);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 12, 0.96);
  color: #ffffff;
}

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

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 72px 88px 32px;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
}

.lightbox__figure figcaption {
  color: #d6d6d6;
  font-size: 0.9375rem;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.lightbox__download {
  color: #ffffff;
  font-size: 0.9375rem;
  text-underline-offset: 4px;
}

/* Client section */

.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
  text-align: center;
}

.client__symbol {
  width: 72px;
  margin-bottom: 32px;
}

.client__lead {
  margin-top: 20px;
  color: var(--color-heading);
  font-size: 1.25rem;
}

.client__form {
  width: min(100%, 520px);
  margin-top: 48px;
  text-align: left;
}

.client__form label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-heading);
  font-weight: 500;
}

.client__form input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--color-field);
  border-radius: 0;
  background: #ffffff;
  color: var(--color-heading);
  font-size: 1.0625rem;
}

.client__form input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.client__form input:focus {
  border-color: var(--color-accent-strong);
  outline: 1px solid var(--color-accent-strong);
  outline-offset: 0;
}

.client__form input[aria-invalid='true'] {
  border-color: var(--color-error);
}

.client__error {
  min-height: 1.6em;
  margin-top: 8px;
  color: var(--color-error);
  font-size: 0.9375rem;
}

.client__form .button {
  display: flex;
  width: min(100%, 320px);
  margin: 16px auto 0;
}

.client__help {
  margin-top: 28px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--color-accent);
  background: none;
  color: var(--color-accent-strong);
  font-weight: 500;
  cursor: pointer;
}

.client__help-text {
  max-width: 30em;
  margin-top: 16px;
  font-size: 1rem;
}

.client__help-text a {
  color: var(--color-accent-strong);
}

/* The black and white landscape fades in from the white page above it, as in the design. */
.client-landscape {
  position: relative;
  height: clamp(220px, 26vw, 400px);
  margin-top: clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.client-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  filter: grayscale(1);
}

.client-landscape::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 40%;
  background: linear-gradient(var(--color-page), rgba(255, 255, 255, 0));
}

/* Footer */

.site-footer {
  padding: clamp(56px, 6vw, 72px) 0 28px;
  background: var(--color-dark);
  color: #d6d6d6;
}

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}

.site-footer .brand {
  margin-bottom: 16px;
}

.site-footer__claim {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.site-footer__nav ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Copyright, terms and credit in one line, separated by bullets. */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding-top: 24px;
  border-top: 1px solid #444444;
  font-size: 0.875rem;
}

/* An inline block keeps the bullet out of the link's hover underline. */
.site-footer__bottom > * + *::before {
  content: '•';
  display: inline-block;
  margin-right: 12px;
  color: #8a8a8a;
}

.site-footer__terms {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* The links in the bottom line keep the colour of its text. */
.site-footer__credit a {
  color: inherit;
}

/* Like the other footer links, both are underlined only on hover. */
.site-footer__terms:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Dialogs: contact and terms */

.dialog {
  width: min(100% - 32px, 520px);
  padding: clamp(32px, 5vw, 48px);
  border: 0;
  background: var(--color-page);
  color: var(--color-text);
}

.dialog::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

.dialog__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.dialog h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--color-heading);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

/* Tablet */

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: calc(-1 * var(--gutter));
    left: calc(-1 * var(--gutter));
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-page);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
  }

  .main-nav .main-nav__client {
    margin-left: 0;
  }

  .pricing__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

/* Phone */

@media (max-width: 760px) {
  .portfolio__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio__grid .photo-card__image {
    aspect-ratio: 4 / 3;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .albums {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery__row--three,
  .gallery__row--mixed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__row--three .gallery__photo:last-child,
  .gallery__row--mixed .gallery__photo:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
  }

  .gallery__row--mixed .gallery__photo:first-child {
    aspect-ratio: 3 / 4;
  }

  .gallery__row--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery__row--wide .gallery__photo:first-child {
    aspect-ratio: 3 / 2;
  }

  .gallery__row--wide .gallery__photo:last-child {
    aspect-ratio: 3 / 2;
  }

  .gallery__photo--cover {
    aspect-ratio: 3 / 2;
  }

  .lightbox__figure {
    padding: 72px 16px 88px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .site-footer__main {
    flex-direction: column;
  }

  /* The line does not fit a phone, so the credit moves to its own line without a bullet. */
  .site-footer__credit {
    flex-basis: 100%;
    text-align: center;
  }

  .site-footer__bottom > .site-footer__credit::before {
    content: none;
  }
}
