/* The destination uses the same paper, type scale and page edges as the home page. */
@font-face {
  font-family: 'Heebo Gallery'; src: url('assets/heebo-gallery-700.woff') format('woff');
  font-style: normal; font-weight: 700; font-display: swap;
}
.home-page #place { background: var(--paper); color: var(--ink); }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.66fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "introduction photographs" "topics photographs";
  column-gap: var(--column-gap);
  align-items: start;
}
.halkidiki-guide [hidden] { display: none !important; }
.guide-intro { grid-area: introduction; min-width: 0; }
.home-page .guide-intro #place-title { margin: 0; }
.guide-intro #place-title :is(span, em) { display: block; }
.home-page .guide-intro #place-title span { color: var(--ink); }
.home-page .guide-intro #place-title em { color: var(--sea-blue); font-weight: inherit; font-style: normal; }
.guide-intro p {
  max-width: 36ch;
  margin: clamp(.7rem, 1vw, 1.15rem) 0 clamp(1.35rem, 2vw, 2.2rem);
  color: var(--muted);
  font: 400 clamp(1.04rem, 1.13vw, 1.3rem)/1.65 var(--body);
  text-wrap: pretty;
}
.guide-topics { grid-area: topics; min-width: 0; border-bottom: 1px solid var(--home-rule); }
.guide-topic {
  display: grid;
  grid-template-columns: clamp(50px, 4.55vw, 84px) minmax(0, 1fr) 22px;
  gap: clamp(.75rem, 1.1vw, 1.4rem);
  align-items: center;
  min-height: 52px;
  padding: clamp(.45rem, .7vw, .8rem) 0;
  border-top: 1px solid var(--home-rule);
  color: var(--muted);
  font: 400 clamp(1.1rem, 1.4vw, 1.52rem)/1.35 var(--body);
  letter-spacing: -.015em;
  text-decoration: none;
}
.guide-topic img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; }
.guide-topic i {
  width: 12px; height: 12px; margin: auto;
  border: 1px solid #778995; border-radius: 50%;
}
.guide-topic:is(:hover, [aria-selected="true"]) { color: var(--ink); }
.guide-topic[aria-selected="true"] { font-weight: 500; }
.guide-topic[aria-selected="true"] i {
  border-color: var(--sea-blue);
  background: radial-gradient(circle, var(--sea-blue) 0 37%, transparent 43%);
}
.guide-panels { grid-area: photographs; position: relative; min-width: 0; }
.guide-chapter { position: relative; min-width: 0; border-bottom: 1px solid var(--home-rule); }
.guide-slide { min-width: 0; margin: 0; }
.guide-photo {
  position: relative; isolation: isolate;
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-start-end-radius: clamp(1.65rem, 3.1vw, 4rem);
  background: #dce3e1;
}
.guide-photo :is(picture, img) { display: block; width: 100%; height: 100%; }
.guide-photo img { object-fit: cover; }
.guide-slide figcaption {
  min-height: 4.7rem;
  padding-block: clamp(.85rem, 1.15vw, 1.4rem);
  color: var(--ink);
  font: 400 clamp(1.04rem, 1.15vw, 1.35rem)/1.65 var(--body);
  text-wrap: pretty;
}
.guide-illustration {
  display: block; margin-top: .3rem; color: var(--muted);
  font: 400 .8rem/1.5 var(--body);
}
.guide-switch {
  grid-area: controls; align-self: start; justify-self: end; margin-top: .4rem;
  display: inline-flex; align-items: center; border-radius: 2rem;
  color: var(--ink); background: #faf8f0f5;
  border: 1px solid var(--home-rule);
}
.guide-switch button {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
}
.guide-switch button:hover { background: #142b4910; }
.guide-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guide-switch button:last-child svg { transform: rotate(180deg); }
.guide-count { white-space: nowrap; font: 500 .85rem/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .055em; }
.halkidiki-guide :is(.guide-topic, .guide-chapter, a):focus-visible { outline: 2px solid var(--sea-blue); outline-offset: 3px; }
.halkidiki-guide .guide-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
@media (prefers-reduced-motion: no-preference) {
  .guide-topic { transition: background .18s, color .18s; }
  .guide-topic:hover { background: #42698408; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); column-gap: 2rem; }
  .guide-photo { aspect-ratio: 4 / 3; }
  .guide-topic { grid-template-columns: 47px minmax(0, 1fr) 18px; }
}
@media (max-width: 850px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "introduction" "topics" "photographs"; }
  .guide-intro #place-title :is(span, em) { display: inline; }
  .guide-intro p { max-width: 48ch; margin: .55rem 0 1.1rem; }
  .guide-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(.9rem, 3vw, 2rem); margin-bottom: 1.2rem; }
  .guide-topic { min-height: 48px; grid-template-columns: clamp(32px, 7vw, 48px) minmax(0, 1fr) 14px; gap: .5rem; padding: .4rem 0; font-size: 1rem; }
  .guide-topic i { width: 9px; height: 9px; }
  .guide-topic:last-child { grid-column: 1 / -1; }
  .guide-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .guide-photo { aspect-ratio: 4 / 5; border-start-end-radius: 1.8rem; }
  .guide-chapter { display: grid; }
  .guide-slide figcaption { min-height: 0; padding: .85rem 0 .95rem; }
}
@media (max-width: 355px) {
  .guide-topics { column-gap: .6rem; }
  .guide-topic { grid-template-columns: 27px minmax(0, 1fr) 9px; gap: .35rem; }
}


/* The image and its caption share a single desktop viewport. */
.halkidiki-guide[data-ready] .guide-slide:has(.guide-stack) {
  display: grid;
  grid-template: "caption caption" auto "photo photo" auto / minmax(0, 1fr) 44px;
  column-gap: .65rem;
  align-items: start;
}
.halkidiki-guide[data-ready] .guide-stack,
.halkidiki-guide[data-ready] .guide-frame:not([hidden]) { display: contents; }
.guide-frame .guide-photo { grid-area: photo; }
.guide-slide figcaption { grid-area: caption; }
.guide-frame img { object-position: var(--focus, center); }
.guide-enlarge {
  grid-area: expand; display: grid; place-items: center; margin-top: .4rem;
  width: 44px; height: 44px; border: 1px solid var(--home-rule);
  border-radius: 50%; background: var(--paper); color: var(--ink);
}
.guide-enlarge:is(:hover, :focus-visible) { background: var(--ink); color: var(--paper); }
.halkidiki-guide[data-ready] .guide-slide:has(.guide-stack) :is(.guide-switch, .guide-enlarge) {
  grid-area: photo; position: relative; z-index: 2; align-self: start;
  margin: clamp(.75rem, 1.1vw, 1.1rem);
  box-shadow: 0 2px 10px rgb(20 43 73 / .1);
}
.halkidiki-guide[data-ready] .guide-switch { justify-self: left; }
.halkidiki-guide[data-ready] .guide-enlarge { justify-self: right; }
@media(max-width: 850px) {
  .guide-topics { margin-bottom: .9rem; }
  .guide-slide { display: flex; flex-direction: column; }
  .guide-slide figcaption {
    order: -1; min-height: 0; padding: 0 0 .85rem; margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.125rem); line-height: 1.6;
  }
  .guide-photo { aspect-ratio: 4 / 3; }
  .halkidiki-guide[data-ready] .guide-slide:has(.guide-stack) :is(.guide-switch, .guide-enlarge) {
    margin: .75rem;
  }
}
.guide-enlarge svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; }
.guide-enlarge:focus-visible,.guide-lightbox button:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
.halkidiki-guide:not([data-ready]) .guide-stack { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
.halkidiki-guide:not([data-ready]) .guide-stack .guide-frame { flex:0 0 100%; scroll-snap-align:start; }
.halkidiki-guide:not([data-ready]) .guide-chapter+.guide-chapter { margin-top:1.5rem; }
@media(min-width:851px) {
  .home-page #place { padding-block:clamp(1.75rem,4svh,3rem); }
  .guide-photo { aspect-ratio:auto; height:clamp(12rem,min(38vw,calc(100svh - 16.75rem)),40rem); }
  .guide-slide { display:flex; flex-direction:column; }
  .guide-slide figcaption {
    order:-1; min-height:0; margin:0;
    padding:0 0 clamp(.85rem,1.1vw,1.2rem);
    font-family:'Heebo Gallery',var(--body); font-weight:700; line-height:1.6;
  }
  .guide-topic { min-height:44px; }
}
@media(min-width:851px) and (max-height:740px) {
  .home-page .guide-intro #place-title { font-size:clamp(2.2rem,3.4vw,3.3rem); }
  .guide-intro p { max-width:43ch; margin:.6rem 0 .8rem; font-size:1rem; line-height:1.55; }
  .guide-topic { grid-template-columns:46px minmax(0,1fr) 18px; padding:.24rem 0; font-size:1.08rem; }
  .home-page #place { padding-block:1.35rem; }
}
@media(max-width:560px) {
  .guide-frame img { object-position:var(--mobile-focus,center); }
}
.guide-lightbox:not([open]) { display:none; }
.guide-lightbox {
  position:fixed; inset:0; width:min(96vw,100rem); height:min(94dvh,70rem);
  max-width:none; max-height:none; margin:auto; padding:0; border:0;
  background:#122537; color:#fbf9f3;
}
.guide-lightbox::backdrop { background:#07111bef; }
.lightbox-inner { display:grid; grid-template-rows:minmax(0,1fr) auto; height:100%; }
.lightbox-image { min-height:0; display:grid; place-items:center; overflow:hidden; }
.lightbox-image img { max-width:100%; max-height:100%; width:100%; height:100%; object-fit:contain; }
.lightbox-close { position:absolute; z-index:1; top:.8rem; right:.8rem; display:grid; place-items:center; width:44px; height:44px; border:1px solid #ced9df80; background:#142b49e8; color:#fff; border-radius:50%; }
.lightbox-close svg { width:20px; height:20px; }
.lightbox-footer { display:flex; align-items:center; justify-content:center; gap:1rem; padding:.4rem clamp(.8rem,2vw,2.4rem); }
.lightbox-controls { display:inline-flex; align-items:center; white-space:nowrap; gap:.2rem; font-size:.9rem; }
.lightbox-controls button { min-width:44px; min-height:44px; background:transparent; color:inherit; border:0; font:300 1.9rem/1 var(--body); }

.home-page .guide-local-link {
  display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
  color: var(--ink); font: 500 1rem/1.4 var(--body); border-bottom: 1px solid #7891a1;
  margin: -.3rem 0 1.3rem; padding: .45rem 0;
}
.guide-local-link .icon { width: 1.1rem; height: 1.1rem; }
.guide-local-link:hover { color: var(--sea-blue); }
