img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.form-note { margin: 10px 0 0; color: #6f6a72; font-size: .72rem; line-height: 1.45; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-form button[disabled] { opacity: .65; cursor: wait; }
.direct-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.direct-contact a { color: #fff; font-size: .9rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: 5px; }

.gallery-hero { padding: 70px 0; background: linear-gradient(115deg, var(--paper) 0%, var(--paper) 68%, #eeedf7 68%); }
.gallery-hero h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 5rem); }
.gallery-hero-inner { display: grid; gap: 20px; }
.gallery-hero-inner > p { max-width: 590px; margin: 0; color: #615d65; font-size: 1.02rem; }
.portfolio-section { padding-top: 55px; }
.portfolio-grid { display: grid; gap: 14px; }
.portfolio-card { position: relative; display: block; width: 100%; height: 300px; padding: 0; overflow: hidden; border: 0; background: #ddd; color: #fff; text-align: left; cursor: zoom-in; }
.portfolio-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.portfolio-card::after { position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(24, 20, 23, .78)); content: ''; }
.portfolio-card > span { position: absolute; z-index: 1; right: 22px; bottom: 18px; left: 22px; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.portfolio-card strong, .portfolio-card small { display: block; }
.portfolio-card strong { font-family: 'Raleway', system-ui, sans-serif; font-size: 1.05rem; }
.portfolio-card small { color: #f2d5ae; font-size: .68rem; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
.portfolio-card:hover img { transform: scale(1.035); }
.gallery-cta { background: var(--primary); color: #fff; }
.gallery-cta h2 { margin-bottom: 0; }
.gallery-cta h2 em { color: var(--secondary); }
.gallery-cta-inner { display: grid; gap: 25px; }
.gallery-cta-inner > div:last-child > p { max-width: 540px; color: #e3e3f0; }
.gallery-cta .button { width: auto; }
.gallery-footer { margin-top: 0; }
.lightbox { width: min(1000px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; background: #151216; box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.lightbox::backdrop { background: rgba(20, 17, 19, .86); backdrop-filter: blur(5px); }
.lightbox img { display: block; width: 100%; max-height: calc(100vh - 24px); object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(20, 17, 19, .72); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }

@media (min-width: 700px) {
  .gallery-hero { padding: 95px 0; }
  .gallery-hero-inner { grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 270px; }
  .portfolio-card { height: auto; }
  .portfolio-card-wide { grid-column: span 2; }
  .portfolio-card-tall { grid-row: span 2; }
  .gallery-cta-inner { grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .portfolio-card-wide { grid-column: span 2; }
  .portfolio-card > span { right: 26px; bottom: 22px; left: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .portfolio-card img { transition: none; }
}
