/* Shared styles for /2026/europe/ */

:root {
  --bg: #e8e9eb;
  --card: #ffffff;
  --text: #2b2d30;
  --muted: #6e7277;
  --line: #e1e3e6;
  --link: #bf5700;
  --mast: #2c3a47;
  --scot: #2a5aa0;
  --irl: #2f7a4b;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:active { text-decoration: none; color: #708090; }
a:hover.masthead-title { color: #f38c43;}

/* ---- Page card */
.wrapper {
  max-width: 1100px;
  margin: 20px auto 60px;
  overflow: hidden;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.content { padding: 28px 40px 40px; }

/* ---- Masthead: trip title and navigation, built into the top of the card */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding: 18px 40px;
  background: var(--mast);
  /* thin two-color rule: Scotland blue, Ireland green */
  border-bottom: 8px solid;
  border-image: linear-gradient(to right, var(--scot) 50%, var(--irl) 50%) 1;
}
.masthead-title {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.masthead-title a { color: #fff; text-decoration: none; }
.masthead-title a:hover { color: #f38c43; }
.masthead-title .flag {
  height: 20px;
  width: auto;
  margin-right: 7px;
  vertical-align: -2px;
  border-radius: 2px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a {
  color: #c9d2da;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }

.breadcrumb {
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

h1 {
  margin: 0 0 0.3em;
  font-family: var(--serif);
  font-weight: normal;
  font-size: 2.2rem;
  line-height: 1.2;
  text-align: center;
}
h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 14px auto 0;
  background: #c3c7cc;
}

.subtitle {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Home page */
.hero {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  margin: 0 0 24px;
  border-radius: 4px;
}

.intro {
  max-width: 100%; /* 760px */
  /* margin: 0 auto 32px; */
  background-color: #f2f2f2;
  padding: 2px 2px 2px 30px;
  border-radius: 8px;
}

/* ---- Navigation cards (home and section pages) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; /* 24px */
  margin-top: 24px;
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover img { transform: scale(1.03); }
.cards-home .card img { aspect-ratio: 2 / 1; }

/* Title sits over the bottom of the image */
.card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 20px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---- Vimeo videos */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  /* background: #000; */
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Photo grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery a {
  display: block;
  border-radius: 3px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Previous / next outing */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager span:last-child { text-align: right; }

/* ---- TOP button */
.top-wrap {
  margin: 0 0 32px;
  text-align: center;
}
.top-btn {
  padding: 8px 22px;
  border: 1px solid #d6d0c6;
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.top-btn:hover { background: var(--bg); }

/* ---- Links page */
.link-list {
  font-size: 1.2em;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
.link-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.link-list img {
  flex: none;
  width: 100px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
}
.link-list span { overflow-wrap: anywhere; }

/* ---- Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}
.lb[hidden] { display: none; }

.lb figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 140px);
  margin: 0;
}
.lb img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}
.lb figcaption {
  padding-top: 10px;
  color: #ddd;
  font-size: 0.95rem;
  text-align: center;
  margin: 0 10px; /* added */
}
.lb-caption { display: block; margin-bottom: 2px; }
.lb-caption[hidden] { display: none; }
.lb-caption a { color: yellow; text-decoration: none; }
.lb-caption a:hover { color: #fff; }

.lb-more {
  display: table;
  margin: 0 auto 4px;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: underline;
}
.lb-more[hidden] { display: none; }

/* "More about this photo" panel */
.notes {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}
.notes[hidden] { display: none; }

.notes-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  line-height: 1.65;
}
.notes-card h1, .notes-card h2, .notes-card h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.25;
}

.notes-card p {
font-size: 1.1em;
}

.notes-card p.credit {
color: #777;
border-top: 1px solid #ccc;
padding-top: 10px;
font-size: 1em;
}

.notes-card h1::after { display: none; }
.notes-card img { max-width: 100%; height: auto; }
.notes-body {
  overflow-y: auto;
  padding: 36px 44px 60px;
}
.notes-body > :first-child { margin-top: 0; }
.notes-body > :last-child { margin-bottom: 0; }
.notes-status { color: var(--muted); }

.notes-close {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 4px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.notes-close:hover { color: var(--text); }
.lb-count { color: #999; font-size: 0.85rem; }

.lb button {
  position: absolute;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.lb button:hover { opacity: 1; }
.lb button[hidden] { display: none; }
.lb-close { top: 8px; right: 8px; }
.lb-prev  { top: 50%; left: 8px;  transform: translateY(-50%); }
.lb-next  { top: 50%; right: 8px; transform: translateY(-50%); }

/* ---- Small screens */
@media (max-width: 700px) {
  .wrapper { margin: 0 0 24px; border-radius: 0; }
  .content { padding: 20px 16px 28px; }
  .masthead { padding: 14px 16px; }
  .masthead-title { font-size: 1.25rem; }
  .hero { aspect-ratio: 2 / 1; }
  h1 { font-size: 1.8rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lb figure { max-width: 100vw; }
  .lb img { max-height: calc(100vh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .notes { padding: 0; }
  .notes-card { height: 100%; max-height: none; border-radius: 0; padding-top: 44px; }
  .notes-body { padding: 8px 20px 28px; }
}

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