/* Bier van de maand — fullscreen signage (portrait + landscape). */

@font-face {
  font-family: 'Franklin';
  src: url('../fonts/FranklinGothic.ttf');
  font-display: swap;
}

/* Full-bleed: strip Twenty theme chrome the same way as pricelist. */
body.page-bvdm,
body.page-template-bvdm,
body.spont-signage.page-bvdm {
  margin: 0 !important;
  padding: 0 !important;
  background: #282728 !important;
  overflow: hidden !important;
}

body.page-bvdm .wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}

body.page-bvdm .wp-block-separator,
body.page-bvdm .skip-link,
body.page-bvdm header,
body.page-bvdm footer,
body.page-bvdm .wp-block-template-part,
body.page-bvdm .wp-block-post-title,
body.page-bvdm .entry-header,
body.page-bvdm .wp-block-post-featured-image,
body.page-bvdm .wp-block-post-date,
body.page-bvdm .wp-block-post-author,
body.page-bvdm nav {
  display: none !important;
}

body.page-bvdm .wp-block-post-content,
body.page-bvdm .entry-content,
body.page-bvdm .wp-block-group,
body.page-bvdm .is-layout-constrained {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.page-bvdm .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.page-bvdm .has-global-padding {
  padding: 0 !important;
}

body.page-bvdm .has-global-padding :where(:not(.alignfull)) {
  padding: 0 !important;
}

.bvdm {
  --bvdm-bg: #282728;
  --bvdm-fg: #fff;
  --bvdm-price-bg: wheat;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--bvdm-bg);
  color: var(--bvdm-fg);
  font-family: 'Franklin', Helvetica, sans-serif;
  overflow: hidden;
  z-index: 9999;
}

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

.bvdm-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: clamp(1.5rem, 4vw, 3rem);
  opacity: 0.7;
  text-align: center;
  padding: 2rem;
}

.bvdm-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.bvdm-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bvdm-visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: bvdm-zoom 1s ease-in-out;
}

.bvdm-visual--placeholder {
  opacity: 0.25;
}

.bvdm-visual--placeholder svg,
.bvdm-visual--placeholder img {
  width: min(40vw, 420px);
  height: auto;
}

.bvdm-copy {
  text-align: left;
  padding: 0 6vw;
}

.bvdm-title {
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 1.05;
  margin: 0;
  font-weight: normal;
}

.bvdm-beer {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: normal;
  margin: 0.6em 0 0.25em;
  line-height: 1.1;
}

.bvdm-alcohol {
  opacity: 0.85;
  font-weight: normal;
}

.bvdm-attributes {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 3rem);
  margin: 0.2em 0 0;
  line-height: 1.2;
}

.bvdm-description {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  margin: 0.8em 0 0;
  max-width: 36em;
  opacity: 0.92;
}

.bvdm-price-wrap {
  position: absolute;
  right: 6vw;
  bottom: 8vh;
}

.bvdm-price {
  display: block;
  background: var(--bvdm-price-bg);
  color: #111;
  border-radius: clamp(12px, 1.5vw, 28px);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: normal;
  line-height: 1;
  padding: 0.35em 0.55em;
  min-width: 3.2em;
  text-align: center;
  animation: bvdm-bottom2top 1s ease-in-out;
}

/* Portrait (default / Pi): image top, copy bottom */
.bvdm--portrait .bvdm-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48vh;
  animation: bvdm-top2bottom 1s ease-in-out;
}

.bvdm--portrait .bvdm-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 52vh;
  padding-top: 2vh;
  animation: bvdm-left2right 1s ease-in-out;
}

/* Landscape: image left, copy right */
.bvdm--landscape .bvdm-stage {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.bvdm--landscape .bvdm-visual {
  flex: 0 0 42%;
  height: 100%;
  padding: 6vh 2vw;
  animation: bvdm-right2left 1s ease-in-out;
}

.bvdm--landscape .bvdm-copy {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 8vw;
  animation: bvdm-left2right 1s ease-in-out;
}

.bvdm--landscape .bvdm-title {
  font-size: clamp(3rem, 6vw, 8rem);
}

.bvdm--landscape .bvdm-beer {
  font-size: clamp(2.5rem, 4.5vw, 6rem);
  margin-top: 1.2em;
}

.bvdm--landscape .bvdm-description {
  margin-top: 1.4em;
  margin-right: 8vw;
}

.bvdm--landscape .bvdm-price-wrap {
  position: absolute;
  right: 5vw;
  bottom: auto;
  top: 58%;
}

.bvdm--landscape .bvdm-price {
  font-size: clamp(4rem, 8vw, 9rem);
  border-radius: 40px;
  min-width: 4em;
}

.bvdm--no-image.bvdm--portrait .bvdm-visual {
  display: none;
}

.bvdm--no-image.bvdm--portrait .bvdm-copy {
  top: 0;
  height: 100%;
  padding-top: 10vh;
}

.bvdm--no-image.bvdm--landscape .bvdm-visual {
  display: none;
}

.bvdm--no-image.bvdm--landscape .bvdm-copy {
  flex: 1 1 100%;
  padding-left: 8vw;
}

@keyframes bvdm-left2right {
  from {
    transform: translateX(-40vw);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bvdm-right2left {
  from {
    transform: translateX(30vw);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bvdm-top2bottom {
  from {
    transform: translateY(-30vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bvdm-bottom2top {
  from {
    transform: translateY(20vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bvdm-zoom {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
