.page-gallery .subhero-shade {
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.68) 0%, rgba(12, 11, 9, 0.28) 52%, rgba(12, 11, 9, 0.42) 100%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.34) 0%, transparent 58%);
}

.page-gallery .subhero-picture img {
  object-position: center 54%;
}

.gallery-concept-collection {
  padding-top: 112px;
}

.gallery-collection-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1.1fr) minmax(260px, 0.65fr);
  gap: 34px;
  margin-bottom: 78px;
  align-items: end;
}

.gallery-collection-heading > span,
.gallery-concept-card figcaption > span,
.company-material-card figcaption > span {
  color: var(--gray);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-collection-heading h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.gallery-collection-heading p {
  margin: 0 0 4px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.85;
}

.gallery-concept-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 80px 24px;
  align-items: start;
}

.gallery-concept-card {
  margin: 0;
}

.gallery-concept-card.is-kitchen {
  grid-column: 1 / span 7;
}

.gallery-concept-card.is-entry {
  grid-column: 8 / -1;
  padding-top: 120px;
}

.gallery-concept-card.is-wardrobe {
  grid-column: 1 / span 5;
}

.gallery-concept-card.is-detail {
  grid-column: 6 / -1;
  padding-top: 100px;
}

.gallery-concept-card picture,
.company-material-card picture {
  display: block;
  overflow: hidden;
  background: #ddd8ce;
}

.gallery-concept-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.gallery-concept-card.is-kitchen picture {
  aspect-ratio: 3 / 2;
}

.gallery-concept-card.is-entry picture {
  aspect-ratio: 4 / 5;
}

.gallery-concept-card.is-entry img {
  object-position: 57% center;
}

.gallery-concept-card.is-wardrobe picture {
  aspect-ratio: 4 / 3;
}

.gallery-concept-card.is-detail picture {
  aspect-ratio: 16 / 9;
}

.gallery-concept-card figcaption,
.company-material-card figcaption {
  position: relative;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.gallery-concept-card figcaption::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 54px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.gallery-concept-card h3,
.company-material-card h3 {
  margin: 13px 0 5px;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.gallery-concept-card figcaption p,
.company-material-card figcaption p {
  margin: 0;
  color: var(--gray);
  font-size: 12px;
}

.gallery-concept-card figcaption::after,
.company-material-card figcaption::after {
  display: block;
  margin-top: 8px;
  color: var(--gray);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  opacity: 0.58;
  text-transform: uppercase;
}

.gallery-concept-card figcaption::after {
  content: "Space proposal · design reference";
}

.company-material-card figcaption::after {
  content: "Company material · source based";
}

.gallery-proposal-card figcaption::after {
  content: "Space proposal · design reference";
}

@media (hover: hover) and (pointer: fine) {
  .gallery-concept-card:hover img {
    transform: scale(1.025);
  }
}

.gallery-company-materials {
  padding-top: 124px;
}

.gallery-reference-specs {
  padding-top: 124px;
}

.gallery-reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: stretch;
}

.gallery-reference-visual {
  margin: 0;
}

.gallery-reference-visual picture {
  aspect-ratio: 16 / 9;
}

.gallery-spec-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(34px, 4vw, 58px);
  background: #102131;
  color: #f7f4ee;
}

.gallery-spec-panel > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-spec-panel h2 {
  margin: 24px 0 18px;
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.gallery-spec-intro,
.gallery-spec-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.8;
}

.gallery-spec-list {
  margin: 32px 0 24px;
}

.gallery-spec-list > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-spec-list > div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-spec-list dt {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.gallery-spec-list dd {
  margin: 0;
}

.gallery-spec-list strong,
.gallery-spec-list span {
  display: block;
}

.gallery-spec-list strong {
  font-size: 14px;
  font-weight: 600;
}

.gallery-spec-list span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.65;
}

.gallery-spec-note {
  margin-top: auto;
  padding-top: 4px;
  font-size: 9px;
  opacity: 0.82;
}

.company-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 24px;
}

.company-material-card {
  margin: 0;
}

.company-material-card picture {
  aspect-ratio: 4 / 3;
}

.company-material-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.company-material-card h3 {
  font-size: 20px;
}

.company-material-card figcaption > span {
  color: var(--accent);
}

.company-material-card figcaption::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 54px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.page-gallery .readiness-evidence-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
  gap: 42px;
}

.page-gallery .readiness-evidence-figure {
  min-height: 345px;
}

.page-gallery .readiness-evidence-figure img {
  object-position: center;
}

@media (hover: hover) and (pointer: fine) {
  .company-material-card:hover img {
    transform: scale(1.02);
  }
}

@media (max-width: 1100px) {
  .page-gallery .readiness-evidence-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .gallery-concept-collection,
  .gallery-reference-specs,
  .gallery-company-materials {
    padding-top: 90px;
  }

  .gallery-reference-layout {
    grid-template-columns: 1fr;
  }

  .gallery-collection-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }

  .gallery-collection-heading h2 {
    font-size: 39px;
  }

  .gallery-collection-heading p {
    max-width: 540px;
  }

  .gallery-concept-grid {
    gap: 64px 18px;
  }

  .gallery-concept-card.is-kitchen,
  .gallery-concept-card.is-detail {
    grid-column: 1 / span 7;
  }

  .gallery-concept-card.is-entry,
  .gallery-concept-card.is-wardrobe {
    grid-column: 8 / -1;
  }

  .gallery-concept-card.is-entry,
  .gallery-concept-card.is-detail {
    padding-top: 72px;
  }

  .company-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 18px;
  }
}

@media (max-width: 620px) {
  .page-gallery .subhero-picture img {
    object-position: 59% center;
  }

  .gallery-concept-grid,
  .company-material-grid {
    display: block;
  }

  .gallery-reference-layout {
    display: block;
  }

  .gallery-spec-panel {
    min-height: 0;
    padding: 32px 24px;
  }

  .gallery-spec-list > div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .gallery-concept-card,
  .gallery-concept-card.is-entry,
  .gallery-concept-card.is-detail,
  .company-material-card {
    width: 100%;
    margin-bottom: 54px;
    padding-top: 0;
  }

  .gallery-reference-visual {
    margin-bottom: 16px;
  }

  .gallery-concept-card.is-entry picture {
    aspect-ratio: 4 / 5;
  }

  .gallery-concept-card.is-wardrobe picture {
    aspect-ratio: 4 / 3;
  }

  .gallery-concept-card h3 {
    font-size: 24px;
  }

  .gallery-company-materials .status-notice {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-concept-card img {
    transition: none;
  }
}

.gallery-concept-card,
.company-material-card {
  cursor: zoom-in;
}

.gallery-concept-card:focus-visible,
.company-material-card:focus-visible {
  outline: 2px solid var(--premium-bronze, #b58a56);
  outline-offset: 8px;
}

.gallery-lightbox:not([hidden]) {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 48px);
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(3, 10, 17, 0.92);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox-stage {
  position: relative;
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100svh - 64px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08131e;
  color: #fff;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-backdrop,
.gallery-lightbox.is-open .gallery-lightbox-stage {
  opacity: 1;
}

.gallery-lightbox.is-open .gallery-lightbox-stage {
  transform: translateY(0) scale(1);
}

.gallery-lightbox-stage > header {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(to bottom, rgba(8, 19, 30, 0.74), transparent);
  pointer-events: none;
}

.gallery-lightbox-index {
  color: #d1ab7d;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gallery-lightbox-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(8, 19, 30, 0.36);
  color: #fff;
  cursor: pointer;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
  pointer-events: auto;
}

.gallery-lightbox-media {
  min-height: 0;
  background: #050c13;
}

.gallery-lightbox-media img {
  display: block;
  width: 100%;
  height: min(68svh, 760px);
  object-fit: contain;
}

.gallery-lightbox-stage > footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 104px;
  padding: 22px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gallery-lightbox-stage h2,
.gallery-lightbox-stage p {
  margin: 0;
  color: #fff;
}

.gallery-lightbox-stage h2 {
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
}

.gallery-lightbox-stage p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.gallery-lightbox-stage nav {
  display: flex;
}

.gallery-lightbox-stage nav button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 19px;
}

.gallery-lightbox-stage nav button + button {
  border-left: 0;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-stage nav button:hover {
  border-color: #b58a56;
  background: #b58a56;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .gallery-lightbox:not([hidden]) {
    padding: 10px;
  }

  .gallery-lightbox-stage {
    max-height: calc(100svh - 20px);
  }

  .gallery-lightbox-media img {
    height: min(64svh, 620px);
  }

  .gallery-lightbox-stage > footer {
    gap: 14px;
    min-height: 92px;
    padding: 16px;
  }

  .gallery-lightbox-stage p {
    display: none;
  }

  .gallery-lightbox-stage nav button {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox-backdrop,
  .gallery-lightbox-stage {
    transition-duration: 0.01ms;
  }
}
