/* Corporate Plus normally puts its fixed menu over the page title banner. */
body.arfoto-layout #page > #navbar.navbar-fixed-top:not(.navbar-remove-fixed-top) {
  position: sticky;
  top: 0;
  margin-bottom: 0;
}
body.arfoto-layout #page > #navbar.navbar-fixed-top:not(.navbar-remove-fixed-top) + .no-fs-clearfix {
  display: none;
}
@media (min-width: 783px) {
  body.arfoto-layout.admin-bar #page > #navbar.navbar-fixed-top:not(.navbar-remove-fixed-top) {
    top: 32px;
  }
}
@media (min-width: 601px) and (max-width: 782px) {
  body.arfoto-layout.admin-bar #page > #navbar.navbar-fixed-top:not(.navbar-remove-fixed-top) {
    top: 46px;
  }
}
.arfoto-layout #arfoto-contatti {
  scroll-margin-top: 180px;
}
.arfoto {
  --arfoto-ink: #252521;
  --arfoto-paper: #f7f6f2;
  --arfoto-accent: #785023;
  --arfoto-rule: #d8d3c8;
  box-sizing: border-box;
  background: var(--arfoto-paper);
  color: var(--arfoto-ink);
  font: 16px/1.6 Arial, sans-serif;
}
.arfoto *, .arfoto *::before, .arfoto *::after { box-sizing: inherit; }
.arfoto-portfolio { width: min(1100px, 100%); margin: 0 auto; padding: clamp(20px, 5vw, 52px); }
.arfoto-page { background: #f7f6f2; }
.arfoto-page .arfoto-landing { width: min(1100px, 100%); margin-inline: auto; padding: clamp(20px, 5vw, 62px) clamp(18px, 4vw, 46px); }
.arfoto h1, .arfoto h2 { color: var(--arfoto-ink); font-family: Arial, sans-serif; line-height: 1.15; letter-spacing: -.035em; text-transform: none; }
.arfoto-page .arfoto-intro h1 { font-size: clamp(1.9rem, 4.1vw, 3.3rem); margin: 0 0 16px; }
.arfoto-page .arfoto-panel h2, .arfoto-portfolio h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.arfoto-portfolio h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.arfoto-page .arfoto-intro p { max-width: 54ch; margin: 0 0 12px; }
.arfoto a { color: var(--arfoto-accent); text-underline-offset: .2em; }
.arfoto a:focus-visible { outline: 3px solid var(--arfoto-accent); outline-offset: 3px; }
.arfoto figure { margin: 0; }
.arfoto img { max-width: 100%; height: auto; }
.arfoto-intro, .arfoto-contact, .arfoto-projects { display: grid; gap: clamp(18px, 4vw, 46px); }
.arfoto-intro { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: center; }
.arfoto-contact, .arfoto-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arfoto-intro .arfoto-eyebrow { font-weight: bold; color: var(--arfoto-accent); }
.arfoto .arfoto-cover { width: min(100%, 370px); justify-self: end; }
.arfoto-cover img { display: block; width: 100%; }
.arfoto-cover figcaption { font: .88rem/1.45 Arial, sans-serif; margin-top: 8px; }
.arfoto .arfoto-signature { max-width: 150px; margin: 14px 0; }
.arfoto-panel { border-top: 1px solid var(--arfoto-rule); margin-top: 26px; padding-top: 18px; }
.arfoto .arfoto-categories { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0; padding: 0; list-style: none; }
.arfoto-archive-categories .arfoto-categories { gap: 10px; margin: 22px 0 26px; }
.arfoto-archive-categories .arfoto-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 15px;
  border: 1px solid #34372a;
  border-radius: 4px;
  color: #22251e;
  background: #fffef8;
  font-weight: bold;
  line-height: 1.25;
  text-decoration: none;
}
.arfoto-archive-categories .arfoto-categories a:hover { color: white; background: #34372a; }
.arfoto-archive-categories .arfoto-categories a[aria-current="page"] {
  color: #161714;
  background: #dfeb64;
}
.arfoto .arfoto-button { display: inline-block; padding: 9px 15px; background: #2d2d2d; color: white; text-decoration: none; font-weight: bold; }
.arfoto-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.arfoto-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; font-weight: bold; text-decoration: underline; }
.arfoto-deck { max-width: 65ch; }
.arfoto .arfoto-project-cover { margin: 18px 0; }
.arfoto-projects article { padding-block: 14px; border-top: 1px solid var(--arfoto-rule); }
.arfoto-projects article img { display: block; }
.arfoto .arfoto-viewer-trigger { cursor: zoom-in; }
.arfoto-project-cover .arfoto-viewer-trigger { display: inline-block; max-width: 100%; }
.arfoto-viewer {
  width: min(96vw, 1280px);
  max-width: none;
  max-height: 100dvh;
  margin: auto;
  padding: 8px;
  border: 0;
  background: #151515;
  color: white;
}
.arfoto-viewer::backdrop { background: rgba(0, 0, 0, .88); }
body:has(.arfoto-viewer[open]) { overflow: hidden; }
.arfoto-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.arfoto-viewer-bar p { margin: 0; padding-inline-start: 8px; }
.arfoto-viewer-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.arfoto-viewer-stage img { display: block; margin-inline: auto; width: 100%; height: min(76vh, 76dvh); object-fit: contain; }
.arfoto-viewer button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #777;
  border-radius: 4px;
  color: white;
  background: #272727;
  box-shadow: none;
  font: inherit;
  text-transform: none;
}
.arfoto-viewer button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.arfoto-viewer-stage button { font-size: 30px; }
.arfoto-viewer-stage button:disabled { visibility: hidden; }
@media (max-width: 640px) {
  .arfoto-intro, .arfoto-contact, .arfoto-projects { grid-template-columns: 1fr; }
  .arfoto .arfoto-cover { width: min(100%, 340px); justify-self: start; }
  .arfoto-viewer-stage { grid-template-columns: 1fr 1fr; gap: 8px; }
  .arfoto-viewer-stage img { grid-column: 1 / -1; grid-row: 1; }
  .arfoto-viewer-next { justify-self: end; }
  .arfoto-viewer-prev { justify-self: start; }
}
