/* Full-width photography index; project pages and other disciplines are unchanged. */
.graphic-gallery.gallery-page {
  display: block;
  align-content: start;
  width: 100%;
  height: auto;
  min-height: 100dvh;
  padding: 0;
  overflow: visible;
}
.graphic-gallery .gallery-name {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 112px 32px 30px;
}
.graphic-gallery .gallery-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}
.graphic-gallery .gallery-project {
  position: relative;
  display: block;
  grid-column: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #fff;
  isolation: isolate;
}
.graphic-gallery .gallery-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.graphic-gallery .gallery-project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.16) 50%, rgba(0,0,0,.5));
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.graphic-gallery .gallery-project .gallery-project-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(11px, .8vw, 14px);
  line-height: 1.3;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.graphic-gallery .gallery-project:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  z-index: 3;
}
.graphic-gallery .gallery-project:focus-visible::after,
.graphic-gallery .gallery-project:focus-visible .gallery-project-title {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .graphic-gallery .gallery-project:hover::after,
  .graphic-gallery .gallery-project:hover .gallery-project-title {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .graphic-gallery .gallery-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graphic-gallery .gallery-name { padding: 96px 24px 28px; }
  .graphic-gallery .gallery-project .gallery-project-title { left: 18px; right: 18px; bottom: 18px; }
}
@media (max-width: 560px) {
  .graphic-gallery .gallery-layout { grid-template-columns: minmax(0, 1fr); }
  .graphic-gallery .gallery-name { padding: 88px 16px 24px; }
  .graphic-gallery .gallery-project .gallery-project-title { font-size: 12px; }
}
@media (hover: none), (pointer: coarse) {
  .graphic-gallery .gallery-project::after,
  .graphic-gallery .gallery-project .gallery-project-title { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .graphic-gallery .gallery-project::after,
  .graphic-gallery .gallery-project .gallery-project-title { transition: none; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .graphic-gallery .gallery-image img {
    scale: 1;
    transition: scale 550ms cubic-bezier(.22,1,.36,1);
  }
  .graphic-gallery .gallery-project:focus-visible .gallery-image img {
    scale: 1.025;
  }
  @media (hover: hover) and (pointer: fine) {
    .graphic-gallery .gallery-project:hover .gallery-image img {
      scale: 1.025;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .graphic-gallery .gallery-preview {
    scale: 1;
    transition: scale 550ms cubic-bezier(.22,1,.36,1);
  }
  .graphic-gallery .gallery-project:focus-visible .gallery-preview { scale: 1.025; }
  @media (hover: hover) and (pointer: fine) {
    .graphic-gallery .gallery-project:hover .gallery-preview { scale: 1.025; }
  }
}

/* Covers use their intrinsic proportions: centered cropping, never stretching. */
.graphic-gallery.gallery-page {
 display: grid;
 grid-template-rows: auto minmax(0, 1fr);
 align-content: start;
 row-gap: 0;
 height: 100dvh;
 min-height: 360px;
}
.graphic-gallery .gallery-layout { height: 100%; min-height: 0; align-items: stretch; }
.graphic-gallery .gallery-project { height: 100%; min-height: 0; }
.graphic-gallery .gallery-image { height: 100%; aspect-ratio: auto; }
.graphic-gallery .gallery-project .gallery-image img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center;
 transform: none;
}
.graphic-gallery .gallery-preview { object-fit: cover; object-position: center; }
@media (max-width: 900px) {
 .graphic-gallery.gallery-page { display: block; height: auto; min-height: 100dvh; }
 .graphic-gallery .gallery-layout { height: auto; }
 .graphic-gallery .gallery-image { height: auto; aspect-ratio: 4 / 5; }
}
