/* Layout adjustments shared by the homepage and the portfolio. */
:root { --ink: #241d1a; --wine: #4a1a1d; --cream: #f5f1ec; --rule: #e3d9cf; }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 4; left: 20px; top: 12px; padding: 12px 18px; background: white; color: var(--wine); }
.skip-link:not(:focus) { clip-path: inset(50%); }
#top { display: grid; align-items: end; min-height: 780px; height: auto !important; }
#top .hero-copy { position: relative !important; text-shadow: 0 1px 5px rgba(20,12,10,.5); }
#top .hero-copy a { text-align: center; justify-content: center; text-shadow: none; }
#top .hero-copy .hero-portfolio { background: rgba(26,17,14,.34); }
#top .hero-copy .hero-portfolio:hover { background: rgba(26,17,14,.72); }
.hdr-cta { white-space: nowrap; }
.portfolio-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.package-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.package-grid > div { padding-inline: clamp(20px, 2.8vw, 34px) !important; }
.addons-grid { min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important; }
.preview-note, .form-status { font-size: 15px; line-height: 1.5; }
.preview-note { padding: 12px 14px; margin-top: 16px; border-left: 2px solid var(--wine); color: var(--ink); background: var(--cream); }
.form-status { flex: 1 0 100%; color: var(--wine); font-weight: 500; }
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#kontakt form label, #kontakt form input, #kontakt form textarea { min-width: 0; }
#kontakt button:disabled { opacity: .65; cursor: not-allowed !important; }
.contact-photo { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-links { display: grid; gap: 10px; padding: clamp(18px, 3vw, 26px); background: white; border: 1px solid var(--rule); border-radius: 6px; }
.contact-links h3 { margin: 0 0 4px; font-size: 30px; line-height: 1.15; }
.contact-direct { display: grid; gap: 2px; min-height: 64px; padding: 10px 14px; border-radius: 6px; border: 1px solid transparent; background: var(--cream); color: var(--wine); text-decoration: none; }
.contact-direct:hover, .contact-direct:focus-visible { background: #eee5de; border-color: #9c6255; }
.contact-direct-label { font-size: 14px; font-weight: 400; color: #4c423d; }
.contact-direct-value { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .15em; }
.instagram-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.drone-shade { background: linear-gradient(0deg, rgba(20,14,10,.64), rgba(20,14,10,.18) 66%) !important; }
.ft a:focus-visible, #top a:focus-visible, .hdr-cta:focus-visible, #kontakt button:focus-visible,
.package-grid a:focus-visible, #o-mnie .btn:focus-visible { outline-color: #9c6255; box-shadow: 0 0 0 3px white; }

/* Portfolio page, matching the colors, type and spacing of the supplied homepage. */
.gallery-page { margin: 0; background: white; color: var(--ink); font: 300 17px/1.65 'Jost', system-ui, sans-serif; }
.gallery-page .gallery-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px max(4vw, 20px); border-bottom: 1px solid var(--rule); }
.gallery-page .gallery-header img { display: block; width: auto; height: 30px; max-width: 100%; }
.gallery-page .gallery-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: var(--wine); color: white; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 999px; white-space: nowrap; }
.gallery-page .gallery-cta:hover { background: #2a0e10; }
.gallery-shell { padding: clamp(40px, 7vw, 96px) max(5vw, 20px); }
.gallery-shell > div { max-width: 1240px; margin-inline: auto; }
.gallery-page .gallery-kicker { font: italic 500 24px/1.2 'Cormorant Garamond', Georgia, serif; color: var(--wine); margin: 0 0 10px; }
.gallery-page h1, .gallery-page h2 { font: 500 clamp(38px, 4.7vw, 64px)/1.06 'Cormorant Garamond', Georgia, serif; margin: 0; text-wrap: balance; }
.gallery-page h2 { font-size: clamp(32px, 4vw, 48px); }
.gallery-page .gallery-intro { max-width: 640px; margin: 16px 0 36px; }
.gallery-wall { columns: 3; column-gap: 16px; }
.gallery-wall img { display: block; break-inside: avoid; width: 100%; height: auto; margin: 0 0 16px; border-radius: 3px; background: var(--cream); }
.gallery-footer { background: var(--cream); text-align: center; padding: 54px 20px; }
.gallery-footer p { margin: 16px 0 24px; }
.gallery-back { color: var(--wine); display: inline-flex; min-height: 44px; align-items: center; margin-inline-end: 20px; }

@media (min-width: 821px) and (max-width: 1050px) {
  .hdr { gap: 16px !important; }
  .hdr .nav { gap: 18px !important; }
  .hdr .logo { height: 25px !important; }
}
@media (max-width: 1050px) {
  .portfolio-grid, .gallery-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); columns: 2; }
}
@media (max-width: 820px) {
  #top { min-height: clamp(600px, 92svh, 720px); }
  #top .hero-copy { padding-bottom: 44px !important; }
  .home-section { padding-block: 68px !important; }
  #o-mnie, #faq { padding-top: 0 !important; }
  #faq > div { padding-top: 56px !important; }
  .two-col, .package-grid { flex-direction: column; }
  .two-col > * { flex-basis: auto !important; width: 100%; }
  .package-grid { grid-template-columns: minmax(0, 1fr); gap: 28px !important; }
  .drone { height: 360px !important; }
  .instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .contact-photo img { flex: none !important; height: auto; aspect-ratio: 4 / 3; min-height: 0 !important; }
}
@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .facts-grid, .process-grid { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  /* Keep the couple clear of the headline on narrow screens. */
  #top { --photo: clamp(236px, 72vw, 360px); min-height: 0; padding-top: var(--photo); background: #30241e !important; }
  #top > img, #top .hero-scrim { height: calc(var(--photo) + 36px) !important; bottom: auto !important; }
  #top > img { object-position: 58% 60% !important; }
  #top .hero-scrim { background: linear-gradient(180deg, rgba(20,12,10,.06) 10%, rgba(20,12,10,.12) 48%, #30241e 100%) !important; }
  #top .hero-copy { padding-bottom: 36px !important; }
  #top .hero-copy h1 { font-size: clamp(36px, 10vw, 44px) !important; }
  #top .hero-copy h1 + p { font-size: 17px !important; margin-top: 16px !important; }
  #top .hero-copy h1 + p + div { margin-top: 24px !important; gap: 12px !important; }
  #top .hero-copy a { padding-inline: 20px !important; }
  #o-mnie > div { gap: 32px !important; }
  #kontakt > div { gap: 30px !important; }
  .gallery-wall { columns: 1; }
  .gallery-page .gallery-header img, .hdr .logo { width: min(42vw, 190px) !important; height: auto !important; }
  .gallery-page .gallery-cta, .hdr-cta { padding-inline: 14px !important; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
