/* Toggle Gallery — Classic (v1.0.7) */
.tgc-note{ padding:.75rem 1rem; background:#fff7e6; border-left:4px solid #ffa726; }

.tgc{ --tgc-columns:3; --tgc-gap:12px;
      --tgc-meta-pad:8px;
      --tgc-title-size:18px; --tgc-caption-size:14px;
      --tgc-title-family:inherit; --tgc-caption-family:inherit;
      --tgc-title-weight:inherit; --tgc-caption-weight:inherit;
      --tgc-title-style:normal; --tgc-caption-style:normal;
      position:relative; }

.tgc-hidden{ display:none !important; }

/* Simple, v1.0.4-style toggle (plain inline text) */
.tgc .tgc-toolbar{ position:absolute; bottom:12px; right:12px; z-index:10; white-space:nowrap; }
.tgc .tgc-toggle{ display:inline-block; white-space:nowrap; }
.tgc .tgc-btn,
.tgc .tgc-div{
  display:inline;
  background:transparent !important; border:0 !important; box-shadow:none !important;
  padding:0 !important; margin:0 !important;
  font:inherit; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  color:#222222 !important; text-decoration:none !important; cursor:pointer;
}
.tgc .tgc-btn[aria-pressed="true"], .tgc .tgc-btn:hover{ color:#d7cbbe !important; }
.tgc .tgc-div{ padding:0 .25rem; opacity:.85; }

/* Grid */
.tgc-grid{ display:grid; grid-template-columns:repeat(var(--tgc-columns), minmax(0,1fr)); gap:var(--tgc-gap); }
.tgc-item{ margin:0; }
.tgc-item img{ width:100%; height:auto; display:block; object-fit:cover; border-radius:6px; }
/* No captions/titles in grid */

/* Full */
.tgc-full-wrap{ position:relative; overflow:visible; }
.tgc-stage{ margin:0; position:relative; }
.tgc-stage-img{ width:100%; height:auto; display:block; border-radius:6px; }
.tgc-meta{ text-align:center; color:#555; margin-top:var(--tgc-meta-pad); }
.tgc-title{ font-weight:var(--tgc-title-weight); font-style:var(--tgc-title-style); margin-bottom:.2rem; font-size:var(--tgc-title-size); font-family:var(--tgc-title-family); }
.tgc-title a{ color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.tgc-title a:hover{ border-bottom-color:currentColor; }
.tgc-caption{ font-weight:var(--tgc-caption-weight); font-style:var(--tgc-caption-style); font-size:var(--tgc-caption-size); font-family:var(--tgc-caption-family); }

/* Arrows outside image on desktop; inside on small screens */
.tgc-nav{
  position:absolute; top:50%; left:-56px; right:-56px;
  display:flex; justify-content:space-between; align-items:center;
  transform:translateY(-50%); pointer-events:none;
}
.tgc-arrow{
  -webkit-appearance:none; appearance:none;
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:999px !important;
  background:#fff !important; border:1px solid #ddd !important;
  box-shadow:none !important; padding:0 !important; margin:0 !important;
  font-size:26px; line-height:1; color:#222 !important;
  pointer-events:auto;
}
.tgc-arrow:hover{ background:#f6f6f6 !important; }

@media (max-width:768px){
  .tgc-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .tgc-nav{ left:0; right:0; }
}