header .logo {
  width: 236px;
  height: 94px;
}

footer {
  padding: 20px 0 12px;
}

footer .footer-grid {
  gap: 16px;
}

footer .footer-grid img {
  width: 156px;
  max-height: 76px;
}

footer .footer-grid p {
  margin: 3px 0;
  line-height: 1.55;
}

footer .footer-copyright {
  margin: 10px 0 0;
  padding: 8px 16px 0;
  border-top: 1px solid #ffffff20;
  border-bottom: 0;
}

.portfolio-page header {
  padding-block: 10px;
}

.portfolio-page header img {
  width: 205px;
  height: 84px;
}

.portfolio-page footer {
  padding: 14px 6%;
}

.portfolio-category {
  aspect-ratio: 1080 / 1350;
}

.portfolio-category img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.photo-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  background: var(--frame-photo) center / cover no-repeat;
  filter: blur(19px);
}

.about-images .photo-frame {
  position: absolute;
  border-radius: 2px;
  border: 0;
}

.about-images img,
.package-photo img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: contain !important;
}

#home .hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 63%;
}

#home .hero-img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  filter: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.gallery-preview .section-head {
  margin-bottom: clamp(24px, 4vw, 46px);
}

.gallery-collage {
  max-width: 890px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, 1fr);
  gap: clamp(5px, 1.05vw, 13px);
  aspect-ratio: 10 / 9;
}

.gallery-collage figure {
  margin: 0;
}

.gallery-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collage-copy {
  grid-area: 1 / 2 / 5 / 6;
  display: grid;
  align-content: center;
  padding: clamp(14px, 3vw, 36px);
  background: #eee3d8;
}

.collage-copy h3 {
  margin: 0;
  font: 400 clamp(25px, 3.4vw, 48px)/1.04 Italiana, Georgia, serif;
}

.collage-copy p {
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.55;
  margin: 11px 0 0;
}

.collage-feature { grid-area: 2 / 6 / 7 / 13; }
.collage-wide { grid-area: 5 / 1 / 7 / 6; }
.collage-tall { grid-area: 7 / 2 / 11 / 5; }
.collage-detail { grid-area: 7 / 5 / 10 / 9; }
.collage-pair { grid-area: 7 / 9 / 11 / 12; }

.gallery-preview-action {
  margin-top: clamp(22px, 4vw, 39px);
  text-align: center;
}

.gallery-page .grid,
.portfolio-page .grid {
  display: block;
  columns: 3;
  column-gap: 16px;
}

.gallery-page .grid button,
.portfolio-page .grid figure {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  overflow: hidden;
  background: transparent;
}

.gallery-page .grid img,
.portfolio-page .grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.gallery-page dialog img,
.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75dvh;
  vertical-align: middle;
}

@media (max-width: 850px) {
  header .logo {
    width: 200px;
    height: 80px;
  }

  #home .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
  }

  #home .hero-img {
    height: auto;
  }

  .gallery-page .grid,
  .portfolio-page .grid {
    columns: 2;
    column-gap: 12px;
  }

  .gallery-page .grid button,
  .portfolio-page .grid figure {
    margin-bottom: 12px;
  }
}

@media (max-width: 540px) {
  .gallery-collage {
    grid-template-rows: auto repeat(10, minmax(18px, 7vw));
    aspect-ratio: auto;
  }

  .collage-copy { grid-area: 1 / 1 / 2 / 13; }
  .collage-feature { grid-area: 2 / 5 / 7 / 13; }
  .collage-wide { grid-area: 4 / 1 / 7 / 5; }
  .collage-tall { grid-area: 7 / 1 / 12 / 5; }
  .collage-detail { grid-area: 7 / 5 / 11 / 9; }
  .collage-pair { grid-area: 7 / 9 / 12 / 13; }

  .portfolio-page header img {
    width: 175px;
    height: 72px;
  }
}

@media (max-width: 360px) {
  header .logo {
    width: 170px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-collage img {
    animation: collage-appear .45s ease both;
  }

  @keyframes collage-appear {
    from { opacity: .45; }
  }
}

body:has(#home) > header {
  position: relative;
  background: #f3f0eb;
}

body:has(#home) > header nav {
  height: 100px;
}

#home {
  padding-top: 0;
}

#home .hero-inner {
  padding-block: 28px 45px;
  pointer-events: none;
}

#home .hero-inner a {
  pointer-events: auto;
}

@media (max-width: 850px) {
  body:has(#home) > header nav {
    height: 85px;
  }
}

@media (min-width: 541px) {
  .gallery-collage {
    grid-template-rows: repeat(10, minmax(0, 1fr));
  }
}
