/* ==========================================================================
   CADARN Group s.r.o. — designérský stylopis
   ========================================================================== */

:root {
  --navy: #101d2e;
  --navy-2: #16283d;
  --navy-dark: #0a141f;
  --ivory: #f7f5f0;
  --ivory-2: #efece4;
  --gold: #b8863b;
  --gold-light: #d9ab5f;
  --line: rgba(16, 29, 46, 0.1);
  --line-light: rgba(255, 255, 255, 0.18);
  --text: #1c2128;
  --text-light: #666c76;
  --white: #ffffff;
  --radius: 2px;
  --shadow: 0 24px 60px -20px rgba(10, 20, 31, 0.25);
  --shadow-sm: 0 10px 30px rgba(10, 20, 31, 0.08);
  --ease: cubic-bezier(.16,.8,.24,1);
  --logo-navy-src: url(images/logos/logo-mini.png);
  --logo-white-src: url(images/logos/logo-white-mini.png);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--white); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.15; font-weight: 500; }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--text-light); font-size: 1.02rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateX(0); }

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold::before { background: var(--navy-dark); }
.btn-gold:hover { color: var(--ivory); }

.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline::before { background: var(--white); }
.btn-outline:hover { color: var(--navy); }

.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy::before { background: var(--navy); }
.btn-outline-navy:hover { color: var(--ivory); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============ Header ============ */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
header.site-header.is-solid {
  background: var(--ivory);
  padding: 14px 0;
  box-shadow: 0 2px 24px rgba(10,20,31,0.06);
}
header.site-header.is-inner { background: var(--ivory); padding: 14px 0; box-shadow: 0 2px 24px rgba(10,20,31,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  display: block;
  height: 58px;
  width: 148px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.logo-mark.logo-img-navy { background-image: var(--logo-navy-src); }
.logo-mark.logo-img-white { background-image: var(--logo-white-src); }

.logo-link .header-logo-white { display: none; }
header.site-header:not(.is-solid):not(.is-inner) .logo-link .header-logo-navy { display: none; }
header.site-header:not(.is-solid):not(.is-inner) .logo-link .header-logo-white { display: block; }

header.site-header:not(.is-solid):not(.is-inner) .btn-outline-navy { color: var(--white); border-color: var(--white); }
header.site-header:not(.is-solid):not(.is-inner) .btn-outline-navy:hover { color: var(--navy); }
header.site-header:not(.is-solid):not(.is-inner) .btn-outline-navy::before { background: var(--white); }

nav.main-nav ul { display: flex; gap: 40px; }
nav.main-nav a {
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
}
header.site-header:not(.is-solid):not(.is-inner) a { color: var(--white); }
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 28px; }
.header-phone {
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
header.site-header:not(.is-solid):not(.is-inner) .header-phone { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  z-index: 210;
}
header.site-header:not(.is-solid):not(.is-inner) .nav-toggle { color: var(--white); }
body.nav-open .nav-toggle { color: var(--white) !important; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,20,31,.75) 0%, rgba(10,20,31,.55) 45%, rgba(10,20,31,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 90px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.18rem; max-width: 540px; }
.hero-buttons { display: flex; gap: 18px; margin-top: 30px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.scroll-cue .line { width: 1px; height: 40px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold-light);
  animation: scrollcue 2.2s infinite ease-in-out;
}
@keyframes scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============ Stats ============ */
.stats-bar { background: var(--ivory); position: relative; z-index: 5; margin-top: -64px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.stat-box {
  padding: 44px 36px;
  text-align: left;
  border-right: 1px solid var(--line-light);
  position: relative;
}
.stat-box:last-child { border-right: none; }
.stat-number {
  font-family: "Fraunces", serif;
  font-size: 3rem;
  color: var(--white);
  font-weight: 500;
  display: block;
  line-height: 1;
}
.stat-label {
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-top: 10px;
  display: block;
}
.stat-box p { font-size: 0.88rem; margin-top: 14px; margin-bottom: 0; color: rgba(255,255,255,0.6); }

/* ============ Sections ============ */
section { padding: 130px 0; }
.section-tight { padding: 90px 0; }
.section-ivory-2 { background: var(--ivory-2); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.65); }

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .1s; }
.reveal-delay-2.is-visible { transition-delay: .2s; }
.reveal-delay-3.is-visible { transition-delay: .3s; }

.placeholder-photo {
  position: relative;
  min-height: 460px;
  height: 460px;
  overflow: hidden;
}
.placeholder-photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo::before {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* ============ Services (editorial) ============ */
.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-of-type { padding-top: 0; }
.service-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.service-row.flip { grid-template-columns: 1.1fr 0.9fr; }
.service-row.flip .service-media { order: 2; }
.service-index {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.service-media { position: relative; height: 360px; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-media:hover img { transform: scale(1.05); }
.service-list { padding-left: 0; margin-top: 20px; }
.service-list li {
  color: var(--text-light);
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 0.96rem;
}
.service-list li:first-child { border-top: none; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 19px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* Services teaser grid (homepage) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.service-card { background: var(--ivory); padding: 0; }
.service-card .card-photo { height: 300px; overflow: hidden; position: relative; }
.service-card .card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .card-photo img { transform: scale(1.08); }
.service-card .card-body { padding: 36px 34px 40px; }
.service-card .service-index { }
.service-card h3 { margin-bottom: 10px; }
.service-card a.card-link { color: var(--gold); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; }

/* ============ Benefits ============ */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.benefit { padding: 34px 30px; border-top: 1px solid var(--line-light); position: relative; }
.section-navy .benefit { border-top: 1px solid var(--line-light); }
.benefit .icon-circle {
  width: 50px; height: 50px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.benefit .icon-circle svg { width: 22px; height: 22px; color: var(--gold); }
.benefit h3 { font-size: 1.05rem; }

/* ============ Projects / Portfolio ============ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.project-card { display: block; position: relative; background: var(--navy); overflow: hidden; aspect-ratio: 4/5; color: inherit; text-decoration: none; }
.project-card .card-photo { position: absolute; inset: 0; }
.project-card .card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .card-photo img { transform: scale(1.1); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,31,.92) 0%, rgba(10,20,31,.25) 55%, rgba(10,20,31,0) 75%);
}
.project-card .card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 28px;
  z-index: 2;
  transform: translateY(6px);
  transition: transform .4s var(--ease);
}
.project-card:hover .card-body { transform: translateY(0); }
.project-card h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 4px; }
.project-card .location { color: var(--gold-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ CTA ============ */
.cta-band {
  position: relative;
  text-align: center;
  padding: 110px 0;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-dark);
}
.cta-band .cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cta-band .cta-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,20,31,.75), rgba(10,20,31,.94)); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 460px; margin-left: auto; margin-right: auto; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
.contact-info-block { padding: 34px 0; border-top: 1px solid var(--line); }
.contact-info-block:first-child { border-top: none; }
.contact-info-block h3 { margin-bottom: 12px; font-size: 1.05rem; }
.contact-info-block p { margin-bottom: 6px; }

form.contact-form { display: flex; flex-direction: column; gap: 22px; }
form.contact-form label { font-weight: 600; color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .3s ease;
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--gold); }
form.contact-form textarea { min-height: 110px; resize: vertical; }
form.contact-form button { align-self: flex-start; margin-top: 10px; }

.photo-upload__heading {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
form.contact-form .photo-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
form.contact-form .photo-upload__control {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.photo-upload__control:hover {
  border-color: rgba(184, 134, 59, 0.6);
  background: rgba(255, 255, 255, 0.75);
}
.photo-upload__input:focus-visible + .photo-upload__control {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 59, 0.16);
}
.photo-upload__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 15px 20px;
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: background-color .3s ease;
}
.photo-upload__control:hover .photo-upload__button { background: var(--gold); color: var(--navy-dark); }
.photo-upload__button svg { width: 18px; height: 18px; }
.photo-upload__status {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 13px 18px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: none;
}
.photo-upload[data-state="error"] .photo-upload__control { border-color: #b3423a; }
.photo-upload[data-state="error"] .photo-upload__status { color: #b3423a; }
.photo-upload__hint {
  display: block;
  margin-top: 7px;
  color: var(--text-light);
  font-size: 0.78rem;
  line-height: 1.5;
}

.map-embed { margin-top: 30px; filter: grayscale(0.3) contrast(1.05); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ============ Page hero (inner) ============ */
.page-hero {
  position: relative;
  padding: 210px 0 90px;
  text-align: left;
  color: var(--white);
  background: var(--navy-dark);
  overflow: hidden;
}
.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,20,31,.8), rgba(10,20,31,.88)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.breadcrumb { color: rgba(255,255,255,0.55); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.breadcrumb a { color: var(--gold-light); }

/* ============ Footer ============ */
footer.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding: 100px 0 30px; position: relative; }
footer.site-footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer-grid img { height: 52px; }
.footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-grid h4 { color: var(--white); font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 22px; font-weight: 600; }
.footer-grid ul li { margin-bottom: 13px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ============ Mobile nav ============ */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row, .service-row.flip { grid-template-columns: 1fr; gap: 30px; }
  .service-row.flip .service-media { order: 0; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 90px 0; }
}

@media (max-width: 700px) {
  nav.main-nav {
    position: fixed;
    inset: 0;
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease;
    z-index: 200;
  }
  body.nav-open nav.main-nav { opacity: 1; visibility: visible; }
  nav.main-nav ul { flex-direction: column; gap: 28px; text-align: center; }
  nav.main-nav a { color: var(--white) !important; font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--line-light); }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 160px 0 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 60px; }
  form.contact-form .photo-upload__control { flex-direction: column; }
  .photo-upload__button { justify-content: center; }
  .photo-upload__status { justify-content: center; text-align: center; }
}

/* ============ Project detail page ============ */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin: 6px 0 46px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-meta .meta-item { min-width: 140px; }
.project-meta .meta-item span.label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.project-meta .meta-item span.value {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--navy);
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
  margin: 10px 0 60px;
}
.detail-gallery .gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.detail-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.detail-gallery .gallery-item:hover img { transform: scale(1.06); }
.detail-gallery .gallery-item.featured { grid-column: span 2; grid-row: span 2; }
.detail-gallery.gallery-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 400px; margin: 0 0 50px; }
.split-gallery { display: flex; flex-direction: column; gap: 28px; margin: 0 0 50px; }
.split-gallery .split-item { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); }
.split-gallery .split-item img { display: block; width: 100%; height: auto; }
.split-gallery .split-item figcaption {
  padding: 14px 20px;
  background: var(--navy);
  color: var(--ivory);
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 500;
}
.gallery-item .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--navy-dark);
  color: var(--gold-light);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 2px;
}
.gallery-subhead { display:flex; align-items:center; gap:12px; margin: 0 0 20px; }
.gallery-subhead h3 { font-size: 1.05rem; color: var(--navy); margin:0; }
.gallery-subhead .dot { width:8px; height:8px; border-radius:50%; background: var(--gold); display:inline-block; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.back-link svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .detail-gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .detail-gallery.gallery-3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
}
@media (max-width: 700px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .detail-gallery .gallery-item.featured { grid-column: span 2; grid-row: span 2; }
  .detail-gallery.gallery-3 { grid-template-columns: repeat(1, 1fr); grid-auto-rows: 300px; }
  .project-meta { gap: 26px; }
}
