/* Themapagina wijnhuis: tekst + fotogalerij (wijnorg/wijnhuizen/) */

/* Wijn.org-logo in header */
.header .logo:not(.logo--wijnhuis) {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  max-width: min(100%, 220px);
  width: auto;
  height: auto;
}

/* Wijnhuis-logo: vaste slot + wit vlak voor leesbaarheid op gekleurde header */
.header .wijnhuis-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100%, 220px);
  height: 72px;
  min-height: 72px;
  margin: 0 auto 12px;
  padding: 0.35rem 0.75rem;
  line-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.header .wijnhuis-logo-wrap .logo--wijnhuis,
.header img.logo--wijnhuis {
  display: block;
  max-width: min(100%, 220px);
  max-height: 72px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center center;
}

body[class*="wijnhuis-page--"] .header {
  padding: 36px 20px;
}

body[class*="wijnhuis-page--"] .header h1 {
  margin: 0;
  font-size: 1.76em;
}

body[class*="wijnhuis-page--"] .header .wijnhuis-logo-wrap + h1 {
  margin-top: 0;
}

body[class*="wijnhuis-page--"] .header p {
  margin: 10px 0 0;
  font-size: 1.1em;
}

/* Shop-knop: zichtbaar als button, niet als platte link */
a.wijnhuis-shop-btn {
  display: inline-block;
  box-sizing: border-box;
  min-width: 7.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.6rem;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: #8b4513;
  color: #fff !important;
  text-decoration: none !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.12);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
a.wijnhuis-shop-btn:hover,
a.wijnhuis-shop-btn:focus-visible {
  background: #6b3410;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.14);
  outline: 2px solid #fff4e6;
  outline-offset: 2px;
}
a.wijnhuis-shop-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
a.wijnhuis-shop-btn:visited {
  color: #fff !important;
}
.header .wijnhuis-header-actions {
  margin: 1.15rem 0 0;
}
.header a.wijnhuis-shop-btn {
  background: #fff;
  color: #6b3410 !important;
  border: 2px solid #fff;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.22);
}
.header a.wijnhuis-shop-btn:visited {
  color: #6b3410 !important;
}
.header a.wijnhuis-shop-btn:hover,
.header a.wijnhuis-shop-btn:focus-visible {
  background: #fff4e6;
  color: #5c2e0e !important;
  outline-color: #d2b48c;
}

.container ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
  padding: 0;
}
.container li {
  margin-bottom: 0.35rem;
}
.wijnhuis-meta {
  font-size: 1.05em;
  color: #555;
  margin: 0 0 1.5rem;
}
.wijnhuis-meta a {
  color: #8B4513;
  font-weight: 600;
}
.wijnhuis-gallery-note {
  font-size: 0.95em;
  color: #666;
  margin: -0.5rem 0 1.25rem;
}
.wijnhuis-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.wijnhuis-gallery figure {
  margin: 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #faf8f4;
}
.wijnhuis-gallery img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.wijnhuis-gallery figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.88em;
  color: #666;
  border-top: 1px solid #eee;
}
.wijnhuis-gallery figure.wijnhuis-gallery__wide {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .wijnhuis-gallery figure.wijnhuis-gallery__wide img {
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    background: #f0ebe3;
  }
}
