/* =========================================================
   LUXE FRAME — 3VOLETS / CANOPY
   CSS isolé pour le cadre or/argent autour de 3volets.jpg
   ========================================================= */

.three-panels-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:5rem auto;
    width:100%;
}

.three-panels-frame{
    position:relative;
    width:min(86%, 1240px);
    padding:10px;
    border-radius:12px;
    overflow:hidden;
    background:
        linear-gradient(
            135deg,
            rgba(212,175,55,0.52),
            rgba(245,245,245,0.42),
            rgba(180,180,180,0.48),
            rgba(255,215,0,0.36),
            rgba(230,230,230,0.42)
        );
    background-size:320% 320%;
    animation:luxeFrameFlow 12s ease-in-out infinite;
    box-shadow:
        0 0 22px rgba(255,215,0,0.06),
        0 0 38px rgba(192,192,192,0.05),
        0 18px 55px rgba(0,0,0,0.28);
}

.three-panels-frame::before{
    content:"";
    position:absolute;
    inset:1px;
    border-radius:10px;
    background:#050505;
    z-index:1;
}

.three-panels-frame img{
    position:relative;
    z-index:2;
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:8px;
    object-fit:contain;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
}

@keyframes luxeFrameFlow{
    0%{ background-position:0% 50%; }
    50%{ background-position:100% 50%; }
    100%{ background-position:0% 50%; }
}

@media (max-width:768px){
    .three-panels-wrapper{ margin:2.5rem auto; }
    .three-panels-frame{ width:94%; padding:7px; border-radius:9px; }
    .three-panels-frame::before{ border-radius:7px; }
    .three-panels-frame img{ border-radius:6px; }
}

/* =========================================================
   CANOPEE / CANOPY — GALERIE 3 ŒUVRES ALIGNÉES
   Limité aux pages avec body.cano-static uniquement.
   ========================================================= */
body.cano-static .cano-triptych-gallery{
  width: min(100%, 1500px);
  margin: 4rem auto 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.5rem);
  align-items: start;
}

body.cano-static .cano-triptych-card{
  width: 100%;
  min-width: 0;
}

body.cano-static .cano-triptych-link{
  display: block;
  width: 100%;
}

body.cano-static .cano-triptych-artwork{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

body.cano-static .cano-triptych-artwork img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.cano-static .cano-triptych-artwork figcaption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.15rem;
  color: #fff;
  font-family: var(--font-roboto);
  font-size: clamp(.78rem, .9vw, .98rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

body.cano-static .cano-triptych-link:hover figcaption,
body.cano-static .cano-triptych-link:focus figcaption{
  opacity: 1;
  transform: translateY(0);
}

body.cano-static .cano-triptych-link:hover img,
body.cano-static .cano-triptych-link:focus img{
  filter: contrast(1.04) saturate(1.03);
}

body.cano-static .cano-triptych-gallery .glightbox-desc{
  display: none;
}

@media (max-width: 991.98px){
  body.cano-static .cano-triptych-gallery{
    width: min(100%, 720px);
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body.cano-static .cano-triptych-artwork figcaption{
    opacity: 1;
    transform: none;
  }
}
