/* Home from the supplied Settanta7 layout. */
html, body { background: #e1e1e1; }
body { color: #000; font-family: 'Bastardo Groteskish', Arial, sans-serif; font-weight: 400; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.menu-dekstop {
  position: fixed;
  inset: 0 0 auto;
  height: 100px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  pointer-events: none;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.menu-dekstop a { pointer-events: auto; }
.logo-home { flex: 0 0 auto; padding: 0 35px; }
.logo-home a { white-space: nowrap; font-size: 24px; line-height: 1.2; }
.menu-dekstop nav { width: 50%; margin-right: 3%; }
.menu-dekstop .left { display: flex; width: 100%; margin: 0; padding: 0; float: none; justify-content: space-between; gap: 24px; }
.menu-dekstop .menu { display: inline-block; margin: 0; font-size: 20px; line-height: 1.4; white-space: nowrap; }
.menu:hover, .logo-home a:hover { color: #ccff00; text-decoration: none; }
.gallery { z-index: 1; }
.intro p {
  font-family: 'Bastardo Groteskish', Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.intro p:only-child { width: 100%; }
/* Original gallery covers are 2100 × 1200, with a 1rem corner radius.
   Card widths, positioning, captions and responsive rules come from base.css. */
.project-cover { display: block; width: 100%; aspect-ratio: 7 / 4; overflow: hidden; border-radius: 1rem; flex-shrink: 0; }
.project-cover img { display: block; height: 100%; width: 100%; object-fit: cover; border-radius: inherit; user-select: none; -webkit-user-drag: none; }
.drag-proxy { position: fixed; width: 1px; height: 1px; visibility: hidden; pointer-events: none; }
#fluid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2147483647; pointer-events: none; opacity: .85; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px; background: #000; color: #fff; }
.skip:focus { top: 16px; }

/* Readable native horizontal gallery while JS initializes or if it is unavailable. */
body:not(.gallery-ready) .gallery { position: relative; margin-top: 100px; height: calc(100svh - 100px); display: flex; align-items: center; }
body:not(.gallery-ready) .cards { position: relative; display: flex; gap: 4vw; width: 100%; height: auto; top: auto; left: auto; transform: none; overflow-x: auto; padding: 30px 15vw; scroll-snap-type: x mandatory; }
body:not(.gallery-ready) .cards li { position: relative; flex: 0 0 calc(70vw - 100px); width: calc(70vw - 100px); height: auto; top: auto; left: auto; scroll-snap-align: center; }

@media (max-width: 1280px) and (min-width: 601px) {
  .menu-dekstop nav { width: 56%; }
  .logo-home { padding-left: 30px; }
}
@media (max-width: 800px) and (min-width: 601px) {
  .logo-home { padding-left: 22px; padding-right: 20px; }
  .logo-home a { font-size: 22px; }
  .menu-dekstop nav { width: 60%; margin-right: 22px; }
  .menu-dekstop .menu { font-size: 16px; }
  .menu-dekstop .left { gap: 16px; }
}
@media (max-width: 600px) {
  .menu-dekstop { height: auto; min-height: 115px; flex-wrap: wrap; align-content: center; padding: 18px 20px; gap: 21px; }
  .logo-home { width: 100%; padding: 0; }
  .logo-home a { font-size: 24px; }
  .menu-dekstop nav { width: 100%; margin: 0; }
  .menu-dekstop .menu { font-size: 16px; }
  .menu-dekstop .left { gap: 16px; }
  body:not(.gallery-ready) .gallery { margin-top: 115px; height: auto; overflow: visible; display: block; }
  body:not(.gallery-ready) .cards { display: block; padding: 25px 20px 50px; overflow: visible; }
  body:not(.gallery-ready) .cards li { width: 100%!important; margin-bottom: 24px; }
  .project-cover { position: relative; aspect-ratio: 7 / 4; border-radius: 12px; overflow: hidden; }
  .project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: inherit; }
  .gallery .intro { display: block; padding: 0; }
  .gallery .intro p { width: 100%; text-align: left; font-size: 18px; line-height: 1.3; margin: 10px 0 0; }
  .gallery .intro .text-left { display: none; }
  body:not(.gallery-ready) .cards li:last-child { margin-bottom: 0; }
  #fluid { display: none; }
}
@media (prefers-reduced-motion: reduce) { #fluid { display: none; } }

/* Preserve the original mockups; only the lateral background is expanded. */
.project-cover.artwork-frame,
.work-image.artwork-frame {
  position: relative;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  background-color: #b2c0ca;
  background-position: center;
  background-size: cover;
}
.artwork-frame--front { background-image: url('/assets/anna-genesi-front-background.webp'); }
.artwork-frame--back { background-image: url('/assets/anna-genesi-back-background.webp'); }
.project-cover.artwork-frame img,
.work-image.artwork-frame img {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

/* Align the first text line of both desktop caption columns. */
@media (min-width: 601px) {
  .gallery .intro { align-items: baseline; gap: 20px; padding-top: 14px; }
  .gallery .intro p { margin: 0; line-height: 1.3; flex: 1 1 0; min-width: 0; }
}

/* Keep the Maison artwork and full garment silhouettes intact. */
.project-cover.maison-frame, .work-image.maison-frame { position: relative; aspect-ratio: 7 / 4; overflow: hidden; border-radius: .8rem; background: #f0f0f0; }
.project-cover.maison-frame img, .work-image.maison-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; border-radius: 0; }

.work-image.maison-frame--photo img { object-fit: cover; }

/* Clip the uneven grey border embedded in the original screenshots. */
.project-cover.settanta-frame, .work-image.settanta-frame { position: relative; aspect-ratio: 7 / 4; overflow: hidden; border-radius: 1rem; background: #fff; }
.project-cover.settanta-frame img, .work-image.settanta-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; transform: scale(1.025); border-radius: 0; }
@media (max-width: 600px) {
  .project-cover.settanta-frame, .work-image.settanta-frame { border-radius: 12px; }
}
