#MyVisual {

  display: flex;
  flex-wrap: wrap;            /* allows wrapping on smaller screens */
  gap: 10rem;                  /* space between panels */
  padding: 2rem;
  padding-top: 100px;
  justify-content: center;    /* center panels horizontally */
}

#MyVisual > div {
  background-color: #fff;
  padding: 2rem;
  width: 80%;
  border-radius: 6px;

  box-shadow: rgba(0, 0, 0, 0.1) 0px 48px 150px 10px;

  /* display: flex;
  flex-direction: column;
  gap: 0.5rem; */

  display: grid;
  grid-template-columns: 2fr 1fr; /* 2/3 - 1/3 */
  grid-template-rows: auto 1fr;
  gap: 1.5rem 2rem;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#MyVisual > div > h1,
#MyVisual > div > h2 {
  grid-column: 1 / -1; /* full width */
  margin: 0;
  text-align: left;
}

#MyVisual > div > h1 {
  font-size: 20px;
}

#MyVisual > div > h2 {
  font-size: 16px;
  font-weight: 300; 
  font-style: italic;
  color: #555;
  line-height: 0.6;
  margin-bottom: 20px;
}

#MyVisual > div > .Sketches {
  grid-column: 1 / 2;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;

  justify-items: center; /* horizontal centering */
}

#MyVisual .visual {
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 16px 40px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

#MyVisual .visual img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}


/*  ----------------------Lionel Gasser Vins---------------------- */
.colorpalette  { grid-column: span 2; }
.BottleButtonUnique { width: 80%; }
.cartwidget { width: 30%; }
.soldout { width: 40%; }


/*  ---------------------- Cabinet du College ---------------------- */
.colorpalettecdc  { width: 35%; }
.centralbanner  { grid-column: span 2; }
.visual-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.snakechamp  { width: 40%; }
.repeatpatterns { width: 70%; }


/*  ---------------------- Cognitive Load Reduction ---------------------- */
#MyVisual > div > .Sketches.sketches-1x4 {
  grid-template-columns: repeat(1, 4fr);
}

#MyVisual .viscolumn{
  display: flex;
  flex-direction: column;  
  align-items: center;
  justify-content: flex-start;
}

#MyVisual .viscolumn img {
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

#MyVisual .viscolumn p {
  font-size: 14px;
  line-height: 1.4;
  font-style: italic;
  text-align: left;
  color: #555;
}


#MyVisual > div > .visualdescription {
  grid-column: 2 / 3;
  padding: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-style: italic;
  color: #666;
  font-size: 15px;
}

.visualdescription a{
  color: #666;
}





/*  --------------------------------------- Media Responsive ---------------------------------------  */


@media (max-width: 800px) {

  #MyVisual {
  padding: 0;
  padding-top: 80px;
  padding-bottom: 80px;
}

  #MyVisual > div {
    grid-template-columns: 1fr;
    width: 90%;
  }

  #MyVisual > div > .Sketches,
  #MyVisual > div > .visualdescription {
    grid-column: 1 / -1;
  }

  #MyVisual > div > .visualdescription {
    margin-top: 1rem;
  }

  .visual-row-split {
    grid-template-columns: 1fr;
  }

  /*  ----------------------Lionel Gasser Vins---------------------- */
.BottleButtonUnique { width: 100%; }
.cartwidget { width: 60%; }
.soldout { width: 60%; }


/*  ---------------------- Cabinet du College ---------------------- */
.colorpalettecdc  { width: 65%; }
.visual-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

  #MyVisual > div > .visualdescription {
  padding: 10px;
}
}

