/* MyGallery Core — minimal Elementor-friendly styling */

.mygallery-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:16px;
  }
  
  @media (max-width: 900px){
    .mygallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 520px){
    .mygallery-grid{ grid-template-columns: 1fr; }
  }
  
  .mygallery-card{
    display:block;
    padding:16px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    text-decoration:none;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  
  .mygallery-card:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
  }
  
  .mygallery-title{
    display:block;
    font-weight:600;
  }
  
  /* Accordions */
  .mygallery-accordion{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  
  .mygallery-acc-item{
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    padding:10px 12px;
    background: #fff;
  }
  
  .mygallery-acc-title{
    cursor:pointer;
    font-weight:600;
  }
  
  /* Files table */
  .mygallery-files-table{
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  
  .mygallery-files-header,
  .mygallery-file-row{
    display:grid;
    grid-template-columns: 1.8fr .5fr .6fr .7fr .6fr;
    gap:10px;
    align-items:center;
  }
  
  @media (max-width: 900px){
    .mygallery-files-header,
    .mygallery-file-row{
      grid-template-columns: 1.6fr .6fr .7fr .7fr;
    }
    .mygallery-files-header span:last-child,
    .mygallery-file-row .action{
      display:none;
    }
  }
  
  .mygallery-files-header{
    font-weight:600;
    opacity:.8;
    padding:6px 0;
    border-bottom:1px solid rgba(0,0,0,.08);
  }
  
  .mygallery-file-row{
    padding:6px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
  }
  
  .mygallery-download{
    display:inline-block;
    padding:8px 10px;
    border:1px solid rgba(0,0,0,.18);
    border-radius:10px;
    text-decoration:none;
  }
  
  /* Empty / warnings */
  .mygallery-empty,
  .mygallery-no-files,
  .mygallery-wpfd-missing{
    padding:12px 14px;
    border:1px dashed rgba(0,0,0,.18);
    border-radius:12px;
  }
  .mg-dropdown{
    position:relative;
  }
  
  .mg-dropbtn{
    background:none;
    border:none;
    cursor:pointer;
  }
  
  .mg-dropdown-content{
    display:none;
    position:absolute;
    top:56px;
    left:0;
    background:#ffffff;
    min-width:260px;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
    z-index:999;
    overflow:hidden;
  }
  
  .mg-dropdown-content a{
    display:block;
    padding:14px 18px;
    text-decoration:none;
    color:#16394b;
    font-weight:700;
    font-size:12px;
    letter-spacing:.4px;
  }
  
  .mg-dropdown-content a:hover{
    background:rgba(10,163,176,.12);
  }
  
  /* ouverture au hover (desktop) */
  .mg-dropdown:hover .mg-dropdown-content{
    display:block;
  }
  /* Logo market au-dessus du H1 */

}
.mg-market-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:18px;
}

.mg-market-logo img{
  object-fit:contain;
  display:block;
}
/* Checkbox conditions - Theme My Login */
.tml-accept-terms{
  margin-top: 12px;
  margin-bottom: 14px;
}
.tml-accept-terms input[type="checkbox"]{
  margin-top: 2px;
}
.tml-accept-terms a{
  color:#186aa5;
  font-weight:800;
  text-decoration:underline;
}
.tml-accept-terms a:hover{
  color:#145d8f;
}
  