@font-face{font-family:Literata;src:url(literata.woff2) format("woff2");font-weight:200 900;font-display:swap}
@font-face{font-family:Raleway;src:url(raleway.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{--radius:4px;--paper:#f6f3ed;--ink:#242823;--muted:#50584e;--line:#cecfc3;--forest:#25352e;--light:#fffaf0;--display:Literata,Georgia,serif;--body:Raleway,sans-serif;--gutter:clamp(18px,4.8vw,76px);--section:clamp(64px,9vw,132px)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:500 1rem/1.65 var(--body)}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--display);font-weight:450;line-height:1.12;letter-spacing:-.045em}
h2{font-size:clamp(2.25rem,4.5vw,4.5rem)}
h3{font-size:1.45rem}
a{color:inherit;text-underline-offset:.35em}
button{font:inherit;color:inherit}
button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
img{display:block;width:100%}
.wrap{width:min(100% - 2 * var(--gutter), 1440px);margin-inline:auto}
.masthead{min-height:102px;padding:16px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:grid;justify-items:start;line-height:1.15;text-decoration:none}
.brand span{font:450 clamp(1.55rem,2.5vw,2.3rem)/1.15 var(--display);letter-spacing:-.05em}
.brand small,.category{font-size:.72rem;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
.brand small{margin-top:9px}
nav{display:flex;gap:clamp(12px,3vw,43px)}
nav a,.hero a,footer a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
nav a{text-decoration:none}
.home main {
  isolation: isolate;
}

.home .masthead {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  color: var(--light);
}

.hero {
  position: sticky;
  top: 0;
  isolation: isolate;
  min-height: clamp(26rem, 100vh, 1000px);
  min-height: clamp(26rem, 100svh, 1000px);
  display: grid;
  align-items: end;
  color: var(--light);
  background: var(--forest);
  overflow: hidden;
}

.home-content {
  position: relative;
  overflow-x: clip;
  background: var(--paper);
}
.hero img,.hero::after{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.hero img{object-fit:cover;object-position:center 48%}
.hero::after{content:"";background:linear-gradient(24deg,rgba(12,19,15,.83),transparent 74%),linear-gradient(180deg,rgba(12,19,15,.77),transparent 36%)}
.hero-copy {
  padding: clamp(30px, 6vw, 100px) clamp(28px, 7vw, 118px) clamp(48px, 8vw, 132px);
}
.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 7vw, 7.5rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-description {
  max-width: 47ch;
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
}
.hero a{gap:14px;margin-top:24px}
.about-inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,6vw,92px);padding-block:var(--section)}
.prose{max-width:60ch;font-size:clamp(1rem,1.32vw,1.17rem)}
.prose p+p{margin-top:1em}
.prose h3{margin:1.55em 0 .5em}
.gallery{padding-bottom:var(--section);scroll-margin-top:24px}
.gallery-head{border-top:1px solid var(--line);padding:29px 0 25px;display:flex;align-items:end;justify-content:space-between;gap:12px}

.preview .gallery-head {
  align-items: baseline;
  gap: 12px 32px;
  border-top: 0;
  padding: clamp(32px, 5vw, 72px) 0 clamp(20px, 3vw, 40px);
}

.preview .gallery-head .prose {
  max-width: 40ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.filters button {
  min-height: 44px;
  padding-inline: 10px;
  border: 0;
  background: transparent;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--light);
}

@media (hover: hover) {
  .filters button:hover {
    background-color: #000;
    color: var(--light);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .filters button {
    transition: background-color 180ms ease, color 180ms ease;
  }
}

.grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(15px,2.4vw,36px);row-gap:36px}
.photo{grid-column:span 2;display:block;min-width:0;padding:0;border:0;background:none;text-align:left;cursor:pointer}
.photo[hidden]{display:none}
.photo[data-category=panoramy]{grid-column:span 3}
.photo-frame{display:block;overflow:hidden;background:var(--line)}
.photo img{aspect-ratio:4/3;object-fit:cover}
.photo[data-category=panoramy] img{aspect-ratio:2.25}
.photo-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:13px 0 15px}
.category{display:block;color:var(--muted)}
.photo-title{display:block;font:450 clamp(1.25rem,2.1vw,1.85rem)/1.3 var(--display);letter-spacing:-.035em}
.about {
  position: relative;
  background: var(--forest);
  color: var(--light);
}

.about-inner {
  position: relative;
}

.about-heading h2 {
  position: relative;
  z-index: 1;
}

.about-photo {
  width: 100%;
  height: auto;
  margin-top: clamp(20px, 3vw, 44px);
}

.site-footer {
  background: #000;
  color: var(--light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-block: clamp(44px, 6vw, 88px) 36px;
}

.footer-brand.brand {
  align-content: start;
  justify-items: start;
  text-align: left;
}

.footer-grid h2 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-grid a {
  min-height: 28px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-top: 1px solid rgb(255 250 240 / 28%);
  font-size: .85rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .footer-brand,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:800px){
  .photo{grid-column:span 3}
  .gallery-head{align-items:start;flex-direction:column}
}
@media(max-width:570px){
  .masthead{flex-direction:column;justify-content:center;text-align:center;gap:7px;padding-bottom:6px}
  .brand{justify-items:center}
  nav{gap:25px}
  .about-inner{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr;row-gap:25px}
  .photo,.photo[data-category=panoramy]{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero{position:relative}
}

#site-menu a {
  position: relative;
}

#site-menu a::after {
  content: "";
  position: absolute;
  inset: auto 0 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
}

#site-menu a:is(:hover, :focus-visible, [aria-current="page"])::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: no-preference) {
  #site-menu a::after {
    transition: transform 400ms ease;
  }
}

@media (max-width: 700px) {
  .menu-toggle:not([hidden]) + #site-menu a {
    align-self: flex-start;
    min-width: 44px;
  }
}

.showcase {
  display: grid;
  gap: clamp(8px, 1.2vw, 18px);
}

.showcase-tile {
  position: relative;
  isolation: isolate;
  grid-column: auto;
}

@media (min-width: 571px) {
  .showcase {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(26px, 3.5vw, 54px);
  }

  .showcase .showcase-tile:nth-child(1) { grid-area: 2 / 1 / 8 / 6; }
  .showcase .showcase-tile:nth-child(2) { grid-area: 1 / 6 / 5 / 13; }
  .showcase .showcase-tile:nth-child(3) { grid-area: 5 / 6 / 9 / 9; }
  .showcase .showcase-tile:nth-child(4) { grid-area: 5 / 9 / 10 / 13; }
  .showcase .showcase-tile:nth-child(5) { grid-area: 8 / 1 / 11 / 6; }
  .showcase .showcase-tile:nth-child(6) { grid-area: 9 / 6 / 13 / 9; }
  .showcase .showcase-tile:nth-child(7) { grid-area: 10 / 9 / 14 / 13; }
  .showcase .showcase-tile:nth-child(8) { grid-area: 11 / 2 / 15 / 6; }
  .showcase .showcase-tile:nth-child(9) { grid-area: 13 / 6 / 17 / 9; }
  .showcase .showcase-tile:nth-child(10) {
    grid-area: 14 / 9 / 16 / 12;
    width: 120%;
    height: 120%;
  }
}

.showcase .photo-frame {
  height: 100%;
}

.showcase .photo-frame img {
  height: 100%;
  aspect-ratio: auto;
}

.showcase-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px clamp(10px, 2vw, 24px) 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 75%));
  color: var(--light);
  font: 450 clamp(.85rem, 1.7vw, 1.45rem)/1.2 var(--display);
  pointer-events: none;
}

.showcase .lightbox-trigger {
  position: absolute;
  inset: 0;
}

@media (hover: hover) and (pointer: fine) {
  .showcase-caption {
    opacity: 0;
  }

  .showcase-tile:hover .showcase-caption,
  .showcase-tile:focus-within .showcase-caption {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .showcase-caption {
    transform: translateY(6px);
    transition: opacity 240ms ease, transform 240ms ease;
  }

  .showcase-tile:hover .showcase-caption,
  .showcase-tile:focus-within .showcase-caption {
    transform: translateY(0);
  }

  .showcase .showcase-tile:hover .photo-frame img {
    transform: scale(1.09);
  }
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 8px 18px;
  background: var(--forest);
  color: var(--light);
  font-weight: 700;
  text-decoration: none;
}

.gallery-link:focus-visible {
  outline-color: var(--forest);
}

.gallery-page {
  min-height: 72vh;
  padding-top: clamp(12px, 2vw, 28px);
}

.gallery-page .gallery-head {
  border-top: 0;
  padding-block: 12px 60px;
}

.gallery-page h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
}

@media (max-width: 570px) {
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(155px, 52vw, 245px);
    grid-auto-rows: clamp(110px, 33vw, 170px);
  }

  .showcase .showcase-tile {
    grid-column: auto;
  }

  .showcase .showcase-tile:is(:first-child, :nth-child(5), :last-child) {
    grid-row: auto;
    grid-column: span 2;
  }

  .showcase .showcase-tile:nth-child(2) {
    grid-column: auto;
    grid-row: span 2;
  }
}

.photo:focus-visible .photo-frame,
.showcase-tile:focus-within .photo-frame {
  clip-path: none !important;
}

.photo-catalog .photo:focus-visible {
  transform: none !important;
  opacity: 1 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(30px, 3.5vw, 52px);
}

.hero-actions a {
  justify-content: center;
  min-height: 54px;
  margin-top: 0;
  padding-inline: 24px;
  border: 1px solid var(--light);
  text-decoration: none;
}

.hero .contact-action {
  background: var(--light);
  color: var(--forest);
}

.hero .photo-action {
  background: rgb(12 19 15 / 28%);
}

.hero-actions a:focus-visible {
  outline-color: var(--light);
}

@media (hover: hover) {
  .gallery-link:not(:disabled):hover {
    background-color: #415449;
  }

  .hero .contact-action:hover {
    background-color: #e0e6d9;
    border-color: #e0e6d9;
  }

  .hero .photo-action:hover {
    background-color: rgb(255 250 240 / 16%);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.gallery-link, .photo-action):not(:disabled) {
    transition: background-color 200ms ease, border-color 200ms ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo-frame img {
    transition: transform 350ms ease-out;
  }

  .photo:hover .photo-frame img {
    transform: scale(1.035);
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 92px);
  padding-block: var(--section);
  scroll-margin-top: 24px;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 5px 22px rgb(0 0 0 / 5%);
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  position: relative;
  display: block;
  min-width: 0;
}

.contact-field :is(input, textarea) {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  border: 1px solid #8c8c8c;
  border-radius: var(--radius);
  background: var(--light);
  color: var(--ink);
  font: inherit;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field > span {
  position: absolute;
  inset: 26px auto auto 8px;
  padding-inline: 4px;
  transform: translateY(-50%);
  color: #585858;
  font-weight: 600;
  cursor: text;
  transition: top 160ms ease, font-size 160ms ease, color 160ms ease;
}

.contact-field :is(:focus, :not(:placeholder-shown)) + span {
  top: 0;
  background: linear-gradient(var(--paper) 50%, var(--light) 50%);
  font-size: 0.8125rem;
}

.contact-field > span > [aria-hidden="true"],
.contact-required {
  color: #b42318;
}

.contact-field :focus + span {
  color: #242424;
}

.contact-field :is(input, textarea)::placeholder {
  color: var(--muted);
  opacity: 0;
}

.contact-field :is(input, textarea):focus::placeholder {
  opacity: 1;
}

.contact-field :is(input, textarea):focus {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-field > span {
    transition: none;
  }
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.875rem;
}

.contact-consent label {
  cursor: pointer;
}

.contact-consent a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-consent input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--forest);
  cursor: pointer;
}

.contact-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.contact-submit button {
  border: 0;
  cursor: pointer;
}

.contact-submit button:disabled {
  cursor: default;
}

#contact-status.is-success {
  padding: 12px 16px;
  border-inline-start: 4px solid var(--forest);
  border-radius: var(--radius);
  background: #e5ede4;
  color: var(--forest);
  font-weight: 700;
}

#contact-status:empty {
  display: none;
}

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

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

.field-story {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  margin-bottom: var(--section);
}

.field-story img {
  grid-area: 1 / 1 / 3 / 11;
  height: 100%;
  min-height: clamp(370px, 44vw, 680px);
  object-fit: cover;
}

.field-story-copy {
  grid-area: 2 / 8 / 3 / -1;
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: none;
  padding: clamp(24px, 3.5vw, 52px);
  background: var(--paper);
}

.field-story-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
}

@media (max-width: 800px) {
  .field-story {
    display: block;
  }

  .field-story img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .field-story-copy {
    width: 92%;
    margin: -24px 0 0 auto;
    padding-inline: 20px 0;
    padding-bottom: 0;
  }
}

@media (max-width: 570px) {
  .masthead nav {
    gap: clamp(12px, 4vw, 25px);
  }
}

.filters[hidden] {
  display: none;
}

#album-intro {
  margin-bottom: 28px;
}

#album-description {
  margin-top: 12px;
}

a.photo {
  text-decoration: none;
}

.photo-catalog:not(.album-photos) {
  gap: 6px;
}

.photo-catalog .photo-caption {
  position: absolute;
  inset: auto 0 0;
  gap: 12px;
  padding: 46px clamp(14px, 2vw, 30px) 18px;
  border: 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 88%));
  color: var(--light);
}

.photo-catalog .category {
  color: var(--light);
}

@media (min-width: 801px) {
  .album-photos {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 18px;
  }

  .album-photos .photo {
    grid-column: auto;
  }

  .album-photos:has(.photo:first-child:nth-last-child(3)) {
    grid-auto-rows: 1fr;
  }

  .album-photos .photo:first-child:nth-last-child(3) {
    grid-row: span 2;
  }

  .album-photos:has(.photo:first-child:nth-last-child(3)) .photo:not(:first-child) {
    align-self: stretch;
  }

  .album-photos:has(.photo:first-child:nth-last-child(3)) .photo:not(:first-child) .photo-frame,
  .album-photos:has(.photo:first-child:nth-last-child(3)) .photo:not(:first-child) img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .album-photos .photo:first-child:nth-last-child(3) img {
    aspect-ratio: 4 / 5;
  }
}

.photo-catalog .photo {
  position: relative;
  align-self: start;
}

.photo-detail-back {
  padding-top: 24px;
  text-align: left;
}

.photo-detail {
  isolation: isolate;
}

.photo-detail-content {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  .photo-detail .photo-stage {
    position: sticky;
    top: 0;
  }
}

.photo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 72svh, 780px);
  background: #111512;
}

#detail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#detail-image {
  object-fit: cover;
}

.photo-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgb(0 0 0 / 80%), rgb(0 0 0 / 35%) 36%, transparent 70%);
  pointer-events: none;
}

.photo-detail-header {
  position: relative;
  z-index: 1;
  padding-block: clamp(28px, 6vw, 90px);
  color: var(--light);
  pointer-events: none;
}

.photo-detail-header .category {
  color: inherit;
}

.photo-detail h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 7vw, 7rem);
  margin-block: 8px 18px;
  text-wrap: balance;
}

#photo-missing {
  padding-block: clamp(24px, 5vw, 64px) var(--section);
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2vw, 30px);
  padding-top: clamp(28px, 5vw, 80px);
}

.detail-gallery .detail-gallery-tile {
  overflow: hidden;
}

.detail-gallery .detail-gallery-tile:nth-child(even) {
  margin-top: clamp(24px, 5vw, 80px);
}

.detail-gallery img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 570px) {
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery .detail-gallery-tile:nth-child(even) {
    margin-top: 0;
    width: 88%;
    justify-self: end;
  }
}

.lightbox-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.menu-toggle {
  display: none;
}

@media (max-width: 700px) {
  .masthead:has(.menu-toggle:not([hidden])) {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    min-height: 80px;
    padding-block: 12px;
  }

  .home .masthead:has(.menu-toggle:not([hidden])) {
    position: absolute;
  }

  .masthead:has(.menu-toggle:not([hidden])) .brand {
    justify-items: start;
  }

  .menu-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    width: 28px;
    height: 3px;
    background: currentColor;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
  }

  .menu-icon::before {
    transform: translateY(-8px);
  }

  .menu-icon::after {
    transform: translateY(8px);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

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

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

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .menu-toggle:not([hidden]) + nav {
    position: absolute;
    z-index: 2;
    inset: 100% var(--gutter) auto;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    flex-direction: column;
    gap: 0;
    padding: 8px 18px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
  }

  .menu-toggle[aria-expanded="true"] + nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .menu-icon {
    transition: background-color 180ms ease;
  }

  .menu-icon::before,
  .menu-icon::after {
    transition: transform 220ms ease;
  }

  .menu-toggle:not([hidden]) + nav {
    transition: opacity 200ms ease, transform 240ms ease-out, visibility 0s 240ms;
  }

  .menu-toggle[aria-expanded="true"] + nav {
    transition-delay: 0s;
  }
}

.lightbox-trigger:focus-visible img {
  clip-path: none !important;
}

.detail-gallery .detail-gallery-tile:focus-visible img {
  transform: none !important;
  opacity: 1 !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .detail-gallery img {
    transition: transform 350ms ease-out;
  }

  .detail-gallery .detail-gallery-tile:hover img {
    transform: scale(1.045);
  }
}

.detail-gallery-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 29vw, 180px);
  align-items: stretch;
  gap: 6px;
}

.detail-gallery-wide .detail-gallery-tile {
  position: relative;
  min-width: 0;
}

.detail-gallery-wide .detail-gallery-tile:nth-child(even) {
  width: 100%;
  margin-top: 0;
}

.detail-gallery-wide .detail-gallery-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

@media (max-width: 800px) {
  .detail-gallery-wide .detail-gallery-tile:nth-child(4n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(4n) {
    grid-column: span 2;
  }
}

@media (min-width: 801px) {
  .detail-gallery-wide {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 19vw, 275px);
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(4n + 1) {
    grid-column: span 5;
    grid-row: span 2;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(4n + 2) {
    grid-column: span 7;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(4n + 3) {
    grid-column: span 3;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(4n) {
    grid-column: span 4;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(8n + 5) {
    grid-column: span 4;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(8n + 6) {
    grid-column: span 8;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(8n + 7) {
    grid-column: span 5;
  }

  .detail-gallery-wide .detail-gallery-tile:nth-child(8n + 8) {
    grid-column: span 3;
  }
}

:where(img, button, .gallery-link, .photo-action, .photo-frame, .lightbox-trigger, .photo-stage),
.glightbox-clean .gbtn {
  border-radius: var(--radius);
}

.preview {
  overflow: clip;
  overflow-clip-margin: 8px;
}

.showcase-art {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  overflow: clip;
}

.showcase .lightbox-trigger:focus-visible {
  outline-offset: -4px;
}

.photo-stage::after,
.menu-toggle:not([hidden]) + nav {
  border-radius: var(--radius);
}

.photo-catalog .photo-caption {
  border-end-start-radius: var(--radius);
  border-end-end-radius: var(--radius);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner {
  --cmplz_banner_width: 620px;
  --cmplz_banner_background_color: var(--paper);
  --cmplz_button_accept_background_color: var(--forest);
  --cmplz_button_accept_border_color: var(--forest);
  box-sizing: border-box;
  width: min(620px, calc(100% - 24px));
  min-width: 0;
}

#cmplz-cookiebanner-container .cmplz-message {
  width: auto;
}

#cmplz-cookiebanner-container .cmplz-documents li {
  list-style: none;
}

#cmplz-cookiebanner-container .cmplz-documents li:not(:has(a[href]:not([href=""]):not(:empty))),
#cmplz-cookiebanner-container .cmplz-documents:not(:has(a[href]:not([href=""]):not(:empty))) {
  display: none;
}

body.cmplz-document .editorial-header,
body.cmplz-document .editorial-content {
  width: min(100%, 800px);
  text-align: left;
}

.detail-gallery-tile {
  position: relative;
  border-radius: var(--radius);
}

.detail-gallery-actions {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgb(0 0 0 / 40%);
}

.detail-gallery-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--light);
  font-weight: 700;
  text-decoration: none;
}

.detail-gallery-actions a:focus-visible {
  outline-offset: -4px;
}

@media (hover: hover) and (pointer: fine) {
  .detail-gallery-actions {
    opacity: 0;
  }

  .detail-gallery-tile:hover .detail-gallery-actions,
  .detail-gallery-tile:focus-within .detail-gallery-actions {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .detail-gallery-actions {
    transition: opacity 180ms ease-out;
  }
}

.photo-selection-intro {
  margin-block: 0;
  padding-top: clamp(28px, 4vw, 56px);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
}

.photo-selection {
  margin-bottom: 20px;
}

.photo-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.photo-selection-list li {
  position: relative;
  border-radius: var(--radius);
}

.photo-selection-list img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-selection-list button {
  position: absolute;
  inset: 2px 2px auto auto;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #a52727;
  color: var(--light);
  line-height: 1;
  cursor: pointer;
  font-size: 1.125rem;
}

.photo-selection-panel,
.photo-selection-notice {
  position: fixed;
  z-index: 30;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--light);
}

.photo-selection-panel {
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.photo-selection-panel a {
  color: inherit;
  text-decoration: underline;
}

.photo-selection-notice {
  bottom: 96px;
  pointer-events: none;
}

.photo-selection-panel[hidden],
.photo-selection-notice:empty {
  display: none;
}

.detail-gallery-actions a[data-selected="true"] {
  background: var(--light);
  color: var(--forest);
}

.detail-gallery-buy-icon,
.photo-added-icon {
  display: none;
}

@media (max-width: 700px) {
  .detail-gallery-actions {
    inset: 0 0 auto auto;
    gap: 4px;
    padding: 6px;
    background: none;
    opacity: 1;
  }

  .detail-gallery-actions a {
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .detail-gallery-actions svg {
    width: 18px;
    height: 18px;
  }

  .detail-gallery-buy-label,
  .detail-gallery-buy[data-selected="true"] .photo-add-icon {
    display: none;
  }

  .detail-gallery-buy-icon,
  .detail-gallery-buy[data-selected="true"] .photo-added-icon {
    display: block;
  }
}
