:root {
  color-scheme: light;
  --bg: #aeb1b1;
  --paper: #ffffff;
  --ink: #1f2328;
  --soft: #5f656b;
  --line: #6a7b8b;
  --accent: #173a60;
  --accent-dark: #0f2a45;
  --shadow: 0 18px 45px rgba(31, 35, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  padding: 12px 0 12px clamp(0px, 2vw, 22px);
  background: #6a7b8b;
  border-bottom: 0;
}

.brand {
  flex: 0 1 auto;
  max-width: min(500px, 50vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 14px;
}

nav a {
  padding: 7px 0;
  color: #f4f4f4;
  font-size: 1.16rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: white;
  border-color: transparent;
}

main {
  min-height: calc(100vh - 140px);
}

.homeStart,
.pageTitle,
.contentPage,
.textImage {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 54px) 0;
}

.homeStart {
  display: grid;
  min-height: calc(100vh - 170px);
  place-items: start center;
}

.homeStart img {
  width: auto;
  max-width: 100%;
  height: auto;
  box-shadow: none;
}

.button,
.contactForm button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.contactForm button:hover {
  background: var(--accent-dark);
}

.pageTitle h1,
.contentPage h1,
.textImage h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.pageTitle p,
.contentPage p,
.textImage p {
  color: var(--soft);
  font-size: 1.1rem;
}

.galleryGrid {
  display: grid;
  width: fit-content;
  max-width: calc(100% - 80px);
  margin: 0 auto 72px;
  grid-template-columns: repeat(4, max-content);
  gap: 18px 24px;
}

.galleryOverview {
  padding-top: clamp(32px, 6vw, 54px);
}

.galleryCard {
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.galleryCard img {
  width: auto;
  max-width: 100%;
  height: auto;
  padding: 0;
  object-fit: initial;
  background: transparent;
}

.galleryTitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 20px;
}

.galleryTitle a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 0;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.galleryTitle h1 {
  margin: 0;
  color: #31373d;
  font-size: 1.35rem;
  line-height: 1.2;
}

.photoGrid {
  column-count: 4;
  column-gap: 14px;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto 76px;
}

.photoTile {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
  cursor: zoom-in;
  break-inside: avoid;
}

.photoTile img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.photoCaption {
  display: block;
  padding: 7px 2px 0;
  color: #2d363e;
  font-size: 0.96rem;
  text-align: center;
}

.photoCaption b,
.photoCaption small,
.slideCaption b,
.slideCaption small {
  display: block;
}

.photoCaption b {
  font-size: 1.04rem;
}

.slideCaption b {
  font-size: 1.16rem;
}

.photoCaption small,
.slideCaption small {
  color: #53606a;
  font-size: 0.9em;
}

.slideshowPage main {
  min-height: calc(100vh - 110px);
}

.slideshow {
  display: grid;
  width: min(100%, 1480px);
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 34px) 22px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.slideshowTop,
.slideshowControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #23303b;
}

.slideshowTop {
  min-height: 36px;
}

.slideshowTop a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.slideshowTop span {
  padding: 4px 14px;
  border-radius: 4px;
  background: rgba(106, 123, 139, 0.22);
  color: #1d2832;
  font-size: 1.22rem;
  font-weight: 700;
}

.slideshowStage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
}

.slideshowStage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 250px);
  object-fit: contain;
}

.slideCaption {
  max-width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  color: #2d363e;
  font-size: 1.05rem;
  text-align: center;
}

.slidePrev,
.slideNext {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 72px;
  border: 0;
  border-radius: 4px;
  background: rgba(106, 123, 139, 0.48);
  color: white;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.slidePrev {
  left: 0;
}

.slideNext {
  right: 0;
}

.slideToggle {
  min-width: 86px;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: #6a7b8b;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.slideCount {
  min-width: 74px;
  color: #3f484f;
}

.textImage {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 70px);
}

.textImage img,
.contentPage img {
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.contentPage {
  max-width: 850px;
}

.addressImage {
  margin-top: 24px;
  background: white;
}

.muted {
  color: var(--soft);
}

.contactForm {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contactForm label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.contactForm input,
.contactForm textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.hpField {
  position: absolute;
  left: -9999px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px;
  background: rgba(11, 13, 16, 0.92);
}

.lightbox.isOpen {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.lightboxClose {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightboxPrev,
.lightboxNext {
  top: 50%;
  width: 52px;
  height: 74px;
  border-radius: 4px;
  font-size: 3rem;
  transform: translateY(-50%);
}

.lightboxPrev {
  left: 18px;
}

.lightboxNext {
  right: 18px;
}

.lightboxCount {
  position: absolute;
  bottom: 18px;
  left: 50%;
  color: white;
  transform: translateX(-50%);
}

.siteFooter {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 58px);
  border-top: 1px solid var(--line);
  color: var(--soft);
}

@media (max-width: 720px) {
  .siteHeader,
  .siteFooter {
    align-items: flex-start;
    flex-direction: column;
  }

  .siteHeader {
    min-height: 0;
    padding: 12px 14px;
  }

  .brand {
    max-width: min(420px, 100%);
  }

  nav {
    justify-content: flex-start;
  }

  .galleryCard {
    min-height: 0;
  }

  .galleryGrid {
    width: fit-content;
    max-width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .photoGrid {
    column-count: 2;
  }

  .slideshow {
    min-height: calc(100vh - 130px);
  }

  .slideshowTop {
    flex-wrap: wrap;
  }

  .slideshowStage img {
    max-height: calc(100vh - 285px);
  }

  .textImage {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 58px 12px;
  }

  .lightboxPrev,
  .lightboxNext {
    width: 42px;
    height: 58px;
    font-size: 2.4rem;
  }
}

@media (max-width: 460px) {
  .galleryGrid {
    grid-template-columns: 1fr;
  }

  .galleryCard img {
    width: 100%;
  }

  .photoGrid {
    column-count: 1;
  }
}
