/*
Theme Name: Ferme de la Potière v2
Description: Thème personnalisé pour la Ferme de la Potière – éleveur, boucher, charcutier et traiteur dans la Vienne.
Author: emandarine
Author URI: https://emandarine.com
Version: 2.0
*/

/* ─── Variables ─── */
:root {
  --red: #9C2330;
  --red-dark: #7e1c27;
  --beige: #F1EEE7;
  --dark: #191716;
  --mid: #555;
}

/* ─── Reset / Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1.2;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-weight: 400;
  color: inherit;
}

p {
  margin-bottom: 0.9rem;
}

a {
  text-decoration: none;
  color: inherit;
}

b,
strong {
  font-weight: 700;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: currentColor;
  display: inline-block;
  height: 1em;
  vertical-align: -0.125em;
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CTA Button ─── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 25px;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}

.btn-primary:hover {
  background: var(--dark);
}

/* ─── Back to top ─── */
#back-to-top {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #c8a96e;
  color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.25s;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--dark);
  color: transparent;
}

/* ══════════════════════════════════
       HEADER
    ══════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 80px;
  z-index: 920;
  background: transparent;
  transition: background-color 1.5s;
  padding: 0 10px;
}

#site-header.scrolled {
  background: var(--red);
}

.header-inner {
  max-width: 1344px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.header-logo {
  width: 150px;
  padding-left: 10px;
}

.header-logo img {
  height: 60px;
  width: 100%;
  object-fit: contain;
}

/* Hamburger */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 6px;
  z-index: 950;
  width: 150px;
  transition: all 0.3s ease-in-out;
  will-change: transform;
}

.hamburger-btn:hover {
  transform: skew(-10deg);
}

.hamburger-btn:hover span {
  background-color: var(--dark);
}

.hamburger-btn span {
  display: block;
  width: 35px;
  height: 5px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.hamburger-btn.open {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 950;
}

/* ─── Nav backdrop ─── */
#nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 910;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

#nav-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Nav drawer (slides in from right) ─── */
#nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 920;
  width: 350px;
  max-width: 85vw;
  height: 100%;
  background: var(--red);
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
}

#nav-overlay.open {
  transform: translateX(0);
  pointer-events: all;
}

.navbar,
.navbar-item,
.navbar-link,
.navbar-burger {
  display: block;
}

.navbar {
  width: 100%;
  background-color: transparent;
  margin-top: 150px;
}

.navbar-menu {
  text-align: center;
  flex-direction: column;
}

.navbar-menu.is-active {
  display: flex;
  position: absolute;
  width: 100%;
}

.navbar-dropdown,
.navbar .navbar-dropdown {
  display: none;
  opacity: 1;
  position: static;
  border: none;
  box-shadow: none;
  min-width: unset;
  z-index: 0;
  transform: none;
  border-radius: 0;
  background-color: transparent;
}

.navbar-dropdown a.navbar-item:not(.is-active, .is-selected) {
  background-color: transparent;
  color: #fff;
}

.navbar-item,
.navbar-link,
.navbar-dropdown .navbar-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: #fff;
  line-height: 20px;
  padding: 20px;
  align-items: center;
  display: flex;
  transition: color 0.2s;
}

.navbar-item.is-active .navbar-dropdown {
  display: block;
}

.navbar-item.has-dropdown.is-active {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.navbar-item.is-active,
.navbar-link.is-active,
.navbar-item:hover,
.navbar-link:hover,
.navbar-link:active,
a.navbar-item:active,
.navbar-link:focus,
.navbar-link:focus-within,
a.navbar-item:focus,
a.navbar-item:focus-within,
.navbar-dropdown a.navbar-item:not(.is-active, .is-selected):hover {
  background-color: transparent;
  color: var(--dark);
}

.navbar-link:not(.is-arrowless) {
  font-size: inherit;
  padding-right: 1.4em;
}

.navbar-link:not(.is-arrowless)::after {
  border-color: #fff;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  border-width: 5px;
  top: 45%;
  right: 0.4em;
}

.navbar-link:not(.is-arrowless):hover::after,
.navbar-link.is-active:not(.is-arrowless)::after,
.navbar-item.has-dropdown.is-active .navbar-link:not(.is-arrowless)::after,
.navbar-item.has-dropdown:focus .navbar-link:not(.is-arrowless)::after,
.navbar-item.has-dropdown:hover .navbar-link:not(.is-arrowless)::after {
  border-color: var(--dark);
}

.navbar-item.has-dropdown.is-active .navbar-link {
  color: var(--dark);
}

.navbar-dropdown .navbar-item:not(.is-active, .is-selected) {
  background-color: transparent;
  color: #fff;
  padding: 20px;
}

.navbar-dropdown .navbar-item.is-active,
.navbar-dropdown .navbar-item.is-selected,
.navbar-dropdown .navbar-item:hover {
  color: var(--dark);
}

/* ══════════════════════════════════
       HERO
    ══════════════════════════════════ */
@keyframes heroSlideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes heroTextFade {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.home #hero {
  background-color: var(--red);
}

.hero-grid {
  min-height: 400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-front-page {
  animation: heroSlideDown 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-grid-item {
  overflow: hidden;
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(80%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
}

.hero-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 20px;
  animation: heroTextFade 1s ease 0.35s both;
}

.hero-text-overlay h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: #fff;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  margin: 0 0 14px;
}

.hero-text-overlay h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: #fff;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* ══════════════════════════════════
       QUALITÉS
    ══════════════════════════════════ */
#qualites {
  background: #fff;
  padding: 0 10px;
  margin: 50px 0 80px 0;
}

.qualites-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0;
}

.qualites-text {
  padding: 20px 50px 20px 20px;
}

.qualites-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dark);
  margin: 0 0 15px;
}

.qualites-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 20px;
  padding: 10px 30px 10px 30px;
}

.icon-box a {
  display: block;
  color: var(--dark);
}

.icon-box:hover svg {
  transform: scale(1.1);
}

.icon-box a:hover .icon-box-title {
  color: var(--red);
}

.icon-box-icon {
  width: 75px;
  height: 75px;
  font-size: 75px;
}

.icon-box-icon svg {
  fill: var(--red);
  display: block;
  height: 1em;
  position: relative;
  width: 1em;
  transition: transform 0.2s;
  will-change: transform;
}

.icon-box-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
  margin: 8px 0 5px 0;
}

.icon-box-desc {
  font-size: 1rem;
  color: var(--dark);
  margin: 0;
}

/* ══════════════════════════════════
       LA FERME
    ══════════════════════════════════ */
#ferme {
  background: var(--beige);
  padding: 0 20px;
  margin-bottom: 80px;
}

.ferme-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 0;
}

.ferme-image {
  padding: 10px;
  height: 100%;
}

.ferme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ferme-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 100px 75px 75px 75px;
}

.ferme-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dark);
}

.ferme-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.ferme-stats {
  display: flex;
}

.stat-item {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid var(--dark);
  text-align: center;
}

.stat-item+.stat-item {
  padding-left: 24px;
  padding-right: 0;
  border-right: none;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 69px;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Poppins', sans-serif;
  font-size: 69px;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 19px;
  color: var(--dark);
  line-height: 2.5;
  display: block;
}

.ferme-layout .btn-primary {
  align-self: flex-start;
}

/* ══════════════════════════════════
       TÉMOIGNAGES
    ══════════════════════════════════ */
#temoignages {
  background: #fff;
  padding: 80px 0;
  /* display: none; */
}

.temoignages-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.temoignages-inner>h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 48px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 10px;
}

.testimonial-quote {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--mid);
  margin: 0 0 22px;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--dark);
  letter-spacing: 0.06em;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.carousel-btn {
  background: none;
  border: 2px solid var(--red);
  color: var(--red);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: var(--red);
  color: #fff;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--red);
}

/* ══════════════════════════════════
       NOS PRODUITS
    ══════════════════════════════════ */
#produits {
  background: var(--beige);
  padding: 0 20px;
  margin-bottom: 50px;
}

.page-id-348 #produits {
  background-color: #fff;
}

.produits-inner {
  max-width: 1330px;
  margin: 0 auto;
  padding: 50px 0;
}

.produits-inner>h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 50px;
}

.produits-sub-label {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 14px;
}

.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 70px;
}

.product-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 70px;
}

.product-col {
  width: 50%;
  margin: 0 auto;
}

.product-col>.produits-sub-label {
  margin: 0 0 14px;
  text-align: center;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--red);
  color: var(--dark);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 6px 26px rgba(156, 35, 48, 0.18);
  transform: translateY(-4px);
}

.product-card-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
}

.product-card:nth-child(3) .product-card-img {
  filter: brightness(100%) contrast(122%) saturate(100%) blur(0px) hue-rotate(0deg);
}

.product-card-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--dark);
  padding: 12px 10px;
  text-align: center;
  width: 100%;
}

.produits-cta {
  text-align: center;
  margin-top: 42px;
}

/* ══════════════════════════════════
       SERVICE TRAITEUR
    ══════════════════════════════════ */
#traiteur {
  background: #fff;
  padding: 0 20px;
  margin-bottom: 80px;
}

.page-id-348 #traiteur {
  background-color: var(--beige);
}

.traiteur-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  max-width: 1330px;
  margin: 0 auto;
  padding: 50px 0;
}

.traiteur-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 100px 75px 75px 75px;
}

.traiteur-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dark);
}

.traiteur-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.traiteur-content .btn-primary {
  align-self: flex-start;
}

.traiteur-image {
  padding: 10px;
  height: 100%;
}

.traiteur-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(115%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
}

/* ══════════════════════════════════
       OÙ TROUVER NOS PRODUITS
    ══════════════════════════════════ */
#trouver-nos-produits {
  background: var(--beige);
  margin-bottom: 80px;
}

.retrouver-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 100%;
}

.retrouver-image {
  overflow: hidden;
}

.retrouver-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(130%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
}

.retrouver-content {
  padding: 100px 75px 75px 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.retrouver-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--dark);
}

.retrouver-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.retrouver-content-text ul {
  margin: 0 0 16px 0;
  padding-left: 40px;
}

.retrouver-content-text ul li strong {
  color: var(--dark);
}

.contact-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.contact-sub-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: var(--dark);
  margin-bottom: 20px;
}

.phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.phone-list li a {
  color: var(--red);
  display: flex;
  align-items: center;
}

.phone-list li a:hover {
  color: var(--dark);
}

.phone-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 10px;
}

/* ══════════════════════════════════
       FOOTER
    ══════════════════════════════════ */
#site-footer {
  background: var(--red);
  color: #fff;
  padding-top: 80px;
}

.footer-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 20px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.footer-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px 0;
}

.footer-brand-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 16px;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.75;
  color: #fff;
  margin: 0 0 20px;
}

.footer-brand-logo {
  width: 75px;
  height: auto;
  margin-top: 6px;
}

.footer-col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 20px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-col ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.footer-col ul li a {
  display: flex;
  align-items: center;
  color: #fff;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--dark);
}

/* Gallery footer */
.footer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.footer-gallery-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.footer-gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.footer-gallery-grid a:hover img {
  transform: scale(1.1);
}

/* Footer bottom */
.footer-bottom {
  max-width: 1380px;
  margin: 20px auto 30px auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.footer-social a {
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--dark);
}

.footer-social a svg {
  width: 22px;
  height: 22px;
  transition: opacity 0.2s;
}

.footer-legal {
  width: 100%;
  color: #fff;
  text-align: right;
  padding: 10px;
}

.footer-legal a {
  color: #fff;
}

.footer-legal a:hover {
  color: var(--dark);
}

.footer-legal p,
.footer-credit p {
  margin: 0;
}

.footer-credit {
  background: #0d0d0d;
  text-align: center;
  padding: 1rem 10px;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-credit img {
  width: auto;
  height: 30px;
}

.footer-credit a {
  color: #fff;
}

.footer-credit a:hover {
  color: var(--dark);
}


/* ══════════════════════════════════
       LIGHTBOX
    ══════════════════════════════════ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.is-active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}


/* ══════════════════════════════════
   HERO PAGES SECONDAIRES
   ══════════════════════════════════ */
.hero-grid-secondaire {
  background-color: #fff;
  gap: 10px;
  margin-bottom: 80px;
  max-height: 400px;
}

.hero-grid-title {
  background-color: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 20px 20px 30px;
}

.page-id-502 .hero-grid-item:nth-child(2) {
  order: 1;
}

.page-id-502 .hero-grid-title {
  order: 2;
}

.page-id-502 .hero-grid-item:nth-child(3) {
  order: 3;
}

.page-id-502 .hero-grid-item:nth-child(4) {
  order: 4;
}

.page-id-1190 .hero-grid-item:nth-child(2) {
  order: 1;
}

.page-id-1190 .hero-grid-item:nth-child(3) {
  order: 2;
}

.page-id-1190 .hero-grid-title {
  order: 3;
}

.page-id-1190 .hero-grid-item:nth-child(4) {
  order: 4;
}

.page-id-10 .hero-grid-item:nth-child(2) {
  order: 1;
}

.page-id-10 .hero-grid-item:nth-child(3) {
  order: 2;
}

.page-id-10 .hero-grid-item:nth-child(4) {
  order: 3;
}

.page-id-10 .hero-grid-title {
  order: 4;
}

.page-id-10 .hero-grid-secondaire {
  margin-bottom: 0;
}

.page-banner-breadcrumb {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0;
}

.page-banner-breadcrumb a {
  color: var(--red);
}

.page-banner-breadcrumb a:hover {
  color: var(--dark);
}

.hero-grid-title h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--dark);
}

.hero-grid-secondaire img {
  filter: none;
}

.page-id-502 .hero-grid-item:nth-child(2) img {
  filter: brightness(130%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
}

/* ══════════════════════════════════
   PAGE LA FERME – DEPUIS 2015
   ══════════════════════════════════ */
#depuis-2015 {
  background: #fff;
  padding: 80px 20px;
}

#depuis-2015 h2 {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--dark);
  margin: 0 0 24px;
}

.depuis-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  max-width: 1330px;
  margin: 0 auto;
}

.depuis-text-content {
  padding: 20px;
}

.depuis-text-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.depuis-image {
  padding: 10px;
}

.depuis-layout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 550px;
}

.depuis-stats {
  margin-top: 0;
}

/* ══════════════════════════════════
   PAGE LA FERME – L'ÉQUIPE
   ══════════════════════════════════ */
#equipe {
  background: var(--beige);
  padding: 0 20px;
  margin-bottom: 80px;
}

.equipe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  max-width: 1330px;
  margin: 0 auto;
  padding: 50px 0;
}

.equipe-image {
  overflow: hidden;
  height: 100%;
}

.equipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.equipe-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 20px 20px 50px;
}

.equipe-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--dark);
}

.equipe-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

/* ══════════════════════════════════
   PAGE LA FERME – CE QUE NOUS PROPOSONS
   ══════════════════════════════════ */
#proposons {
  background: #fff;
  padding: 0 20px;
}

.proposons-inner {
  width: 50%;
  margin: 0 auto;
  text-align: center;
}

.proposons-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 32px;
}

.proposons-text {
  text-align: left;
}

.proposons-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

/* ══════════════════════════════════
   PAGE NOS PRODUITS
   ══════════════════════════════════ */

/* ─ Intro section ─ */
.pd-section {
  background: #fff;
  margin-top: 50px;
  padding: 0 10px;
}

.pd-intro {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  max-width: 1330px;
  margin: 0 auto;
  padding-left: 10px;
}

#charcuterie .pd-intro {
  flex-direction: row-reverse;
  padding-left: 0;
  padding-right: 10px;
}

#intro-traiteur .pd-intro {
  padding-left: 0;
  gap: 0;
}

#charcuterie .pd-intro-text {
  align-items: flex-end;
}

#charcuterie .pd-intro-text p {
  text-align: right;
}

.pd-intro-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-left: 10px;
}

#charcuterie .pd-intro-text {
  padding-left: 0;
  padding-right: 10px;
}

#intro-traiteur .pd-intro-text {
  padding: 100px 75px 75px 75px;
}

.pd-intro-icon {
  width: 100px;
  height: 100px;
}

.pd-intro-icon svg {
  fill: var(--red);
  display: block;
  width: 100px;
  height: 100px;
}

.pd-intro-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--dark);
  margin: 0;
}

.pd-intro-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.pd-intro-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30%;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--red);
  padding: 10px;
}

#intro-traiteur .pd-intro-img {
  width: 50%;
  border: none;
}

.pd-intro-img img {
  height: 294px;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

#intro-traiteur .pd-intro-img img {
  height: 100%;
}

/* ─ Product list section (beige bg) ─ */
.pd-liste {
  padding: 60px 20px;
  margin-top: 80px;
}

.pd-liste-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  max-width: 1344px;
  margin: 0 auto 80px auto;
  padding-left: 10px;
}

.pd-liste-inner-img-right {
  flex-direction: row-reverse;
}

.pd-liste-image {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--red);
  padding: 10px;
}

.pd-liste-image img {
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
}

.pd-sous-section {
  width: 70%;
  background: var(--beige);
  border: 1px solid var(--red);
  padding: 30px;
}

.pd-sous-section-full {
  width: 100%;
}

.pd-sous-titre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--red);
  margin: 0 0 18px;
  text-align: center;
}

.pd-liste-2col {
  columns: 2;
  column-gap: 40px;
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.pd-liste-3col {
  columns: 3;
  column-gap: 30px;
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.pd-liste-2col li,
.pd-liste-3col li {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  break-inside: avoid;
}

/* ══════════════════════════════════
   PAGE SERVICE TRAITEUR
   ══════════════════════════════════ */
#service-traiteur {
  background: var(--beige);
  padding: 0 20px;
  margin-bottom: 80px;
  margin-top: 80px;
}

.service-traiteur-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  max-width: 1330px;
  margin: 0 auto;
  padding: 50px 0;
}

.service-traiteur-image {
  overflow: hidden;
  height: 100%;
  padding: 10px;
}

.service-traiteur-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-traiteur-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 100px 75px 75px 75px;
}

.service-traiteur-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 0;
}

.service-traiteur-content ul {
  margin-top: 0 !important;
}

.service-traiteur-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 0.9rem !important;
}

/* ══════════════════════════════════
   PAGE CONTACT
   ══════════════════════════════════ */
.section-intro-contact {
  background-color: var(--beige);
  margin: 10px 0 80px 0;
  padding: 50px 20px 50px 20px;
}

.intro-contact {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.intro-contact-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
  flex: 0 1 auto;
  width: 100%;
}

.intro-contact-col h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--dark);
  margin-bottom: 0;
}

.intro-contact-col ul li {
  padding-bottom: 10px;
}

.intro-contact-col ul li a {
  color: var(--red);
  display: flex;
  align-items: center;
}

.intro-contact-col ul li a:hover {
  color: var(--dark);
}

.intro-contact-col ul li a svg {
  margin-right: 10px;
}

/* ══════════════════════════════════
   PAGE CONTACT - FORMULAIRE
   ══════════════════════════════════ */
.formulaire-contact {
  background-color: #fff;
  margin: 0 0 80px 0;
}

.formulaire-contact-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1330px;
  margin: 0 auto;
  padding: 10px 0;
}

.formulaire-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  flex: 0 1 auto;
  width: 50%;
}

.formulaire-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--dark);
}

.formulaire-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}

.formulaire {
  padding: 10px;
  flex: 0 1 auto;
  width: 50%;
}

.formulaire a {
  color: var(--red);
}

.formulaire a:hover {
  color: var(--dark);
}

.map {
  height: 450px;
}

.map iframe {
  width: 100%;
  height: 100%;
}

/*--------------------------------------------------------------
# FORMULAIRE DE CONTACT
--------------------------------------------------------------*/
.input,
.textarea,
.select select {
  background-color: #fff;
  color: var(--dark);
  border: 1px solid var(--red);
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-weight: inherit;
  font-size: 18px;
  margin-bottom: 10px;
  padding: 7px 20px;
  min-height: 59px;
}

textarea.textarea::placeholder,
input.input::placeholder {
  color: #aaa;
  opacity: 1;
}

input.input::-ms-input-placeholder,
textarea.textarea::-ms-input-placeholder {
  color: #aaa;
}

input {
  font-family: inherit;
}

.checkbox {
  accent-color: var(--red);
  cursor: pointer;
}

.textarea:hover,
.textarea.is-hovered,
.input:hover,
.input.is-hovered,
.select select:hover,
.select select.is-hovered {
  border-color: var(--red);
}

.field-body {
  flex-basis: auto;
}




/* ══════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════ */

@media (max-width: 1023px) {
  .navbar-menu {
    display: block;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .pd-intro-text {
    width: 60%;
  }

  #intro-traiteur .pd-intro-text {
    width: 50%;
    padding: 30px 30px 0 30px;
  }

  .pd-intro-img {
    width: 40%;
  }

  .pd-liste-3col {
    columns: 2;
  }

  .hero-text-overlay h1 {
    font-size: 50px;
  }

  .hero-text-overlay h2 {
    font-size: 30px;
  }

  .hero-grid-secondaire {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid-secondaire .hero-grid-item:nth-child(4) {
    display: none;
  }

  .ferme-content,
  .traiteur-content,
  .retrouver-content {
    padding: 30px 30px 0 30px;
  }

  .product-grid-4,
  .product-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .produits-sub-label {
    text-align: center;
  }

  .product-col {
    width: 100%;
  }

  .depuis-layout {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .depuis-layout img {
    max-height: 450px;
  }

  .depuis-text-content-1 {
    order: 1;
  }

  .depuis-image-1 {
    order: 2;
  }

  .depuis-image-2 {
    order: 3;
  }

  .depuis-text-content-2 {
    order: 4;
  }

  .depuis-text-content-3 {
    order: 5;
  }

  .depuis-image-3 {
    order: 6;
  }

  .proposons-inner {
    width: 80%;
  }

  .service-traiteur-content {
    padding: 30px 30px 0 30px;
  }

}

@media (max-width: 768px) {
  .header-logo {
    width: 100px;
  }

  .hero-front-page .hero-grid {
    grid-template-columns: 1fr;
    max-height: 400px;
  }

  .hero-front-page .hero-grid-item:nth-child(2),
  .hero-front-page .hero-grid-item:nth-child(3),
  .hero-front-page .hero-grid-item:nth-child(4) {
    display: none;
  }

  .hero-text-overlay h1 {
    font-size: 45px;
  }

  .hero-text-overlay h2 {
    font-size: 25px;
  }

  .hero-grid-secondaire {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid-secondaire .hero-grid-title {
    grid-column: span 3;
    padding: 100px 20px 20px 20px;
  }

  .hero-grid-secondaire .hero-grid-item:nth-child(4) {
    display: block;
  }

  .page-id-502 .hero-grid-item,
  .page-id-1190 .hero-grid-item,
  .page-id-10 .hero-grid-item {
    order: unset;
  }

  .equipe-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pd-intro {
    align-items: center;
  }

  .pd-intro-text {
    width: 50%;
  }

  .pd-intro-img {
    width: 50%;
  }

  .pd-intro-img img {
    object-fit: contain;
  }

  .pd-liste-2col {
    columns: 1;
  }

  .pd-liste-3col {
    columns: 1;
  }

  .depuis-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 6fr;
    gap: 30px;
  }

  .depuis-text-content-1 {
    order: 1;
  }

  .depuis-image-1 {
    order: 2;
  }

  .depuis-image-2 {
    order: 4;
  }

  .depuis-text-content-2 {
    order: 3;
  }

  .depuis-text-content-3 {
    order: 5;
  }

  .depuis-image-3 {
    order: 6;
  }

  .equipe-content {
    padding: 30px;
    order: -1;
  }

  .qualites-layout,
  .ferme-layout,
  .traiteur-layout,
  .retrouver-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .retrouver-content {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .temoignages-inner {
    padding: 0 20px;
  }

  .proposons-inner {
    width: 100%;
  }

  #intro-traiteur .pd-intro {
    flex-direction: column;
  }

  #intro-traiteur .pd-intro-text {
    width: 100%;
  }

  #intro-traiteur .pd-intro-img {
    width: 100%;
  }

  .pd-liste-inner {
    flex-direction: column;
  }

  .pd-liste-image,
  .pd-sous-section {
    width: 100%;
  }

  .pd-liste-image img {
    height: 250px;
  }

  .service-traiteur-layout {
    grid-template-columns: 1fr;
  }

  .service-traiteur-content {
    order: -1;
  }

  .intro-contact {
    flex-direction: column;
  }

  .formulaire-contact-inner {
    flex-direction: column;
  }

  .formulaire-text,
  .formulaire {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #nav-overlay {
    max-width: 100vw;
  }

  .icon-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ferme-stats,
  .depuis-stats {
    flex-direction: column;
  }

  .stat-item:nth-child(1) {
    border-right: none;
    border-bottom: 1px solid var(--dark);
    padding: 0 0 20px 0;
  }

  .stat-item:nth-child(2) {
    padding: 20px 0 0 0;
  }

  .pd-intro {
    flex-direction: column;
  }

  .pd-intro-text {
    width: 100%;
  }

  .pd-intro-img {
    display: none;
  }

  #intro-traiteur .pd-intro-img {
    display: block;
  }

  #charcuterie .pd-intro-text {
    align-items: flex-start;
  }

  #charcuterie .pd-intro-text p {
    text-align: left;
  }

  .product-grid-4,
  .product-grid-2 {
    grid-template-columns: repeat(1, 1fr);
  }

  .contact-sub-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-legal {
    text-align: center;
  }
}

/*--------------------------------------------------------------
# TARTE AU CITRON
--------------------------------------------------------------*/
/* Font */
#tarteaucitronRoot * {
  font-family: 'Montserrat', sans-serif !important;
}

/* Couleurs background et texte des boutons accepter */
#tarteaucitronAlertBig #tarteaucitronPersonalize2,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsAllowed .tarteaucitronAllow {
  background-color: var(--mid);
  color: #fff;
}

/* Couleurs background et texte des boutons refuser */
#tarteaucitronAlertBig #tarteaucitronAllDenied2,
#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied.tarteaucitronIsSelected,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine.tarteaucitronIsDenied .tarteaucitronDeny {
  background-color: var(--red);
  color: #fff;
}

/* Autres ajustements */
div#tarteaucitronAlertBig:before {
  display: none;
}

button#tarteaucitronPrivacyUrl {
  display: block;
  margin: 0 auto;
  width: 200px;
  padding: 5px 10px;
  height: 40px;
}

button#tarteaucitronPersonalize2,
button#tarteaucitronAllDenied2,
button#tarteaucitronCloseAlert,
button#tarteaucitronPrivacyUrl {
  text-align: center;
}

@media screen and (max-width: 900px) {

  button#tarteaucitronCloseAlert,
  button#tarteaucitronPersonalize2,
  button#tarteaucitronAllDenied2,
  button#tarteaucitronPrivacyUrl {
    min-width: 150px;
    margin: 5px auto;
  }
}

#tarteaucitronIcon #tarteaucitronManager img {
  width: 30px;
  height: 30px;
}

/*--------------------------------------------------------------
# SKIP LINKS
--------------------------------------------------------------*/
/* Utile pour l'accessibilité : lien direct vers le contenu principal */
.skip-link {
  position: absolute;
  left: -9999px;
  padding: 0.5em 1em;
  background: #333;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  position: static;
}

/*--------------------------------------------------------------
# GUTENBERG
--------------------------------------------------------------*/
/* Grande largeur pour Gutenberg */
.content .alignwide {
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
}

/* Pleine largeur pour Gutenberg */
.content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: auto;
}

.wp-block-cover.alignfull,
.wp-block-cover-image.alignfull {
  width: 100vw;
}

.wp-block-cover.alignwide,
.wp-block-cover-image.alignwide {
  width: auto;
}

/* l'alignement grande largeur se comporte comme le pleine largeur en dessous de 768px */
@media screen and (max-width: 768px) {
  .content .alignwide {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* ajustements block Gutenberg */
.content ul.blocks-gallery-grid,
.content ul.wp-block-gallery {
  margin-left: 0;
}

.content ul.wp-block-post-template,
.content ul.wp-block-query-loop {
  list-style: none;
}

.content figure.wp-block-gallery {
  margin-left: 0;
  margin-right: 0;
}

.wp-block-gallery.aligncenter {
  justify-content: center;
}

@media screen and (min-width: 601px) {
  .content .wp-block-media-text figure:not(:last-child) {
    margin-bottom: 0;
  }
}

/* Animation galerie Gutenberg */
.wp-block-gallery .wp-block-image a {
  transition: 0.5s all ease-in-out;
}

.wp-block-gallery .wp-block-image a::after {
  content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='white'><path d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z'/></svg>");
  opacity: 0;
  transition: all 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10000;
  position: absolute;
  top: calc(50% - 1rem);
  left: calc(50% - 1rem);
  height: 2rem;
  width: 2rem;
}

.wp-block-gallery .wp-block-image a:hover {
  transform: scale(1.05);
  filter: grayscale(1) contrast(1.2);
}

.wp-block-gallery .wp-block-image a:hover::after {
  opacity: 1;
}

/*--------------------------------------------------------------
# PAGE 404
--------------------------------------------------------------*/
#ghost {
  display: block;
  height: auto;
  position: relative;
  left: -2000px;
  opacity: 0;
  animation: appear-left 2s 0.1s ease-out forwards;
}

#ghost path {
  opacity: .2;
  fill: var(--red);
}

#ghost circle,
#ghost ellipse {
  fill: var(--red);
}

@keyframes appear-left {
  to {
    left: 0;
    opacity: 1;
  }
}