/*
 * World Wild Ben - Photographie
 * Feuille complete et autonome de l'univers Photographie.
 * Typographie unique : Manrope.
 */

body.wwb-photographie-template {
  --wwbp-background: #f6f3ee;
  --wwbp-background-soft: #fbfaf7;
  --wwbp-text: #1f2933;
  --wwbp-muted: #5f6b76;
  --wwbp-dark: #171b1a;
  --wwbp-white: #ffffff;
  background: var(--wwbp-background);
  color: var(--wwbp-text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .04em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.wwb-photographie-template .ct-header,
body.wwb-photographie-template #header,
body.wwb-photographie-template [data-header],
body.wwb-photographie-template > .ct-footer {
  display: none !important;
}

.wwbp-header,
.wwbp-main,
.wwbp-footer,
.wwbp-header *,
.wwbp-main *,
.wwbp-footer * {
  box-sizing: border-box;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wwbp-header {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--wwbp-background);
}

.wwbp-logo-band {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 130px;
  background: var(--wwbp-dark);
}

.wwbp-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wwbp-white);
  text-decoration: none;
}

.wwbp-logo {
  display: block;
  width: auto;
  max-width: min(190px, 52vw);
  max-height: 70px;
  margin: 0;
  object-fit: contain;
}

.wwbp-header-photo {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--wwbp-background-soft);
}

.wwbp-header-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.wwbp-header-identity {
  display: flex;
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--wwbp-text);
  text-align: center;
}

.wwbp-site-name,
.wwbp-site-universe {
  margin: 0;
  color: var(--wwbp-text);
  font-size: 18px;
  line-height: 2.1;
}

.wwbp-site-name {
  text-transform: none;
}

.wwbp-site-universe {
  text-transform: uppercase;
}

.wwbp-site-name {
  font-weight: 400;
  letter-spacing: .04em;
  word-spacing: .02em;
}

.wwbp-site-universe {
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: .14em;
  word-spacing: .04em;
}

.wwbp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 64px;
  margin-top: 70px;
}

.wwbp-nav a {
  display: inline-flex;
  color: var(--wwbp-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .15em;
  word-spacing: .2em;
  text-decoration: none;
  text-underline-offset: 7px;
  transition: color .18s ease, opacity .18s ease;
}

.wwbp-nav a:hover,
.wwbp-nav a:focus-visible {
  color: var(--wwbp-muted);
  text-decoration: underline;
}

.wwbp-nav a:focus-visible,
.wwbp-contact-link:focus-visible,
.wwbp-footer a:focus-visible,
.wwbp-logo-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}

.wwbp-main {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--wwbp-background);
}

.wwbp-why,
.wwbp-portfolio,
.wwbp-contact {
  width: 100%;
  scroll-margin-top: 24px;
}

.wwbp-why,
.wwbp-contact {
  background: var(--wwbp-background);
}

.wwbp-portfolio {
  background: var(--wwbp-background-soft);
}

.wwbp-section-inner {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 100px;
}

.wwbp-section-inner h1,
.wwbp-section-inner h2 {
  margin: 0 0 46px;
  color: var(--wwbp-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.wwbp-richtext {
  max-width: 720px;
  color: var(--wwbp-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: .06em;
  word-spacing: .14em;
}

.wwbp-richtext p {
  margin: 0 0 28px;
}

.wwbp-richtext p:last-child {
  margin-bottom: 0;
}

.wwbp-gallery {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  width: 100%;
  min-height: 420px;
  gap: 0;
}

.wwbp-gallery-empty {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  padding: 54px 30px;
  border-top: 1px solid rgba(31, 41, 51, .15);
  border-bottom: 1px solid rgba(31, 41, 51, .15);
  color: var(--wwbp-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .08em;
  text-align: center;
}

.wwbp-contact-link {
  display: inline-flex;
  margin-top: 36px;
  padding: 0 0 5px;
  border-bottom: 1px solid currentColor;
  color: var(--wwbp-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .12em;
  text-decoration: none;
}

.wwbp-contact-link:hover {
  color: var(--wwbp-muted);
}

.wwbp-footer {
  width: 100%;
  padding: 54px 20px;
  background: var(--wwbp-dark);
  color: rgba(255, 255, 255, .75);
}

.wwbp-footer-inner {
  display: flex;
  width: min(1000px, 100%);
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.wwbp-footer p {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .1em;
}

.wwbp-footer nav {
  display: flex;
  max-width: 700px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.wwbp-footer a {
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .08em;
  text-decoration: none;
}

.wwbp-footer a:hover {
  color: var(--wwbp-white);
}

@media (max-width: 700px) {
  body.wwb-photographie-template {
    font-size: 14px;
  }

  .wwbp-logo-band {
    min-height: 140px;
    padding: 30px 20px;
  }

  .wwbp-logo {
    max-width: min(166px, 58vw);
    max-height: 78px;
  }

  .wwbp-header-identity,
  .wwbp-section-inner,
  .wwbp-footer-inner {
    width: min(500px, calc(100% - 30px));
  }

  .wwbp-header-identity {
    padding: 62px 0 78px;
  }

  .wwbp-site-name {
    letter-spacing: .28em;
    word-spacing: .38em;
  }

  .wwbp-site-universe {
    letter-spacing: .42em;
    word-spacing: .5em;
  }

  .wwbp-nav {
    gap: 20px 32px;
    margin-top: 36px;
  }

  .wwbp-nav a {
    letter-spacing: .1em;
  }

  .wwbp-section-inner {
    padding: 88px 0 108px;
  }

  .wwbp-section-inner h1,
  .wwbp-section-inner h2 {
    margin-bottom: 34px;
    letter-spacing: .24em;
  }

  .wwbp-richtext {
    line-height: 2;
    letter-spacing: .04em;
    word-spacing: .1em;
  }

  .wwbp-gallery {
    grid-template-columns: repeat(20, minmax(0, 1fr));
    min-height: 340px;
  }

  .wwbp-footer-inner {
    flex-direction: column;
  }

  .wwbp-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .wwbp-nav {
    flex-direction: column;
    gap: 19px;
  }

  .wwbp-site-name,
  .wwbp-site-universe {
    font-size: 14px;
  }
}


/* WWB PHOTOGRAPHIE PORTFOLIO START */

/* Grille du portfolio */
.wwbp-gallery.wwbp-wall {
  display: grid;
  grid-template-columns: repeat(43, minmax(0, 1fr));
  grid-auto-rows: min(25px, calc(100vw / 43));
  gap: 0;
  width: 100%;
  max-width: 1075px;
  min-height: 1000px;
  margin-inline: auto;
}

.wwbp-wall-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8e4dc;
  color: #1f2933;
  text-align: center;
}

.wwbp-wall-item.has-photo {
  border: 0;
  background: transparent;
}

.wwbp-wall-item.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 41, 51, 0.15);
}

.wwbp-placeholder-message {
  max-width: 80%;
  margin: 0;
  color: #53614d;
  font: 500 10px/1.45 Manrope, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Photographie et voile */
.wwbp-photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wwbp-photo-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.wwbp-photo-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(23, 28, 26, 0.12), rgba(23, 28, 26, 0.52));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.16s ease-out;
  pointer-events: none;
}

.wwbp-gallery.wwbp-wall .wwbp-photo-trigger .wwbp-photo-tooltip {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  color: #f4f0e8;
  font-family: Manrope, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.06em !important;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  opacity: 0 !important;
  transform: translateY(-5px);
  transition: opacity 0.12s ease-out 0.04s, transform 0.12s ease-out 0.04s;
  pointer-events: none;
}

.wwbp-photo-trigger:hover::after,
.wwbp-photo-trigger:focus-visible::after,
.wwbp-photo-trigger.is-touch-preview::after {
  transform: scaleY(1);
}

.wwbp-gallery.wwbp-wall .wwbp-photo-trigger:hover .wwbp-photo-tooltip,
.wwbp-gallery.wwbp-wall .wwbp-photo-trigger:focus-visible .wwbp-photo-tooltip,
.wwbp-gallery.wwbp-wall .wwbp-photo-trigger.is-touch-preview .wwbp-photo-tooltip {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Lightbox */
body.wwbp-lightbox-open { overflow: hidden; }
.wwbp-lightbox[hidden] { display: none; }

.wwbp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  padding: 28px;
  background: rgba(23, 28, 26, 0.96);
  color: #f4f0e8;
}

.wwbp-lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 999px;
  background: rgba(23, 28, 26, 0.28);
  color: #f4f0e8;
  font: 500 11px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
}

.wwbp-lightbox-nav {
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: #f4f0e8;
  font: 500 11px/1.3 Manrope, Arial, sans-serif;
  cursor: pointer;
}

.wwbp-lightbox-prev { grid-column: 1; }
.wwbp-lightbox-next { grid-column: 3; }

.wwbp-lightbox-figure {
  grid-column: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 32px;
  width: 100%;
  height: min(90vh, 920px);
  margin: 0;
}

.wwbp-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.wwbp-lightbox-info {
  display: grid;
  justify-items: center;
  margin: 0;
  text-align: center;
}

.wwbp-lightbox-caption {
  margin: 0 0 18px;
  color: #f4f0e8;
  font: 600 15px/1.35 Manrope, Arial, sans-serif;
}

.wwbp-lightbox-description {
  max-width: 720px;
  margin: 0 0 16px;
  color: rgba(244, 240, 232, 0.78);
  font: 400 13px/1.55 Manrope, Arial, sans-serif;
}

.wwbp-lightbox-keywords {
  margin: 0 0 18px;
  color: #b7c7d8;
  font: 500 11px/1.4 Manrope, Arial, sans-serif;
}

.wwbp-lightbox-contact {
  display: inline-flex;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 999px;
  color: #f4f0e8;
  font: 600 11px/1.2 Manrope, Arial, sans-serif;
  text-decoration: none;
}

@media (max-width: 700px) {
  .wwbp-gallery.wwbp-wall { grid-auto-rows: calc(100vw / 43); }
  .wwbp-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 66px 6px 14px;
  }
  .wwbp-lightbox-figure {
    height: calc(100vh - 88px);
    gap: 22px;
  }
  .wwbp-lightbox-nav { font-size: 0; }
  .wwbp-lightbox-prev::after { content: '<'; font-size: 30px; }
  .wwbp-lightbox-next::after { content: '>'; font-size: 30px; }
}
/* WWB PHOTOGRAPHIE PORTFOLIO END */
