.gallery-page { background: var(--ivory); }
.gallery-page .wrap { width: min(1240px, calc(100% - 96px)); }
.gallery-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #0c1011; color: var(--paper); }
.gallery-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0c1011 0%, rgba(12,16,17,.95) 40%, rgba(12,16,17,.24) 100%); }
.gallery-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: brightness(.72) saturate(.75); }
.gallery-hero .wrap { position: relative; z-index: 2; padding: 165px 0 85px; }
.gallery-hero__copy { max-width: 760px; }
.gallery-hero .display { font-size: clamp(44px, 5.7vw, 78px); line-height: 1.02; text-wrap: balance; }
.gallery-hero .display em { font-style: normal; color: var(--gold); }
.gallery-hero__copy > p:not(.eyebrow) { max-width: 610px; margin: 25px 0 0; color: #e4dfd7; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }
.gallery-hero .button { margin-top: 30px; min-height: 54px; padding-inline: 23px; }
.gallery-real { padding: 80px 0; }
.gallery-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 50px; align-items: end; margin-bottom: 38px; }
.gallery-section-head h2, .gallery-project h2, .gallery-equipment h2, .gallery-contact h2 { margin: 0; font: 500 clamp(38px, 4.8vw, 64px)/1.07 "Playfair Display", Georgia, serif; letter-spacing: -.045em; text-wrap: balance; }
.gallery-section-head > p { max-width: 500px; margin: 0; color: #4d514e; font-size: 18px; line-height: 1.65; }
.gallery-real__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-figure { margin: 0; overflow: hidden; background: #e5dfd7; }
.gallery-figure img { display: block; width: 100%; height: clamp(190px, 20vw, 250px); object-fit: cover; object-position: center 38%; filter: saturate(.8); transition: transform .35s ease; }
.gallery-figure:hover img { transform: scale(1.018); }
.gallery-figure figcaption { padding: 15px 19px; color: #383b39; font-size: 14px; line-height: 1.4; }
.gallery-real__grid .gallery-figure:last-child img { object-position: center; }
.gallery-project { padding: 105px 0; background: #121719; color: var(--paper); }
.gallery-project__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 75px; align-items: end; }
.gallery-project__copy > p:not(.eyebrow) { max-width: 580px; margin: 22px 0 0; color: #d5d0c8; font-size: 18px; line-height: 1.65; }
.gallery-project__panel { padding: 30px; border: 1px solid rgba(248,246,242,.22); border-top: 3px solid var(--gold); }
.gallery-project__panel strong { display: block; margin-bottom: 14px; font: 500 29px/1.15 "Playfair Display", Georgia, serif; }
.gallery-project__panel p { margin: 0 0 24px; color: #cfcbc4; line-height: 1.6; }
.gallery-project__panel .button { display: flex; width: 100%; min-height: 56px; font-size: 15px; }
.gallery-services { padding: 80px 0; background: #e8e3dc; }
.gallery-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-service { display: flex; flex-direction: column; min-width: 0; background: #f7f4ee; color: #161b1a; border: 1px solid rgba(12,16,17,.1); transition: transform .25s ease, border-color .25s ease; }
.gallery-service:hover { transform: translateY(-4px); border-color: #a56f30; }
.gallery-service img { display: block; width: 100%; height: clamp(185px, 18vw, 230px); object-fit: cover; object-position: center 60%; filter: saturate(.82); }
.gallery-service:first-child img { object-position: center 68%; }
.gallery-service__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 19px; }
.gallery-service__body strong { font: 500 clamp(25px, 2.4vw, 33px)/1.15 "Playfair Display", Georgia, serif; letter-spacing: -.035em; }
.gallery-service__body > span:not(.gallery-service__link) { color: #4d514e; line-height: 1.6; }
.gallery-service__link { align-self: flex-start; margin-top: auto; padding-top: 12px; border-bottom: 2px solid #a56f30; color: #754a1c; font-weight: 700; }
.gallery-equipment { padding: 105px 0; }
.gallery-equipment__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 105px); align-items: center; }
.gallery-equipment figure { margin: 0; }
.gallery-equipment img { width: 100%; max-height: 570px; object-fit: contain; }
.gallery-equipment figcaption { margin-top: 12px; color: #666862; font-size: 13px; }
.gallery-equipment__copy p:not(.eyebrow) { max-width: 550px; color: #4c504d; font-size: 18px; line-height: 1.7; }
.gallery-equipment .button { margin-top: 16px; min-height: 54px; }
.gallery-contact { padding: 100px 0; background: #121719; color: var(--paper); }
.gallery-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(38px, 7vw, 100px); align-items: center; }
.gallery-contact__grid > div:first-child p:not(.eyebrow) { max-width: 580px; color: #d5d0c8; font-size: 18px; }
.gallery-contact__links { display: grid; gap: 10px; }
.gallery-contact__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 13px 17px; border: 1px solid rgba(248,246,242,.35); font-weight: 700; transition: background .2s ease, border-color .2s ease; }
.gallery-contact__links a:first-child { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gallery-contact__links a:hover { border-color: var(--gold); background: rgba(217,161,91,.15); }
.gallery-contact__links a:first-child:hover { background: #edbc78; }
@media (max-width: 900px) {
  .gallery-page .wrap { width: min(100% - 48px, 1240px); }
  .gallery-section-head, .gallery-project__grid, .gallery-equipment__grid, .gallery-contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-real__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .gallery-page .wrap { width: min(100% - 36px, 1240px); }
  .gallery-hero { min-height: 0; }
  .gallery-hero::before { background: linear-gradient(0deg, #0c1011 0%, rgba(12,16,17,.92) 50%, rgba(12,16,17,.32) 100%); }
  .gallery-hero > img { height: 52%; object-position: center 32%; }
  .gallery-hero .wrap { padding: 255px 0 65px; }
  .gallery-hero .display { font-size: clamp(38px, 10.2vw, 56px); }
  .gallery-real, .gallery-project, .gallery-services, .gallery-equipment, .gallery-contact { padding: 72px 0; }
  .gallery-real__grid, .gallery-services__grid { grid-template-columns: 1fr; }
  .gallery-real__grid .gallery-figure img { height: clamp(180px, 52vw, 230px); }
  .gallery-service img { height: clamp(175px, 48vw, 220px); }
  .gallery-project__panel { padding: 22px; }
  .gallery-contact__links a { flex-wrap: wrap; }
}
