/* Gallery — architectural imagery, generous space and an editorial rhythm. */
.gallery-page { background: #f8f7f3; color: #082b40; }
.gp-wrap { width: min(1260px, 90%); margin-inline: auto; }
.gp-skip { position: fixed; left: 16px; top: 12px; z-index: 300; padding: 12px 20px; background: #fff; transform: translateY(-160%); }
.gp-skip:focus { transform: none; }
.gp-title, .gallery-page h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.035em; }
.gp-title em, .gallery-page h1 em { font-family: var(--font-accent); font-weight: 500; font-style: italic; }
.gallery-page .eyebrow { font-size: 9px; letter-spacing: .18em; }
.gallery-page .button { min-height: 49px; padding: 13px 25px; font-size: 11px; gap: 18px; }
.gallery-page .button svg { width: 18px; height: 18px; }
.gp-intro { padding-top: 25px; }
.gp-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid #082b401c; }
.gp-breadcrumb { display: flex; gap: 12px; align-items: center; text-transform: uppercase; font-size: 8px; letter-spacing: .14em; }
.gp-breadcrumb i { width: 25px; height: 1px; background: #b48b43; }
.gp-breadcrumb span { color: #94702d; }
.gp-edition { display: flex; align-items: center; gap: 10px; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; color: #687878; }
.gp-edition::before { content: ''; width: 5px; height: 5px; background: #b48b43; transform: rotate(45deg); }
.gp-masthead { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: end; padding: 30px 0 35px; }
.gp-masthead .eyebrow { margin-bottom: 12px; color: #98702f; }
.gp-masthead h1 { font-size: clamp(54px,6.2vw,88px); line-height: .99; margin: 0; }
.gp-masthead h1 em { color: #a5803f; }
.gp-intro-copy { max-width: 330px; margin-left: auto; padding-bottom: 3px; }
.gp-intro-copy p { font-size: 12px; line-height: 1.95; color: #657475; margin-bottom: 19px; }
.gp-text-link { display: inline-flex; align-items: center; gap: 19px; padding: 8px 0; font-size: 10px; font-weight: 600; border-bottom: 1px solid #b48b4370; transition: gap .3s, color .3s; }
.gp-text-link svg { width: 17px; height: 17px; }
.gp-text-link:hover { gap: 26px; color: #96702e; }
.gp-cover { display: grid; grid-template-columns: 1fr .335fr; gap: 15px; }
.gp-cover-button { position: relative; display: block; width: 100%; height: clamp(320px,31vw,438px); overflow: hidden; padding: 0; border: 0; text-align: left; color: #fff; background: #243b40; cursor: pointer; }
.gp-cover-button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#001d31aa,transparent 45%); pointer-events: none; }
.gp-cover-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); animation: gpSettle 1.8s var(--ease-out) both; }
.gp-cover-button:hover img { transform: scale(1.035); }
.gp-cover-caption { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.gp-cover-caption small { display: block; font-size: 7px; text-transform: uppercase; letter-spacing: .2em; color: #e3c88e; margin-bottom: 9px; }
.gp-cover-caption strong { font-family: var(--font-display); font-size: clamp(24px,2.4vw,34px); font-weight: 400; line-height: 1.1; }
.gp-expand { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #ffffff70; border-radius: 50%; flex-shrink: 0; transition: background .3s,border-color .3s; }
.gp-expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.gp-cover-button:hover .gp-expand { background: #b48b43; border-color: #b48b43; }
.gp-cover-side .gp-cover-caption { left: 21px; right: 21px; bottom: 27px; }
.gp-cover-side .gp-cover-caption strong { font-size: 26px; }
.gp-cover-side .gp-expand { width: 31px; height: 31px; }
.gp-cover-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid #082b401c; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: #78807c; }
.gp-cover-foot b { color: #96702e; font-weight: 500; }
.gp-cover-foot span:last-child { display: flex; align-items: center; gap: 10px; }
.gp-cover-foot i { height: 1px; width: 30px; background: #b48b43; }
.gp-masthead > * { animation: riseIn .9s var(--ease-out) both; }
.gp-intro-copy { animation-delay: .15s; }
@keyframes gpSettle { from { transform: scale(1.055); } to { transform: scale(1); } }

.gp-collection { padding: 83px 0 75px; scroll-margin-top: 105px; }
.gp-collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 29px; }
.gp-collection-heading .eyebrow { margin-bottom: 13px; }
.gp-title { font-size: clamp(37px,4vw,54px); line-height: 1.08; }
.gp-collection-heading > p { max-width: 270px; margin-bottom: 3px; font-size: 11px; line-height: 1.9; color: #687878; }
.gp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 18px; border-bottom: 1px solid #082b4020; margin-bottom: 27px; }
.gp-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gp-filter { display: inline-flex; gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; padding: 10px 13px; color: #677373; font-size: 10px; cursor: pointer; transition: color .3s,background .3s,border-color .3s; }
.gp-filter small { font-size: 7px; color: #9d7a3c; }
.gp-filter:hover { border-color: #b48b434d; color: #082b40; }
.gp-filter[aria-pressed="true"] { color: #fff; background: #082b40; border-color: #082b40; box-shadow: 0 4px 12px #082b4010; }
.gp-filter[aria-pressed="true"] small { color: #edcf95; }
.gp-category-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; background: url('assets/gallery-page/gallery-icons.webp') no-repeat; background-size: 200% 200%; }
.gp-category-icon.exteriors { background-position: 0 0; }
.gp-category-icon.interiors { background-position: 100% 0; }
.gp-category-icon.windows { background-position: 0 100%; }
.gp-category-icon.doors { background-position: 100% 100%; }
.gp-results { font-size: 8px; letter-spacing: .08em; color: #77807b; white-space: nowrap; }
.gp-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 32px 24px; }
.gp-card { grid-column: span 4; min-width: 0; }
.gp-card:nth-child(1), .gp-card:nth-child(4) { grid-column: span 8; }
.gp-card:nth-child(8) { grid-column: span 12; }
.gp-card[hidden] { display: none !important; }
.gp-card-button { display: block; width: 100%; text-align: left; background: transparent; padding: 0; border: 0; color: inherit; cursor: pointer; }
.gp-card-media { display: block; position: relative; overflow: hidden; height: 350px; background: #e6e7e0; }
.gp-card:nth-child(-n+2) .gp-card-media { height: 400px; }
.gp-card:nth-child(n+5):nth-child(-n+7) .gp-card-media { height: 390px; }
.gp-card:nth-child(8) .gp-card-media { height: 430px; }
.gp-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#00243b2e,transparent 45%); opacity: 0; transition: opacity .5s; }
.gp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gp-card-media .gp-expand { position: absolute; bottom: 20px; right: 20px; z-index: 1; color: #fff; background: #082b4070; backdrop-filter: blur(8px); opacity: 0; transform: translateY(7px); transition: opacity .3s,transform .3s,background .3s; }
.gp-card-button:hover img { transform: scale(1.035); }
.gp-card-button:hover .gp-expand, .gp-card-button:focus-visible .gp-expand { opacity: 1; transform: none; }
.gp-card-button:hover .gp-card-media::after { opacity: 1; }
.gp-card-caption { display: flex; align-items: start; gap: 13px; padding-top: 16px; }
.gp-card-number { font-family: var(--font-accent); font-size: 20px; font-weight: 500; font-style: italic; color: #aa8749; line-height: 1.1; }
.gp-card-info { display: block; flex: 1; min-width: 0; }
.gp-card-info strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; margin-bottom: 7px; }
.gp-card-info small { display: block; font-size: 9px; line-height: 1.6; color: #73807e; }
.gp-card-label { font-size: 7px; text-transform: uppercase; letter-spacing: .1em; padding-top: 6px; color: #8a743f; }
.gp-grid.is-filtered .gp-card { grid-column: span 6; }
.gp-grid.is-filtered .gp-card .gp-card-media { height: 390px; }
@keyframes gpCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gp-collection-note { padding: 25px 0 0; margin-top: 29px; border-top: 1px solid #082b401c; display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.gp-collection-note p { color: #7c847f; font-size: 9px; line-height: 1.8; max-width: 440px; }
.gp-collection-note .gp-text-link { flex-shrink: 0; font-size: 9px; }

.gp-perspective { color: #fff; background: #082b40; position: relative; overflow: hidden; padding: 65px 0; margin-bottom: 100px; }
.gp-perspective::before { content: ''; position: absolute; width: 400px; height: 400px; right: -150px; top: -150px; border: 1px solid #d6a54a20; border-radius: 50%; box-shadow: 0 0 0 40px #d6a54a05,0 0 0 100px #d6a54a03; pointer-events: none; }
.gp-perspective-grid { position: relative; display: grid; grid-template-columns: .65fr 1.35fr 1fr; align-items: center; gap: 45px; }
.gp-perspective .eyebrow { color: #e2c68c; line-height: 2; margin: 0; }
.gp-perspective .gp-title { font-size: clamp(34px,3.5vw,47px); }
.gp-perspective .gp-title em { display: block; background: linear-gradient(120deg,#f7e4b6,#d1a14d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gp-perspective-copy p { color: #b8c9ce; font-size: 11px; line-height: 1.9; margin-bottom: 20px; }
.gallery-page .ftr-cta-photo { background-image: url('assets/gallery-page/courtyard-residence.webp'); }

/* A native dialog provides focus trapping and Escape handling. */
.gp-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #071d2bed; color: #fff; overflow: auto; box-shadow: none; }
.gp-viewer::backdrop { background: #061923; backdrop-filter: blur(10px); }
.gp-viewer-shell { display: flex; flex-direction: column; min-height: 100%; padding: 24px 5vw 20px; }
.gp-viewer-top { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding-bottom: 18px; }
.gp-viewer-brand { font-size: 9px; text-transform: uppercase; letter-spacing: .2em; color: #cfb583; }
.gp-viewer .dialog-close { position: static; display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: 38px; padding: 0 12px; background: transparent; color: #d5dfe2; border: 1px solid #ffffff30; border-radius: 2px; font-size: 9px; }
.gp-viewer .dialog-close svg { width: 15px; height: 15px; }
.gp-viewer .dialog-close:hover { color: #f1cf86; border-color: #d1a14d; }
.gp-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; }
.gp-viewer figure { width: 100%; margin: 0; }
.gp-viewer-image { display: block; width: 100%; height: min(68vh,740px); object-fit: contain; margin-inline: auto; }
.gp-viewer figcaption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; max-width: 1050px; margin: 22px auto 0; }
.gp-viewer-category { display: block; text-transform: uppercase; font-size: 7px; letter-spacing: .18em; color: #d5b774; margin-bottom: 7px; }
.gp-viewer h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-weight: 400; margin-bottom: 7px; }
.gp-viewer-description { font-size: 10px; color: #afc1c9; line-height: 1.8; max-width: 700px; }
.gp-viewer-position { font-family: var(--font-accent); font-style: italic; color: #d7bd87; font-size: 24px; white-space: nowrap; }
.gp-viewer-nav { position: absolute; top: calc(50% - 65px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #082b40b0; border: 1px solid #ffffff50; color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .3s; }
.gp-viewer-nav svg { width: 17px; height: 17px; }
.gp-viewer-nav:hover { background: #9c7835; }
.gp-viewer-prev { left: 8px; }
.gp-viewer-prev svg { transform: rotate(180deg); }
.gp-viewer-next { right: 8px; }
.gp-viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 23px; }
.gp-viewer-help { color: #8ea3ae; font-size: 8px; }
.gp-viewer-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-viewer-dot { display: grid; place-items: center; padding: 5px; border: 0; background: transparent; cursor: pointer; }
.gp-viewer-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #718792; transition: background .2s,transform .2s; }
.gp-viewer-dot[aria-pressed="true"]::before { background: #e5c98e; transform: scale(1.35); }
.gp-viewer-error { position: absolute; inset: 35% 15% auto; text-align: center; color: #d5dfe2; font-size: 12px; }
.gp-viewer-error[hidden] { display: none; }
.gallery-page main :focus-visible, .gp-viewer :focus-visible { outline: 2px solid #b48b43; outline-offset: 5px; }
@media (hover:none) { .gp-card-media .gp-expand { opacity: 1; transform: none; } }
@media (min-width:1600px) { .gp-cover-button { height: 455px; } }
@media (max-width:1024px) {
  .gp-masthead { gap: 35px; grid-template-columns: 1.4fr 1fr; }
  .gp-cover { grid-template-columns: 1fr .42fr; }
  .gp-cover-caption { left: 23px; right: 23px; }
  .gp-cover-side .gp-cover-caption { left: 17px; right: 17px; }
  .gp-cover-side .gp-cover-caption strong { font-size: 22px; }
  .gp-cover-side .gp-expand { display: none; }
  .gp-toolbar { align-items: end; }
  .gp-filter { padding: 9px 10px; gap: 7px; }
  .gp-filters { gap: 2px; }
  .gp-grid { gap: 28px 20px; }
  .gp-card-info strong { font-size: 22px; }
  .gp-card-label { display: none; }
  .gp-card-media, .gp-card:nth-child(-n+2) .gp-card-media, .gp-card:nth-child(n+5):nth-child(-n+7) .gp-card-media { height: 310px; }
  .gp-card:nth-child(8) .gp-card-media { height: 360px; }
  .gp-perspective-grid { grid-template-columns: 1fr 1fr; gap: 25px 50px; }
  .gp-perspective .eyebrow { grid-column: span 2; }
}
@media (max-width:760px) {
  .gp-topline { padding-bottom: 18px; }
  .gp-masthead { gap: 22px; padding: 26px 0; }
  .gp-masthead h1 { font-size: clamp(46px,7vw,62px); }
  .gp-intro-copy p { font-size: 10px; line-height: 1.85; margin-bottom: 10px; }
  .gp-text-link { font-size: 9px; gap: 12px; }
  .gp-cover-button { height: 310px; }
  .gp-cover-caption strong { font-size: 26px; }
  .gp-cover-side .gp-cover-caption strong { font-size: 21px; }
  .gp-cover-foot { font-size: 7px; letter-spacing: .08em; }
  .gp-collection { padding: 60px 0; }
  .gp-collection-heading { align-items: start; }
  .gp-collection-heading > p { max-width: 210px; font-size: 10px; }
  .gp-toolbar { display: block; }
  .gp-filters { justify-content: space-between; }
  .gp-filter { font-size: 9px; padding: 9px 8px; gap: 6px; }
  .gp-category-icon { width: 21px; height: 21px; }
  .gp-results { padding: 15px 0 0; }
  .gp-card, .gp-card:nth-child(1), .gp-card:nth-child(4), .gp-card:nth-child(8) { grid-column: span 6; }
  .gp-card-media, .gp-card:nth-child(-n+2) .gp-card-media, .gp-card:nth-child(n+5):nth-child(-n+7) .gp-card-media, .gp-card:nth-child(8) .gp-card-media, .gp-grid.is-filtered .gp-card .gp-card-media { height: 290px; }
  .gp-card-caption { gap: 9px; padding-top: 13px; }
  .gp-card-info strong { font-size: 23px; }
  .gp-card-info small { font-size: 8px; }
  .gp-perspective { margin-bottom: 90px; }
  .gp-perspective-grid { gap: 20px 30px; }
  .gp-viewer-shell { padding: 18px 4vw 20px; }
  .gp-viewer-image { height: 61vh; }
  .gp-viewer h2 { font-size: 26px; }
  .gp-viewer-nav { width: 38px; height: 38px; }
  .gp-viewer-help { display: none; }
  .gp-viewer-bottom { justify-content: center; }
}
@media (max-width:560px) {
  .gp-wrap { width: 90%; }
  .gp-intro { padding-top: 20px; }
  .gp-edition { font-size: 6px; letter-spacing: .08em; gap: 7px; }
  .gp-breadcrumb { font-size: 7px; gap: 9px; }
  .gp-breadcrumb i { width: 18px; }
  .gp-masthead { display: block; padding: 24px 0 25px; }
  .gp-masthead h1 { font-size: clamp(48px,12vw,67px); line-height: 1.02; }
  .gp-masthead .eyebrow { font-size: 8px; margin-bottom: 12px; }
  .gp-intro-copy { margin: 16px 0 0; max-width: none; display: flex; gap: 20px; align-items: end; padding: 0; }
  .gp-intro-copy p { flex: 1; font-size: 10px; line-height: 1.8; margin: 0; }
  .gp-intro-copy .gp-text-link { flex-shrink: 0; gap: 8px; max-width: 90px; font-size: 8px; line-height: 1.6; }
  .gp-cover { grid-template-columns: 1fr .35fr; gap: 7px; }
  .gp-cover-button { height: 270px; }
  .gp-cover-main img { object-position: 47% center; }
  .gp-cover-caption { left: 15px; right: 15px; bottom: 17px; gap: 8px; }
  .gp-cover-caption small { font-size: 6px; line-height: 1.5; letter-spacing: .14em; margin-bottom: 7px; }
  .gp-cover-caption strong { font-size: 23px; }
  .gp-cover-caption .gp-expand { width: 28px; height: 28px; }
  .gp-cover-side .gp-cover-caption { left: 10px; right: 10px; bottom: 18px; }
  .gp-cover-side .gp-cover-caption strong { font-size: 16px; }
  .gp-cover-side .gp-cover-caption small { display: none; }
  .gp-cover-foot { gap: 10px; font-size: 6px; padding: 14px 0; }
  .gp-cover-foot span:last-child { gap: 5px; }
  .gp-cover-foot i { width: 12px; }
  .gp-collection { padding-top: 48px; scroll-margin-top: 95px; }
  .gp-collection-heading { display: block; margin-bottom: 23px; }
  .gp-title { font-size: 39px; }
  .gp-collection-heading > p { max-width: 320px; margin-top: 15px; }
  .gp-filters { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
  .gp-filter { justify-content: center; padding: 9px 7px; font-size: 9px; }
  .gp-filter:first-child { grid-column: span 4; justify-content: space-between; padding-inline: 14px; margin-bottom: 4px; }
  .gp-filter:not(:first-child) { grid-column: span 2; }
  .gp-category-icon { width: 24px; height: 24px; }
  .gp-grid { display: block; }
  .gp-card { margin-bottom: 28px; }
  .gp-card:last-child { margin-bottom: 0; }
  .gp-card-media, .gp-card:nth-child(-n+2) .gp-card-media, .gp-card:nth-child(n+5):nth-child(-n+7) .gp-card-media, .gp-card:nth-child(8) .gp-card-media, .gp-grid.is-filtered .gp-card .gp-card-media { height: auto; aspect-ratio: 1.15; }
  .gp-card:nth-child(2) .gp-card-media, .gp-card:nth-child(5) .gp-card-media, .gp-card:nth-child(7) .gp-card-media { aspect-ratio: .92; }
  .gp-card-media img { position: absolute; inset: 0; }
  .gp-card-label { display: block; }
  .gp-card-info strong { font-size: 25px; }
  .gp-card-info small { font-size: 9px; }
  .gp-card-number { font-size: 21px; }
  .gp-collection-note { display: block; padding-top: 20px; margin-top: 25px; }
  .gp-collection-note p { font-size: 9px; }
  .gp-collection-note .gp-text-link { margin-top: 12px; }
  .gp-perspective { padding: 43px 0; margin-bottom: 70px; }
  .gp-perspective-grid { display: block; }
  .gp-perspective .eyebrow { margin-bottom: 18px; }
  .gp-perspective .gp-title { font-size: 40px; }
  .gp-perspective-copy { margin-top: 22px; }
  .gp-perspective-copy p { max-width: 330px; }
  .gp-viewer-shell { padding: 16px 5vw 22px; }
  .gp-viewer-brand { font-size: 7px; letter-spacing: .15em; }
  .gp-viewer-image { height: 58vh; }
  .gp-viewer figcaption { gap: 15px; margin-top: 18px; align-items: start; }
  .gp-viewer h2 { font-size: 27px; }
  .gp-viewer-description { font-size: 9px; }
  .gp-viewer-position { font-size: 21px; padding-top: 18px; }
  .gp-viewer-nav { top: calc(50% - 75px); width: 34px; height: 34px; }
  .gp-viewer-prev { left: -9px; }
  .gp-viewer-next { right: -9px; }
  .gp-viewer-dot { padding: 8px; }
}
@media (max-width:350px) {
  .gp-masthead h1 { font-size: 46px; }
  .gp-intro-copy { gap: 12px; }
  .gp-cover { grid-template-columns: 1fr .42fr; }
  .gp-cover-side .gp-cover-caption { left: 8px; right: 8px; }
  .gp-cover-side .gp-cover-caption strong { font-size: 14px; }
  .gp-cover-foot { font-size: 5px; }
  .gp-viewer-description { font-size: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .gallery-page *, .gp-viewer * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .gallery-page main [data-reveal] { opacity: 1; transform: none; filter: none; }
}
