/* ==========================================================================
   19. GALERIE BRAZ & LOC
   Grande photographie + miniatures + navigation
   ========================================================================== */

.gallery-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding-block: clamp(90px, 10vw, 150px);

  color: #151515;

  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(231, 111, 29, 0.11),
      transparent 25%
    ),
    radial-gradient(
      circle at 92% 72%,
      rgba(181, 58, 37, 0.07),
      transparent 26%
    ),
    linear-gradient(180deg, #f7f3ed 0%, #fffdf9 48%, #f1ece5 100%);
}

.gallery-section::before {
  content: "";

  position: absolute;
  top: 12%;
  right: -180px;
  z-index: -1;

  width: 430px;
  height: 430px;

  border: 1px solid rgba(231, 111, 29, 0.12);
  border-radius: 50%;

  pointer-events: none;
}

.gallery-section::after {
  content: "";

  position: absolute;
  bottom: 15%;
  left: -180px;
  z-index: -1;

  width: 360px;
  height: 360px;

  border-radius: 50%;

  pointer-events: none;

  background: rgba(231, 111, 29, 0.07);

  filter: blur(100px);
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.gallery-header {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1.18fr)
    minmax(300px, 0.82fr);

  gap: clamp(36px, 6vw, 80px);

  align-items: end;
}

.gallery-heading {
  min-width: 0;
}

.gallery-section .section-label {
  color: #d35a18;
}

.gallery-title {
  max-width: 760px;

  color: #151515;
}

.gallery-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
}

.gallery-description {
  max-width: 560px;

  margin: 0;

  color: #65605a;
}

/* ==========================================================================
   Indicateur galerie en mouvement
   ========================================================================== */

.gallery-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 22px;
  padding: 9px 13px;

  border: 1px solid rgba(231, 111, 29, 0.16);
  border-radius: 999px;

  color: #8b552f;

  background: rgba(231, 111, 29, 0.065);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gallery-live-indicator-dot {
  position: relative;

  width: 7px;
  height: 7px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #e76f1d;

  box-shadow: 0 0 0 4px rgba(231, 111, 29, 0.11);
}

.gallery-section.is-gallery-active .gallery-live-indicator-dot {
  animation: gallery-live-pulse 2s ease-in-out infinite;
}

@keyframes gallery-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(231, 111, 29, 0.09);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(231, 111, 29, 0);
  }
}

/* ==========================================================================
   Stage principal
   ========================================================================== */

.gallery-stage {
  position: relative;
  z-index: 1;

  width: 100%;

  margin-top: clamp(44px, 6vw, 68px);
}

/* ==========================================================================
   Grande photographie
   ========================================================================== 
*/

.gallery-main-wrapper {
  position: relative;

  width: 100%;
}

.gallery-main {
  position: relative;
  isolation: isolate;

  display: block;

  width: 100%;
  height: clamp(460px, 52vw, 690px);

  padding: 0;

  overflow: hidden;

  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 30px;

  color: #ffffff;

  background: #101419;

  box-shadow: 0 30px 85px rgba(44, 31, 20, 0.2);

  text-align: left;

  cursor: zoom-in;

  appearance: none;
  -webkit-appearance: none;

  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 500ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease;
}

.gallery-main:hover {
  border-color: rgba(231, 111, 29, 0.28);

  box-shadow:
    0 38px 100px rgba(44, 31, 20, 0.26),
    0 10px 40px rgba(231, 111, 29, 0.08);

  transform: translateY(-4px);
}

/* ==========================================================================
   Images grande photographie
   ========================================================================== */

.gallery-main-media {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;

  overflow: hidden;

  border-radius: inherit;
}

.gallery-main-image {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border: 0;

  will-change: opacity, transform, filter;

  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
}

.gallery-main-image--current {
  z-index: 1;

  opacity: 1;

  transform: scale(1.001);
}

.gallery-main-image--next {
  z-index: 2;

  opacity: 0;

  transform: scale(1.055);

  filter: brightness(0.86) saturate(1.03);
}

/*
|--------------------------------------------------------------------------
| IMPORTANT
| Le JS ajoute is-changing sur .gallery-main
|--------------------------------------------------------------------------
*/

.gallery-main.is-changing .gallery-main-image--next {
  opacity: 1;

  transform: scale(1);

  filter: brightness(1) saturate(1);
}

.gallery-main.is-changing .gallery-main-image--current {
  opacity: 0;

  transform: scale(1.045);
}

.gallery-main:hover .gallery-main-image--current {
  transform: scale(1.035);
}

/* ==========================================================================
   Overlay grande photographie
   ========================================================================== */

.gallery-main-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(4, 7, 10, 0.02) 22%,
    rgba(4, 7, 10, 0.12) 48%,
    rgba(4, 7, 10, 0.88) 100%
  );
}

/* ==========================================================================
   Numéro grande photographie
   ========================================================================== */

.gallery-main-index {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 7;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 34px;

  padding-inline: 11px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.82);

  background: rgba(7, 10, 14, 0.5);

  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Texte grande photographie
   ========================================================================== */

.gallery-main-content {
  position: absolute;
  right: clamp(24px, 4vw, 46px);
  bottom: clamp(28px, 4vw, 48px);
  left: clamp(24px, 4vw, 46px);
  z-index: 7;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  pointer-events: none;
}

.gallery-main-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 8px;

  color: #ff914d;

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.gallery-main-category::before {
  content: "";

  width: 28px;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(90deg, #ff914d, #e76f1d);
}

.gallery-main-content strong {
  display: block;

  max-width: 760px;

  color: #ffffff;

  font-size: clamp(1.65rem, 3.4vw, 3.05rem);

  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;

  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.5);
}

.gallery-main-hint {
  display: block;

  margin-top: 10px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   Zoom grande photographie
   ========================================================================== */

.gallery-main-zoom {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 8;

  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  color: #ffffff;

  background: rgba(7, 10, 14, 0.5);

  opacity: 0;

  transform: translateY(-6px) scale(0.94);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    opacity 250ms ease,
    transform 250ms ease,
    background-color 250ms ease;
}

.gallery-main-zoom svg {
  display: block;

  width: 22px !important;
  height: 22px !important;

  min-width: 22px;
  min-height: 22px;

  max-width: 22px;
  max-height: 22px;
}

.gallery-main:hover .gallery-main-zoom,
.gallery-main:focus-visible .gallery-main-zoom {
  opacity: 1;

  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Progression automatique
   ========================================================================== */

.gallery-main-progress {
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  z-index: 9;

  display: block;

  height: 3px;

  overflow: hidden;

  pointer-events: none;

  border-radius: 999px 999px 0 0;

  background: rgba(255, 255, 255, 0.1);
}

.gallery-main-progress-bar {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(90deg, #ff914d, #e76f1d, #c84b19);

  box-shadow: 0 0 14px rgba(231, 111, 29, 0.5);

  transform: scaleX(0);
  transform-origin: left center;
}

/* ==========================================================================
   Flèches de navigation DE LA GRANDE PHOTO
   ========================================================================== */

.gallery-main-navigation {
  position: absolute;
  top: 50%;
  z-index: 12;

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  padding: 0;
  margin: 0;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  color: #ffffff;

  background: rgba(8, 11, 15, 0.55);

  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);

  opacity: 0;

  transform: translateY(-50%) scale(0.92);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  appearance: none;
  -webkit-appearance: none;

  transition:
    opacity 250ms ease,
    transform 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease;
}

.gallery-main-navigation--previous {
  left: 22px;
}

.gallery-main-navigation--next {
  right: 22px;
}

.gallery-main-navigation svg {
  display: block;

  width: 23px !important;
  height: 23px !important;

  min-width: 23px;
  min-height: 23px;

  max-width: 23px;
  max-height: 23px;

  flex: 0 0 23px;

  pointer-events: none;
}

.gallery-stage:hover .gallery-main-navigation,
.gallery-main-navigation:focus-visible {
  opacity: 1;

  transform: translateY(-50%) scale(1);
}

.gallery-main-navigation:hover {
  border-color: #e76f1d;

  background: #e76f1d;

  transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   Sécurité anti-SVG géant
   ========================================================================== */

.gallery-section button svg,
.gallery-stage button svg {
  flex: 0 0 auto;
}

[data-gallery-previous] svg,
[data-gallery-next] svg {
  width: 23px !important;
  height: 23px !important;

  max-width: 23px !important;
  max-height: 23px !important;
}

/* ==========================================================================
   Miniatures
   ========================================================================== */

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 14px;

  width: 100%;

  margin-top: 16px;
}

/* ==========================================================================
   Carte miniature
   ========================================================================== */

.gallery-thumbnail {
  position: relative;
  isolation: isolate;

  display: block;

  width: 100%;
  min-width: 0;

  aspect-ratio: 16 / 9;

  padding: 0;

  overflow: hidden;

  border: 1px solid rgba(25, 20, 17, 0.09);
  border-radius: 18px;

  color: #ffffff;

  background: #101419;

  box-shadow: 0 12px 34px rgba(42, 31, 21, 0.12);

  text-align: left;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 250ms ease,
    box-shadow 350ms ease;
}

.gallery-thumbnail:hover {
  z-index: 5;

  border-color: rgba(231, 111, 29, 0.42);

  box-shadow:
    0 18px 48px rgba(42, 31, 21, 0.18),
    0 5px 18px rgba(231, 111, 29, 0.08);

  transform: translateY(-4px) scale(1.015);
}

/* ==========================================================================
   Image miniature
   ========================================================================== */

.gallery-thumbnail-media {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;

  overflow: hidden;

  border-radius: inherit;
}

.gallery-thumbnail-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 350ms ease;
}

.gallery-thumbnail:hover .gallery-thumbnail-image {
  transform: scale(1.07);

  filter: saturate(1.08);
}

/* ==========================================================================
   Overlay miniature
   ========================================================================== */

.gallery-thumbnail-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(4, 7, 10, 0.02) 18%,
    rgba(4, 7, 10, 0.2) 55%,
    rgba(4, 7, 10, 0.86) 100%
  );
}

/* ==========================================================================
   Numéro miniature
   ========================================================================== */

.gallery-thumbnail-index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 31px;
  height: 24px;

  padding-inline: 8px;

  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.8);

  background: rgba(7, 10, 14, 0.48);

  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   Catégorie miniature
   ========================================================================== */

.gallery-thumbnail-content {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 5;

  display: block;

  pointer-events: none;
}

.gallery-thumbnail-category {
  display: block;

  overflow: hidden;

  color: #ff914d;

  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Petite flèche miniature
   ========================================================================== */

.gallery-thumbnail-action {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;

  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  color: #ffffff;

  background: rgba(7, 10, 14, 0.48);

  opacity: 0;

  transform: translateX(-4px) scale(0.9);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    opacity 250ms ease,
    transform 250ms ease,
    background-color 250ms ease;
}

.gallery-thumbnail-action svg {
  display: block;

  width: 15px !important;
  height: 15px !important;

  min-width: 15px;
  min-height: 15px;

  max-width: 15px;
  max-height: 15px;
}

.gallery-thumbnail:hover .gallery-thumbnail-action,
.gallery-thumbnail:focus-visible .gallery-thumbnail-action {
  opacity: 1;

  transform: translateX(0) scale(1);
}

.gallery-thumbnail:hover .gallery-thumbnail-action {
  background: #e76f1d;
}

/* ==========================================================================
   Footer galerie
   ========================================================================== */

.gallery-showcase-footer {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin-top: 18px;
  padding-inline: 4px;
}

.gallery-showcase-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #77716a;

  font-size: 0.76rem;
  font-weight: 600;
}

.gallery-showcase-note-icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  flex: 0 0 auto;

  border-radius: 10px;

  color: #d45b18;

  background: rgba(231, 111, 29, 0.08);
}

.gallery-showcase-note-icon svg {
  display: block;

  width: 17px !important;
  height: 17px !important;
}

.gallery-showcase-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;

  color: #7b756e;

  font-size: 0.74rem;
  font-weight: 700;

  white-space: nowrap;
}

.gallery-showcase-counter strong {
  color: #d45b18;

  font-size: 1rem;
  font-weight: 800;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.gallery-cta {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 38px;

  align-items: center;

  margin-top: 34px;
  padding: 32px 36px;

  overflow: hidden;

  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 26px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.67)
  );

  box-shadow: 0 22px 65px rgba(42, 31, 21, 0.1);
}

.gallery-cta::before {
  content: "";

  position: absolute;
  top: -120px;
  right: 15%;

  width: 260px;
  height: 260px;

  border-radius: 50%;

  pointer-events: none;

  background: rgba(231, 111, 29, 0.12);

  filter: blur(70px);
}

.gallery-cta > * {
  position: relative;
  z-index: 1;
}

.gallery-cta-label,
.gallery-cta-content > span {
  color: #d45b18;

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-cta h3 {
  margin: 7px 0 0;

  color: #191816;

  font-size: clamp(1.35rem, 2.4vw, 2rem);

  font-weight: 800;
}

.gallery-cta p {
  max-width: 750px;

  margin: 9px 0 0;

  color: #66615b;

  font-size: 0.93rem;
  line-height: 1.7;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;

  display: grid;
  place-items: center;

  padding: 80px 100px 60px;

  visibility: hidden;
  opacity: 0;

  background: rgba(2, 4, 6, 0.95);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  transition:
    opacity 350ms ease,
    visibility 350ms ease;
}

.gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox-content {
  width: min(100%, 1320px);

  margin: 0;

  text-align: center;
}

.gallery-lightbox-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 120px;
}

.gallery-lightbox-content img {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 190px);

  margin-inline: auto;

  object-fit: contain;

  border-radius: 20px;

  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62);

  opacity: 1;

  transform: scale(1);

  transition:
    opacity 230ms ease,
    transform 430ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox-content img.is-switching {
  opacity: 0;

  transform: scale(0.985);
}

.gallery-lightbox-caption,
.gallery-lightbox-content figcaption {
  max-width: 900px;

  margin: 16px auto 0;

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.88rem;
  line-height: 1.55;
}

/* ==========================================================================
   Compteur lightbox
   ========================================================================== */

.gallery-lightbox-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 205;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 13px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.58);

  background: rgba(255, 255, 255, 0.05);

  font-size: 0.73rem;
  font-weight: 800;

  transform: translateX(-50%);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#galleryLightboxCurrent {
  color: #ff914d;
}

/* ==========================================================================
   Boutons lightbox
   ========================================================================== */

.gallery-lightbox-close,
.gallery-lightbox-navigation {
  position: absolute;
  z-index: 210;

  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;

  padding: 0;
  margin: 0;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  color: #ffffff;

  background: rgba(255, 255, 255, 0.07);

  appearance: none;
  -webkit-appearance: none;

  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-navigation:hover {
  border-color: var(--color-fire);

  background: var(--color-fire);
}

.gallery-lightbox-close {
  top: 24px;
  right: 24px;
}

.gallery-lightbox-close:hover {
  transform: scale(1.06);
}

.gallery-lightbox-close svg,
.gallery-lightbox-navigation svg {
  display: block;

  width: 24px !important;
  height: 24px !important;

  min-width: 24px;
  min-height: 24px;

  max-width: 24px !important;
  max-height: 24px !important;

  pointer-events: none;
}

.gallery-lightbox-navigation {
  top: 50%;

  transform: translateY(-50%);
}

.gallery-lightbox-navigation:hover {
  transform: translateY(-50%) scale(1.06);
}

.gallery-lightbox-navigation--previous {
  left: 25px;
}

.gallery-lightbox-navigation--next {
  right: 25px;
}

/* ==========================================================================
   TABLETTE
   ========================================================================== */

@media (max-width: 1100px) {
  .gallery-header {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .gallery-header-copy {
    max-width: 720px;
  }

  .gallery-main {
    height: clamp(420px, 62vw, 620px);
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(5, minmax(120px, 1fr));

    overflow-x: auto;

    padding-bottom: 8px;

    scrollbar-width: thin;
  }

  .gallery-thumbnail {
    min-width: 150px;
  }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  .gallery-section {
    padding-block: 72px;
  }

  .gallery-header {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .gallery-live-indicator {
    margin-top: 16px;
  }

  .gallery-stage {
    margin-top: 36px;
  }

  .gallery-main {
    height: clamp(350px, 105vw, 500px);

    border-radius: 22px;
  }

  .gallery-main-content {
    right: 20px;
    bottom: 24px;
    left: 20px;
  }

  .gallery-main-content strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .gallery-main-index {
    top: 15px;
    left: 15px;

    min-width: 37px;
    height: 30px;
  }

  .gallery-main-zoom {
    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    opacity: 1;

    transform: none;
  }

  .gallery-main-navigation {
    width: 44px;
    height: 44px;

    opacity: 1;

    transform: translateY(-50%) scale(1);
  }

  .gallery-main-navigation--previous {
    left: 12px;
  }

  .gallery-main-navigation--next {
    right: 12px;
  }

  .gallery-main-navigation svg {
    width: 20px !important;
    height: 20px !important;

    min-width: 20px;
    min-height: 20px;

    max-width: 20px;
    max-height: 20px;
  }

  .gallery-main-progress {
    right: 20px;
    left: 20px;
  }

  .gallery-thumbnails {
    display: flex;

    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    margin-top: 12px;
    padding: 0 0 8px;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;
  }

  .gallery-thumbnail {
    width: 145px;
    min-width: 145px;

    border-radius: 15px;

    scroll-snap-align: start;
  }

  .gallery-thumbnail-action {
    display: none;
  }

  .gallery-showcase-footer {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;

    margin-top: 14px;
  }

  .gallery-showcase-counter {
    white-space: normal;
  }

  .gallery-cta {
    grid-template-columns: 1fr;

    gap: 24px;

    padding: 25px 22px;
  }

  .gallery-cta .btn {
    width: 100%;
  }

  .gallery-lightbox {
    padding: 74px 14px 78px;
  }

  .gallery-lightbox-content img {
    max-height: calc(100vh - 190px);

    border-radius: 14px;
  }

  .gallery-lightbox-navigation {
    top: auto;
    bottom: 16px;

    transform: none;
  }

  .gallery-lightbox-navigation:hover {
    transform: scale(1.06);
  }

  .gallery-lightbox-navigation--previous {
    left: calc(50% - 60px);
  }

  .gallery-lightbox-navigation--next {
    right: calc(50% - 60px);
  }

  .gallery-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .gallery-lightbox-counter {
    top: 20px;
  }
}

/* ==========================================================================
   PETIT MOBILE
   ========================================================================== */

@media (max-width: 420px) {
  .gallery-main {
    height: 360px;
  }

  .gallery-main-content strong {
    font-size: 1.35rem;
  }

  .gallery-main-hint {
    font-size: 0.7rem;
  }

  .gallery-thumbnail {
    width: 128px;
    min-width: 128px;
  }
}

/* ==========================================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gallery-live-indicator-dot {
    animation: none !important;
  }

  .gallery-main,
  .gallery-main-image,
  .gallery-thumbnail,
  .gallery-thumbnail-image,
  .gallery-main-navigation,
  .gallery-main-zoom,
  .gallery-lightbox-content img {
    transition: none !important;
  }

  .gallery-main-progress {
    display: none;
  }
}

/* Correction du rognage du dernier caractère sur le titre Galerie */
.gallery-title .text-gradient-fire {
  padding-right: 0.08em;
  margin-right: -0.08em;
}
