/**
 * @file
 * Inner pages in the style of the walk through the halls: the page body
 * between the walk's header and footer, articles, pages and lists.
 *
 * Colors and fonts come from the walk (artpalace_walk/css/walk.css).
 */

body:has(.lap-site) {
  background: #f1f5f2;
}

.lap-site {
  line-height: 1.55;
}

/* The same width as the list of the walk: 1200px of content between the
   side paddings. */
.lap-site__body {
  box-sizing: content-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(16px, 5vw, 72px) 64px;
}

.lap-site__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.lap-site__main:focus {
  outline: 0;
}

.lap-site__main > .region,
.lap-site__main .block {
  margin: 0;
}

/* Breadcrumb, messages and tabs. */
.lap-site__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.lap-site__top .breadcrumb,
.lap-site__top .breadcrumb__list {
  margin: 0;
  padding: 0;
}

.lap-site .breadcrumb__item,
.lap-site .breadcrumb__link {
  color: var(--lap-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lap-site .tabs {
  margin: 0;
}

/* Page title of pages without their own heading (lists, search, forms). */
.lap-site .page-title,
.lap-site .block-page-title-block h1 {
  margin: 0;
  color: var(--lap-ink);
  font-family: var(--lap-sans);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lap-site h2,
.lap-site h3 {
  color: var(--lap-ink);
  font-family: var(--lap-sans);
  font-weight: 400;
}

/* Article and page --------------------------------------------------------- */

.lap-article {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.lap-article__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 980px;
}

.lap-article__hall,
.lap-article__label {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: var(--lap-green);
  font-family: var(--lap-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.lap-article__hall:hover {
  color: var(--lap-green-dark);
}

.lap-article__hall-num {
  color: var(--lap-green);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.lap-article__title {
  margin: 0;
  color: var(--lap-ink);
  font-family: var(--lap-sans);
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lap-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--lap-text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.lap-article__kind {
  color: var(--lap-green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The picture under the arch of the Palace logo. */
.lap-article__hero {
  max-width: 980px;
  margin: 0;
}

.lap-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  border-radius: 50% 50% 0 0 / 9% 9% 0 0;
  background: var(--lap-tint);
  object-fit: cover;
}

.lap-article__body {
  max-width: 720px;
  color: var(--lap-text);
  font-family: var(--lap-serif);
  font-size: 18px;
  line-height: 1.7;
}

.lap-article__body p {
  margin: 0 0 1.1em;
}

.lap-article__body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lap-article__body img {
  max-width: 100%;
  height: auto;
}

.lap-article__body h2,
.lap-article__body h3 {
  margin: 1.6em 0 0.6em;
  font-size: 27px;
  line-height: 1.2;
}

/* Photos: a grid of the article's images, opened in the lightbox. */
.lap-article__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lap-article__gallery .field__items,
.lap-article__gallery .field--name-field-media > div:not(.field__label) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.lap-article__gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--lap-tint);
  transition: filter 0.2s ease;
}

.lap-article__gallery a:hover img {
  filter: brightness(1.06);
}

.lap-article__gallery .field__label {
  display: none;
}

.lap-article__tags .field__label {
  display: none;
}

.lap-article__tags .field__items,
.lap-article__tags .field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lap-article__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--lap-line);
  color: var(--lap-text);
  font-size: 14px;
  text-decoration: none;
}

/* More in the same hall. */
.lap-article__more {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--lap-ink);
}

.lap-article__more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.lap-article__more-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.1;
}

/* Lists of teasers (sections that are not halls, the default front page). */
.lap-site .view-content:has(.lap-teaser),
.lap-site .views-view-grid:has(.lap-teaser) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 36px 28px;
}

.lap-teaser {
  margin: 0;
}

/* Views pager: transparent squares as in the walk list, the current page
   filled, all of one size. */
.lap-site .pager {
  margin-top: 36px;
}

.lap-site .pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 0 0 1px;
  list-style: none;
}

.lap-site .pager__item {
  display: flex;
  width: auto;
  height: auto;
  margin: 0 0 0 -1px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.lap-site .pager__item::before,
.lap-site .pager__item::after {
  content: none;
}

.lap-site .pager__link,
.lap-site .pager__item--active {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  width: auto;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--lap-ink);
  border-radius: 0;
  background: transparent;
  color: var(--lap-ink);
  font-size: 14px;
  text-decoration: none;
}

.lap-site .pager__link:hover {
  background: rgba(7, 103, 55, 0.08);
  color: var(--lap-ink);
}

.lap-site .pager__item--active {
  border-color: var(--lap-green);
  background: var(--lap-green);
  color: #fff;
}

.lap-site .pager__item--ellipsis {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  color: var(--lap-muted);
}

.lap-site .pager__link svg,
.lap-site .pager__link img {
  width: 14px;
  height: 14px;
}

/* Header tools on inner pages: search and the way into the walk. */
.lap-walk__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lap-walk__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.lap-walk .lap-walk__icon {
  color: var(--lap-ink);
}

.lap-walk .lap-walk__icon:hover {
  color: var(--lap-green);
}

/* The term in the view header shows its description only, as a lead; its
   name is already the page heading. On a hall's section page the tabs name
   the section, so the header is left out. */
.lap-site .view-taxonomy-term .view-header {
  max-width: 720px;
  margin-bottom: 36px;
  color: var(--lap-text);
  font-family: var(--lap-serif);
  font-size: 17px;
  line-height: 1.6;
}

.lap-site .view-taxonomy-term .view-header :is(h2, h3),
.lap-site .view-taxonomy-term .view-header .taxonomy-term__title {
  display: none;
}

.lap-site--section .view-taxonomy-term .view-header,
.lap-site--section .feed-icons {
  display: none;
}

.lap-site .feed-icons,
.lap-site .view-footer {
  margin-top: 24px;
}

/* Olivero's 14-column grid regions: the page body sets the width here. */
.lap-site .grid-full,
.lap-site .region--content,
.lap-site .region--content-above,
.lap-site .region--content-below {
  display: block;
  grid-template-columns: none;
}

.lap-site .grid-full > *,
.lap-site .region--content > * {
  grid-column: auto;
}

/* A breadcrumb of only "Home" adds nothing to the header's logo link. */
.lap-site .breadcrumb:has(.breadcrumb__item:only-child) {
  display: none;
}

.lap-site__top:not(:has(:is(.breadcrumb:not(:has(.breadcrumb__item:only-child)), .messages, .tabs, .local-actions))) {
  display: none;
}
