/* Plaza 15 Dock — site styles */

:root {
  --navy: #054b81;
  --blue: #156aa3;
  --sky: #0079cc;
  --slate: #283540;
  --text: #333;
  --muted: #666;
  --line: #dde3e8;
  --bg: #e9edf1;
  --white: #fff;
  --radius: 4px;
  --max: 1000px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy) url(../images/body.gif);
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--blue); }
a:hover, a:focus { color: var(--navy); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: normal;
  color: #444;
  line-height: 1.25;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: .5rem 1rem;
  background: var(--white);
  color: var(--navy);
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Layout */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation */

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: .45rem 1rem;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.site-nav a:hover,
.site-nav a:focus { background: var(--navy); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--navy); font-weight: bold; }

/* Page frame */

.page {
  background: var(--white);
  border: 12px solid var(--navy);
}

/* Header */

.site-header {
  background: var(--sky) url(../images/banner.jpg) no-repeat right top;
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 20px 24px;
}
.site-header a { display: block; min-width: 0; line-height: 0; }
.site-header img { width: 500px; max-width: 100%; }

.tagline {
  margin: 0;
  padding: .45rem 1rem;
  background: var(--slate);
  color: var(--white);
  font: italic 15px/1.5 Georgia, "Times New Roman", Times, serif;
  letter-spacing: 1px;
  text-align: center;
}

/* Content */

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 32px;
  padding: 16px 24px 32px;
}

main h1 {
  font-size: 2rem;
  margin: .4em 0 .6em;
  padding-bottom: .3em;
  border-bottom: 1px dotted #bbb;
}
main h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }

.lead { font-size: 1.15rem; margin: 0 0 1.5rem; }

.details { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.details li { margin: 0 0 .4rem; }

.features { padding-left: 1.25rem; }
.features li { margin-bottom: .25rem; }

.button {
  display: inline-block;
  padding: .6rem 1.2rem;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
}
.button:hover, .button:focus { background: var(--navy); color: var(--white); }

/* Sidebar */

.sidebar section {
  padding: 10px;
  background: linear-gradient(#e6e6e6, var(--white) 107px);
  margin-bottom: 20px;
}
.sidebar h2 {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-family: inherit;
  text-transform: uppercase;
  color: #000;
}
.sidebar a { font-size: .9rem; text-decoration: none; }
.sidebar img { display: block; margin-bottom: .25rem; }

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  line-height: 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery a:hover img,
.gallery a:focus img { transform: scale(1.04); }

/* Map */

.map {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 .25rem;
  background: var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 1.5rem 0;
}
.contact-cards div {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-cards h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.contact-cards p { margin: 0; }
.contact-cards .big { font-size: 1.25rem; }

/* Footer */

.site-footer {
  padding: 1rem 0 2rem;
  color: #dfe8f0;
  text-align: center;
  font-size: .9rem;
}
.site-footer a { color: var(--white); }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  padding: 48px 56px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
.lightbox figcaption { color: #eee; margin-top: .5rem; font-size: .9rem; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover,
.lightbox button:focus { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Small screens */

@media (max-width: 760px) {
  .page { border-width: 6px; }
  .site-header {
    min-height: 0;
    padding: 16px;
    background-image: none;
  }
  .content {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 16px 24px;
  }
  main h1 { font-size: 1.6rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lightbox { padding: 56px 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
}
