/* ==========================================================================
   ProFocus — Google Drive Gallery (skaut) dark theme
   Harmonizes the sgdg grid, breadcrumbs, "load more", the imagelightbox popup
   and the file-download buttons with the ProFocus dark palette:
     bg #0b0e12 / surface #111417 / accent teal #00f2ff / text #e2e2e2
   ========================================================================== */

:root{
  --pf-teal:#00f2ff;
  --pf-teal-soft:rgba(0,242,255,.55);
}

/* -------- Container -------- */
.sgdg-gallery-container{
  padding:0;
}

/* Breadcrumbs trail ("Gallery > Subfolder > …") */
.sgdg-gallery-container > div:first-child{
  font-size:13px;
  letter-spacing:.04em;
  color:var(--pf-text-dim);
  margin:0 0 18px;
  padding-bottom:12px;
  border-bottom:1px solid var(--pf-border-soft);
}
.sgdg-gallery-container a[data-sgdg-path]{
  color:var(--pf-text-muted);
  text-decoration:none;
  font-weight:600;
  transition:color .25s ease;
}
.sgdg-gallery-container a[data-sgdg-path]:hover{
  color:var(--pf-teal);
}

/* -------- Grid items (images & videos & directories) -------- */
.sgdg-grid-a{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  background:var(--pf-surface);
  border:1px solid var(--pf-border-soft);
  box-shadow:0 6px 18px -10px rgba(0,0,0,.55);
  transition:border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.sgdg-grid-a:hover{
  border-color:var(--pf-teal-soft);
  box-shadow:0 0 0 1px var(--pf-teal-soft), 0 18px 40px -14px rgba(0,242,255,.35);
  transform:translateY(-3px);
}
.sgdg-grid-img{
  width:100%;
  height:100% !important;
  object-fit:cover;
  transition:transform .6s var(--pf-ease, cubic-bezier(.16,.84,.44,1));
}
.sgdg-grid-a:hover .sgdg-grid-img{
  transform:scale(1.06);
}

/* -------- Directory cards -------- */
.sgdg-grid-square{
  background:var(--pf-surface-2);
}
.sgdg-grid-square .sgdg-dir-icon{
  fill:var(--pf-text-dim);
}
.sgdg-dir-overlay{
  background:linear-gradient(180deg, transparent 30%, rgba(6,8,11,.88)) !important;
  padding:14px !important;
  color:var(--pf-text);
}
.sgdg-dir-name{
  font-weight:600;
  font-size:14px;
  color:#ffffff;
  letter-spacing:.02em;
}
.sgdg-count-icon{
  color:var(--pf-teal);
  margin-right:2px;
}

/* -------- Empty / notice / loading -------- */
.sgdg-gallery > .sgdg-notice-error{
  background:var(--pf-surface-3);
  border:1px solid var(--pf-border);
  border-left-color:#f26d6d;
  color:var(--pf-text);
}
.sgdg-gallery > .sgdg-notice-error strong{
  color:#f26d6d;
}
.sgdg-loading{
  background-color:rgba(11,14,18,.85);
  box-shadow:0 0 2.5em rgba(0,242,255,.35);
}
.sgdg-loading div{
  background-color:var(--pf-teal);
  box-shadow:0 0 14px var(--pf-teal-soft);
}

/* -------- "Load more" button -------- */
.sgdg-more-button{
  margin-top:32px;
  text-align:center;
}
.sgdg-more-button div{
  background:transparent;
  color:var(--pf-teal);
  border:1px solid var(--pf-teal-soft);
  border-radius:999px;
  padding:11px 30px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.sgdg-more-button div:hover{
  background:var(--pf-teal);
  color:#00363d;
  box-shadow:0 12px 28px -10px rgba(0,242,255,.55);
}

/* -------- Download button overlaid on grid images -------- */
.sgdg-download-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:20;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  background:rgba(11,14,18,.82);
  color:#ffffff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 8px 20px -8px rgba(0,0,0,.6);
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .25s ease, transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
.sgdg-download-btn svg{
  width:13px;
  height:13px;
  fill:var(--pf-teal);
  transition:fill .25s ease;
}
.sgdg-grid-a:hover .sgdg-download-btn,
.sgdg-download-btn:focus-visible{
  opacity:1;
  transform:translateY(0);
}
.sgdg-download-btn:hover{
  background:var(--pf-teal);
  color:#00363d;
  box-shadow:0 10px 26px -8px rgba(0,242,255,.6);
}
.sgdg-download-btn:hover svg{
  fill:#00363d;
}

/* Touch devices: always show the button (no hover) */
@media (hover:none), (max-width:767px){
  .sgdg-download-btn{
    opacity:1;
    transform:none;
  }
}

/* -------- imagelightbox (popup) dark theme -------- */
#ilb-container{
  background:rgba(6,8,11,.92);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
#ilb-image{
  box-shadow:0 30px 80px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(0,242,255,.22);
  border-radius:8px;
}
#ilb-caption{
  background:rgba(11,14,18,.85);
  color:var(--pf-text);
  font-size:14px;
  letter-spacing:.02em;
  padding:.85em;
}
.ilb-button{
  background-color:rgba(17,20,23,.85);
  color:var(--pf-text);
  box-shadow:0 0 0 1px var(--pf-border);
  transition:background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.ilb-button:hover{
  background-color:var(--pf-teal);
  color:#00363d;
  box-shadow:0 0 24px -6px rgba(0,242,255,.6);
}
#ilb-close-button:before,
#ilb-close-button:after{
  background-color:var(--pf-text);
}
.ilb-button:hover#ilb-close-button:before,
.ilb-button:hover#ilb-close-button:after{
  background-color:#00363d;
}
#ilb-fullscreen-button{
  color:var(--pf-text);
}
.ilb-button:hover#ilb-fullscreen-button{
  color:#00363d;
}
.ilb-arrow:before{
  border-color:transparent;
}
#ilb-arrow-left:before{
  border-right-color:var(--pf-text);
}
#ilb-arrow-right:before{
  border-left-color:var(--pf-text);
}
.ilb-button:hover#ilb-arrow-left:before{
  border-right-color:#00363d;
}
.ilb-button:hover#ilb-arrow-right:before{
  border-left-color:#00363d;
}
.ilb-navigation{
  background-color:rgba(11,14,18,.85);
}
.ilb-navigation button{
  border-color:var(--pf-text-dim);
}
.ilb-navigation button:hover,
.ilb-navigation .ilb-navigation-active{
  background-color:var(--pf-teal);
  border-color:var(--pf-teal);
}

/* -------- Download button inside the lightbox -------- */
.lb-download-button{
  position:absolute;
  bottom:22px;
  right:26px;
  z-index:10004;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 20px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  background:rgba(11,14,18,.85);
  color:#ffffff;
  font-size:13px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  box-shadow:0 0 0 1px rgba(0,242,255,.4), 0 14px 30px -12px rgba(0,0,0,.7);
  text-decoration:none;
  transition:background-color .25s ease, color .25s ease, box-shadow .25s ease;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.lb-download-button svg{
  width:14px;
  height:14px;
  fill:var(--pf-teal);
  transition:fill .25s ease;
}
.lb-download-button:hover{
  background:var(--pf-teal);
  color:#00363d;
  box-shadow:0 0 0 1px var(--pf-teal), 0 18px 40px -12px rgba(0,242,255,.6);
}
.lb-download-button:hover svg{
  fill:#00363d;
}
@media (max-width:700px){
  .lb-download-button{
    bottom:16px;
    right:16px;
    padding:9px 16px;
    font-size:12px;
  }
}
