/* ── Pinnacle Gallery v3 – Frontend ── */
.pga-gallery {
  font-family: inherit;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Year filter tabs ────────────────────────────────────────── */
.pga-year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}
.pga-yf-btn {
  padding: 9px 26px;
  border-radius: 40px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  line-height: 1;
}
.pga-yf-btn:hover {
  border-color: #0D1B3E;
  color: #0D1B3E;
  background: #f0f3fa;
}
.pga-yf-btn.active {
  background: #0D1B3E;
  border-color: #0D1B3E;
  color: #fff;
}

/* ── Year / month headings ───────────────────────────────────── */
.pga-year-section { margin-bottom: 3rem; }
.pga-year-section.pga-hidden { display: none; }

.pga-year-label {
  font-size: 34px;
  font-weight: 800;
  color: #0D1B3E;
  border-bottom: 3px solid #0D1B3E;
  padding-bottom: .5rem;
  margin-bottom: 2rem;
  letter-spacing: -.5px;
}
.pga-year-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}
.pga-month-block  { margin-bottom: 2.5rem; }
.pga-month-label  {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* ── 3-column grid ───────────────────────────────────────────── */
.pga-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Card — image-only, text is overlay ─────────────────────── */
.pga-event-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .22s, box-shadow .22s;
}
.pga-event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(13,27,62,.18);
}

/* ── Image wrapper — tall aspect ratio ───────────────────────── */
.pga-cover-link { display: block; text-decoration: none; }
.pga-img-area   { display: flex; flex-direction: column; height: 100%; }

.pga-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;      /* tall portrait — very prominent */
  overflow: hidden;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
}

.pga-cover-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.pga-event-card:hover .pga-cover-img {
  transform: scale(1.08);
}

/* ── Overlay — always partially visible, expands on hover ────── */
.pga-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  /* Base: subtle gradient just at top and bottom */
  background:
    linear-gradient(to bottom, rgba(5,10,30,.55) 0%, transparent 35%),
    linear-gradient(to top,    rgba(5,10,30,.85) 0%, transparent 55%);
  transition: background .3s;
}
.pga-event-card:hover .pga-cover-overlay {
  background:
    linear-gradient(to bottom, rgba(5,10,30,.7) 0%, transparent 30%),
    linear-gradient(to top,    rgba(5,10,30,.95) 0%, rgba(5,10,30,.2) 65%, transparent 80%);
}

/* Top row: tag + photo count */
.pga-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Tag inside overlay — white tinted */
.pga-tag-light {
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}

.pga-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Bottom: name + subtitle — slides up on hover */
.pga-overlay-bottom {
  transform: translateY(6px);
  transition: transform .28s ease;
}
.pga-event-card:hover .pga-overlay-bottom {
  transform: translateY(0);
}

.pga-overlay-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.pga-overlay-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Zoom icon — center, appears on hover */
.pga-zoom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity .22s, transform .22s;
  backdrop-filter: blur(4px);
}
.pga-event-card:hover .pga-zoom-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── No image fallback ───────────────────────────────────────── */
.pga-no-images {
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(135deg, #0D1B3E 0%, #1a3a6e 100%);
  padding: 16px;
  border-radius: 14px;
}
.pga-no-images div { color: #fff; }

.pga-no-events {
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 3rem;
}

/* ── Tags (base) ─────────────────────────────────────────────── */
.pga-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.pga-tag-conference { background: #dbeafe; color: #1e40af; }
.pga-tag-webinar    { background: #dcfce7; color: #166534; }
.pga-tag-networking { background: #ede9fe; color: #5b21b6; }
.pga-tag-award      { background: #fef3c7; color: #92400e; }
.pga-tag-summit     { background: #dbeafe; color: #1e40af; }
.pga-tag-expo       { background: #e0f2fe; color: #075985; }
.pga-tag-podcast    { background: #dcfce7; color: #166534; }
.pga-tag-roadshow   { background: #fce7f3; color: #9d174d; }
.pga-tag-gala       { background: #fef3c7; color: #92400e; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .pga-events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pga-events-grid { grid-template-columns: 1fr; }
  .pga-year-label  { font-size: 26px; }
  .pga-cover-wrap  { aspect-ratio: 4/3; }
}

/* ── Media badges (photos + videos) ─────────────────────────── */
.pga-media-badges { display: flex; gap: 5px; align-items: center; }
.pga-count-pill { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.4); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; backdrop-filter: blur(4px); white-space: nowrap; }
.pga-pill-video { background: rgba(220,40,100,.55); }

/* Play button variant of zoom btn */
.pga-play-btn { background: rgba(220,40,100,.5); border-color: rgba(255,255,255,.7); }
.pga-event-card:hover .pga-play-btn { background: rgba(220,40,100,.8); }

/* ── GLightbox tweaks ────────────────────────────────────────── */
.glightbox-clean .gslide-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   FOLDER VIEW  —  [pinnacle_gallery view="folders"]
   ═══════════════════════════════════════════════════════════════ */

/* Grid of year folders */
.pga-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Each folder card is a link */
.pga-folder-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  border-radius: 14px;
  transition: background .18s, transform .2s;
  cursor: pointer;
}
.pga-folder-card:hover {
  background: rgba(13,27,62,.06);
  transform: translateY(-4px);
}
.pga-folder-card:focus-visible {
  outline: 3px solid #0D1B3E;
  outline-offset: 4px;
}

/* Folder icon shape */
.pga-folder-icon-wrap { width: 160px; }
.pga-folder-shape {
  position: relative;
  width: 160px;
  display: flex;
  flex-direction: column;
}

/* Folder tab (top lip) */
.pga-folder-tab {
  width: 70px;
  height: 16px;
  background: #1c05ad;
  border-radius: 6px 6px 0 0;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

/* Folder body */
.pga-folder-body {
  width: 160px;
  height: 120px;
  background: #1c05ad;
  border-radius: 0 8px 8px 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(196,160,60,.35), 0 1px 3px rgba(0,0,0,.12);
  transition: box-shadow .2s;
}

.pga-folder-card:hover .pga-folder-tab {
  background: #1c05ad;
}
.pga-folder-card:hover .pga-folder-body {
  background: #1c05ad;
}

/* Photo collage inside folder body */
.pga-folder-collage {
  position: absolute;
  inset: 12px;
  border-radius: 4px;
  overflow: hidden;
}

/* 1 photo */
.pga-collage-1 { display: block; }
.pga-collage-1 img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 4px;
}

/* 2 photos side by side */
.pga-collage-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.pga-collage-2 img {
  width: 100%; height: 108px; object-fit: cover;
}
.pga-collage-2 img:first-child { border-radius: 4px 0 0 4px; }
.pga-collage-2 img:last-child  { border-radius: 0 4px 4px 0; }

/* 4 photos 2×2 grid */
.pga-collage-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.pga-collage-4 img {
  width: 100%; height: 54px; object-fit: cover;
}
.pga-collage-4 img:nth-child(1) { border-radius: 4px 0 0 0; }
.pga-collage-4 img:nth-child(2) { border-radius: 0 4px 0 0; }
.pga-collage-4 img:nth-child(3) { border-radius: 0 0 0 4px; }
.pga-collage-4 img:nth-child(4) { border-radius: 0 0 4px 0; }

/* No-photo state */
.pga-folder-empty-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
}

/* Folder label below icon */
.pga-folder-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.pga-folder-year {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -.3px;
}
.pga-folder-count {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* ── Inner view (after clicking a folder) ─── */
.pga-folder-inner { margin-top: 0; }

.pga-folder-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-size: 14px;
  color: #6b7280;
}
.pga-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0D1B3E;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 14px;
  border: 2px solid #0D1B3E;
  border-radius: 30px;
  transition: background .15s, color .15s;
}
.pga-back-btn:hover {
  background: #0D1B3E;
  color: #fff;
}
.pga-breadcrumb-sep { color: #d1d5db; font-size: 18px; }
.pga-breadcrumb-year { font-weight: 700; color: #1f2937; font-size: 15px; }

/* Responsive folder grid */
@media (max-width: 768px) {
  .pga-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
  }
  .pga-folder-icon-wrap,
  .pga-folder-shape,
  .pga-folder-body { width: 130px; }
  .pga-folder-body { height: 96px; }
  .pga-collage-2 img { height: 84px; }
  .pga-collage-4 img { height: 44px; }
}
@media (max-width: 420px) {
  .pga-folder-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
