/*
 * Zware Photography Pro — gallery-types.css
 * Additional gallery layouts, hover effects, and display modes
 * inspired by Kordex theme features.
 */

/* ============================================================
   SHARED GALLERY WRAPPER
   ============================================================ */
.zwpro-gallery-wrap {
  width: 100%;
  position: relative;
}

/* Gallery header / layout switcher */
.gallery-layout-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem 3px;
}

.gallery-layout-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e0ddd9;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-mid);
  transition: all var(--transition-base);
}

.gallery-layout-btn.is-active,
.gallery-layout-btn:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.gallery-layout-btn svg { width: 16px; height: 16px; }

/* ============================================================
   1. MASONRY LAYOUT
   ============================================================ */
.zwpro-gallery-masonry {
  column-count: 3;
  column-gap: 4px;
  padding: 0 3px;
}

.zwpro-gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 4px;
  aspect-ratio: unset;
  height: auto;
}

.zwpro-gallery-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .zwpro-gallery-masonry { column-count: 2; }
}
@media (max-width: 520px) {
  .zwpro-gallery-masonry { column-count: 1; }
}

/* ============================================================
   2. METRO TILES LAYOUT (varied sizes)
   ============================================================ */
.zwpro-gallery-metro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
  padding: 0 3px;
}

.zwpro-gallery-metro .gallery-item {
  aspect-ratio: unset;
  height: auto;
}

/* Pattern: items 1,5,9... → wide (2 cols, 2 rows) */
.zwpro-gallery-metro .gallery-item:nth-child(8n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Items 4,8,12... → tall (1 col, 2 rows) */
.zwpro-gallery-metro .gallery-item:nth-child(8n+4) {
  grid-row: span 2;
}

/* Items 6 → wide (2 cols) */
.zwpro-gallery-metro .gallery-item:nth-child(8n+6) {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .zwpro-gallery-metro {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .zwpro-gallery-metro .gallery-item:nth-child(8n+1),
  .zwpro-gallery-metro .gallery-item:nth-child(8n+6) {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .zwpro-gallery-metro {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
}

/* ============================================================
   3. JUSTIFIED ROWS LAYOUT
   ============================================================ */
.zwpro-gallery-justified {
  padding: 0 3px;
}

.justified-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  height: 280px;
}

.justified-row .gallery-item {
  flex: 1;
  min-width: 0;
  aspect-ratio: unset;
  height: 100%;
}

.justified-row .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .justified-row { height: 180px; }
}
@media (max-width: 420px) {
  .justified-row { height: 130px; flex-wrap: wrap; height: auto; }
  .justified-row .gallery-item { min-height: 120px; }
}

/* ============================================================
   4. FILMSTRIP / HORIZONTAL SCROLL LAYOUT
   ============================================================ */
.zwpro-gallery-filmstrip {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.zwpro-gallery-filmstrip::-webkit-scrollbar { display: none; }

.zwpro-gallery-filmstrip.is-grabbing { cursor: grabbing; }

.filmstrip-inner {
  display: inline-flex;
  gap: 4px;
  padding: 0 3px;
  height: 420px;
  align-items: stretch;
}

.zwpro-gallery-filmstrip .gallery-item {
  display: inline-block;
  flex-shrink: 0;
  height: 100%;
  width: auto;
  aspect-ratio: unset;
  white-space: normal;
}

.zwpro-gallery-filmstrip .gallery-item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}

/* Filmstrip navigation arrows */
.filmstrip-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.filmstrip-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e0ddd9;
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  transition: all var(--transition-base);
}

.filmstrip-nav-btn:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.filmstrip-nav-btn svg { width: 18px; height: 18px; }

.filmstrip-counter {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-gray-mid);
}

@media (max-width: 640px) {
  .filmstrip-inner { height: 260px; }
}

/* ============================================================
   5. PHOTO WALL LAYOUT
   ============================================================ */
.zwpro-gallery-photowall {
  padding: 0 3px;
  position: relative;
}

.photowall-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.photowall-grid .gallery-item {
  aspect-ratio: 1;
  cursor: zoom-in;
  position: relative;
}

.photowall-grid .gallery-item:nth-child(11n+1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1;
}

.photowall-grid .gallery-item:nth-child(11n+6) {
  grid-column: span 2;
}

.photowall-grid .gallery-item:nth-child(11n+9) {
  grid-column: span 3;
  aspect-ratio: 21/9;
}

/* Photo wall hover — titles float up */
.photowall-grid .gallery-item .gallery-item-overlay {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.photowall-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: white;
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.photowall-item-count {
  font-family: var(--font-meta);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-base) 0.05s, transform var(--transition-base) 0.05s;
}

.photowall-grid .gallery-item:hover .photowall-item-title,
.photowall-grid .gallery-item:hover .photowall-item-count {
  opacity: 1;
  transform: translateY(0);
}

.photowall-grid .gallery-item:hover .gallery-item-overlay { opacity: 1; }

@media (max-width: 900px) {
  .photowall-grid { grid-template-columns: repeat(3, 1fr); }
  .photowall-grid .gallery-item:nth-child(11n+9) { grid-column: span 2; aspect-ratio: 2/1; }
}

@media (max-width: 520px) {
  .photowall-grid { grid-template-columns: repeat(2, 1fr); }
  .photowall-grid .gallery-item:nth-child(11n+1),
  .photowall-grid .gallery-item:nth-child(11n+6),
  .photowall-grid .gallery-item:nth-child(11n+9) { grid-column: span 2; aspect-ratio: 2/1; }
}

/* ============================================================
   6. LIST VIEW LAYOUT
   ============================================================ */
.zwpro-gallery-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.gallery-list-item {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid #e8e6e3;
  align-items: center;
  cursor: zoom-in;
}

.gallery-list-item:first-child { border-top: 1px solid #e8e6e3; }

.gallery-list-item.is-reversed {
  grid-template-columns: 1fr 340px;
}

.gallery-list-item.is-reversed .gallery-list-image { order: 2; }
.gallery-list-item.is-reversed .gallery-list-info  { order: 1; }

.gallery-list-image {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.gallery-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-list-item:hover .gallery-list-image img { transform: scale(1.04); }

.gallery-list-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-list-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 300;
  color: #e8e6e3;
  line-height: 1;
}

.gallery-list-caption {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.2;
}

.gallery-list-meta {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}

@media (max-width: 768px) {
  .gallery-list-item,
  .gallery-list-item.is-reversed {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gallery-list-item.is-reversed .gallery-list-image { order: 0; }
  .gallery-list-item.is-reversed .gallery-list-info  { order: 1; }
}

/* ============================================================
   7. SLIDESHOW / FULLSCREEN GALLERY LAYOUT
   ============================================================ */
.zwpro-gallery-slideshow {
  position: relative;
  width: 100%;
  background: var(--color-black);
}

.gallery-slideshow-stage {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.gallery-slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.gallery-slideshow-slide.is-active { opacity: 1; }

.gallery-slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0 80px;
}

.gallery-slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
}

/* Slideshow thumbstrip */
.gallery-slideshow-thumbstrip {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--color-black);
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-slideshow-thumbstrip::-webkit-scrollbar { display: none; }

.gallery-slideshow-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-base);
  border: 2px solid transparent;
}

.gallery-slideshow-thumb.is-active,
.gallery-slideshow-thumb:hover {
  opacity: 1;
  border-color: var(--color-accent);
}

.gallery-slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slideshow nav */
.gallery-slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.5rem;
  pointer-events: none;
  z-index: 5;
}

.gallery-slideshow-btn {
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
  pointer-events: auto;
}

.gallery-slideshow-btn:hover { background: rgba(0,0,0,0.7); }
.gallery-slideshow-btn svg { width: 22px; height: 22px; }

.gallery-slideshow-counter {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  z-index: 5;
}

/* ============================================================
   8. HOVER EFFECTS
   ============================================================ */

/* Zoom (already in main CSS, re-declaring as class toggle) */
.effect-zoom .gallery-item img,
.effect-zoom .mosaic-item img,
.effect-zoom .series-card img {
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.effect-zoom .gallery-item:hover img,
.effect-zoom .mosaic-item:hover img,
.effect-zoom .series-card:hover img {
  transform: scale(1.08) !important;
}

/* Blur — image blurs + overlay sharpens title */
.effect-blur .gallery-item img {
  transition: filter 0.45s ease, transform 0.55s ease;
}
.effect-blur .gallery-item:hover img {
  filter: blur(4px);
  transform: scale(1.06);
}
.effect-blur .gallery-item-overlay {
  backdrop-filter: none;
  background: rgba(0,0,0,0.2);
}
.effect-blur .gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Tilt — 3D tilt effect (JS-driven, but CSS prepares perspective) */
.effect-tilt .gallery-item,
.effect-tilt .series-card,
.effect-tilt .mosaic-item {
  perspective: 1000px;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease;
  will-change: transform;
}

/* Color wash — grayscale to color on hover */
.effect-colorwash .gallery-item img {
  filter: grayscale(80%);
  transition: filter 0.5s ease, transform 0.55s ease;
}
.effect-colorwash .gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Slide-up caption overlay */
.effect-slideup .gallery-item-overlay {
  transform: translateY(100%);
  opacity: 1 !important;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  background: rgba(0,0,0,0.75);
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
}
.effect-slideup .gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

/* ============================================================
   9. KEN BURNS EFFECT (hero slider variation)
   ============================================================ */
.hero-slider.effect-kenburns .hero-slide.is-active img {
  animation: kenburns 8s ease-in-out forwards;
}

@keyframes kenburns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

.hero-slider.effect-kenburns .hero-slide:nth-child(even).is-active img {
  animation: kenburns-alt 8s ease-in-out forwards;
}

@keyframes kenburns-alt {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.12) translate(2%, 1%); }
}

/* ============================================================
   10. PARALLAX BLOG CARDS
   ============================================================ */
.blog-grid.effect-parallax .blog-card-image {
  overflow: hidden;
}

.blog-grid.effect-parallax .blog-card-image img {
  transform: translateY(0);
  transition: transform 0.1s linear;
  will-change: transform;
  height: 120%;
  top: -10%;
  position: relative;
}

/* ============================================================
   11. CLIENT / PASSWORD-PROTECTED GALLERY
   ============================================================ */
.zwpro-client-protected {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.zwpro-client-protected-inner {
  text-align: center;
  max-width: 420px;
}

.zwpro-client-protected-inner .section-label {
  margin-bottom: 1.5rem;
}

.zwpro-client-protected-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.zwpro-client-protected-inner p {
  font-size: 0.95rem;
  color: var(--color-gray-dark);
  margin: 0 auto 2rem;
  text-align: center;
}

.client-password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.client-password-input {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e0ddd9;
  background: transparent;
  color: var(--color-black);
  outline: none;
  text-align: center;
  letter-spacing: 0.2em;
  transition: border-color var(--transition-base);
}

.client-password-input:focus { border-color: var(--color-black); }

.client-password-input::placeholder {
  letter-spacing: 0.05em;
  color: var(--color-gray-mid);
}

.client-password-error {
  color: #c0392b;
  font-family: var(--font-meta);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  display: none;
}

/* ============================================================
   12. FILTERABLE PORTFOLIO (Isotope-style)
   ============================================================ */
.zwpro-filterable-wrap {
  padding: 0;
}

.zwpro-filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 2rem 3px;
  border-bottom: 1px solid #e8e6e3;
  margin-bottom: 0;
}

.zwpro-filter-btn {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-gray-mid);
  cursor: pointer;
  transition: all var(--transition-base);
}

.zwpro-filter-btn.is-active,
.zwpro-filter-btn:hover {
  color: var(--color-black);
  border-bottom-color: var(--color-accent);
}

.zwpro-filter-count {
  display: inline-block;
  font-size: 0.6rem;
  vertical-align: super;
  color: var(--color-gray-mid);
  margin-left: 2px;
}

/* Filterable grid */
.zwpro-filterable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 3px;
  transition: all 0.35s ease;
}

.zwpro-filterable-grid .series-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.zwpro-filterable-grid .series-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  display: none;
}

@media (max-width: 768px) {
  .zwpro-filterable-grid { grid-template-columns: repeat(2, 1fr); }
  .zwpro-filter-btn { font-size: 0.65rem; padding: 0.5rem 0.8rem; }
}

@media (max-width: 480px) {
  .zwpro-filterable-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   13. GALLERY TYPE SELECTOR IN SERIE SINGLE PAGE
   ============================================================ */
.gallery-type-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 3px;
  border-bottom: 1px solid #e8e6e3;
  margin-bottom: 0;
}

.gallery-type-switcher-label {
  font-family: var(--font-meta);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-right: 0.5rem;
}

.gallery-type-btn {
  font-family: var(--font-meta);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid #e0ddd9;
  background: transparent;
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-type-btn.is-active,
.gallery-type-btn:hover {
  border-color: var(--color-black);
  color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

/* Hide all gallery type wrappers by default */
.zwpro-gallery-type-panel {
  display: none;
}
.zwpro-gallery-type-panel.is-active-layout {
  display: block;
}

/* ============================================================
   14. METRO HOMEPAGE LAYOUT (alternative to mosaic)
   ============================================================ */
.home-metro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 4px;
  padding: 0 4px;
}

.home-metro-grid .series-card {
  aspect-ratio: unset;
  height: 100%;
}

.home-metro-grid .series-card:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.home-metro-grid .series-card:nth-child(5n+4) {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .home-metro-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
  .home-metro-grid .series-card:nth-child(5n+4) { grid-column: span 1; }
}

@media (max-width: 640px) {
  .home-metro-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .home-metro-grid .series-card:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
}

/* ============================================================
   15. GRID SIZE OPTIONS
   ============================================================ */
/* 2 columns */
.gallery-cols-2.zwpro-gallery-masonry { column-count: 2; }
.gallery-cols-2.zwpro-gallery-metro   { grid-template-columns: repeat(2, 1fr); }
.gallery-cols-2.zwpro-filterable-grid { grid-template-columns: repeat(2, 1fr); }

/* 3 columns (default) */
.gallery-cols-3.zwpro-gallery-masonry { column-count: 3; }
.gallery-cols-3.zwpro-gallery-metro   { grid-template-columns: repeat(3, 1fr); }
.gallery-cols-3.zwpro-filterable-grid { grid-template-columns: repeat(3, 1fr); }

/* 4 columns */
.gallery-cols-4.zwpro-gallery-masonry { column-count: 4; }
.gallery-cols-4.zwpro-gallery-metro   { grid-template-columns: repeat(4, 1fr); }
.gallery-cols-4.zwpro-filterable-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-cols-4.series-gallery-grid   { grid-template-columns: repeat(4, 1fr); }
.gallery-cols-4.series-gallery-grid .gallery-item:nth-child(4n+1) { grid-column: span 1; aspect-ratio: 1; }

/* 5 columns */
.gallery-cols-5.zwpro-gallery-masonry { column-count: 5; }
.gallery-cols-5 .photowall-grid       { grid-template-columns: repeat(5, 1fr); }

/* ============================================================
   16. NO-GAPS VARIANT
   ============================================================ */
.gallery-no-gaps .zwpro-gallery-masonry,
.gallery-no-gaps .zwpro-gallery-metro,
.gallery-no-gaps .series-gallery-grid,
.gallery-no-gaps .zwpro-gallery-justified .justified-row,
.gallery-no-gaps .photowall-grid,
.gallery-no-gaps .zwpro-filterable-grid {
  gap: 0 !important;
}

.gallery-no-gaps .zwpro-gallery-masonry { column-gap: 0; }
.gallery-no-gaps .zwpro-gallery-masonry .gallery-item { margin-bottom: 0; }
.gallery-no-gaps .justified-row { margin-bottom: 0; }
.gallery-no-gaps .filmstrip-inner { gap: 0; }

/* ============================================================
   17. SERIE CARD STYLE VARIANTS
   ============================================================ */

/* Dark text overlay (bright image) */
.series-card.card-style-light .series-card-info {
  background: linear-gradient(to top, rgba(255,255,255,0.85) 0%, transparent 55%);
}
.series-card.card-style-light .series-card-label,
.series-card.card-style-light .series-card-count { color: rgba(0,0,0,0.5); }
.series-card.card-style-light .series-card-title { color: var(--color-black); }

/* Frame style */
.series-card.card-style-framed img {
  padding: 8px;
  background: white;
}

/* Caption below */
.series-card.card-style-caption-below {
  flex-direction: column;
  background: var(--color-white);
}
.series-card.card-style-caption-below .series-card-info {
  position: static;
  background: transparent;
  padding: 1rem 0 0.5rem;
}
.series-card.card-style-caption-below .series-card-title { color: var(--color-black); font-size: 1rem; }
.series-card.card-style-caption-below .series-card-label { color: var(--color-gray-mid); }

/* ============================================================
   ADMIN: Gallery type meta box styles
   ============================================================ */
.zwpro-gallery-type-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.zwpro-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid #e0e0e0;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}

.zwpro-type-option:hover { border-color: #aaa; }
.zwpro-type-option.is-selected { border-color: #c8a96e; }

.zwpro-type-option svg {
  width: 32px;
  height: 32px;
  color: #666;
}

.zwpro-type-option.is-selected svg { color: #c8a96e; }

.zwpro-type-option span {
  font-size: 11px;
  color: #555;
  line-height: 1.2;
}
