/* ==========================================================================
   Author Personal Blog Pro - Headshots Gallery Widget
   Namespace: .apb-widget-headshots
   ========================================================================== */

.apb-media-headshots-section,
.apb-widget-headshots {
  position: relative;
  width: 100%;
  display: block;
  margin: 0;
  box-sizing: border-box;
}

.apb-media-headshots-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.apb-widget-headshots .apb-section-header {
  margin-bottom: var(--apb-space-5, 2rem);
}

.apb-widget-headshots .apb-divider-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.apb-widget-headshots .apb-section-title {
  font-family: var(--apb-font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--apb-color-heading, #0f172a);
  margin: 0;
  line-height: 1.25;
}

.apb-widget-headshots .apb-section-subtitle {
  font-family: var(--apb-font-sans, 'Inter', -apple-system, sans-serif);
  color: var(--apb-color-text-muted, #64748b);
  font-size: var(--apb-font-size-sm, 0.875rem);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.apb-widget-headshots .apb-headshots-grid {
  display: grid;
  grid-template-columns: repeat(var(--apb-headshots-columns, 3), 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.apb-widget-headshots .apb-headshot-card {
  background-color: var(--apb-color-bg-alt, #f8fafc);
  border: 1px solid var(--apb-color-border, #e2e8f0);
  border-radius: var(--apb-radius-sm, 6px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--apb-transition-smooth, 0.3s ease), border-color var(--apb-transition-smooth, 0.3s ease);
  box-sizing: border-box;
}

.apb-widget-headshots .apb-headshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--apb-color-primary, #1e3a8a);
  box-shadow: var(--apb-shadow-md, 0 4px 14px rgba(15, 23, 42, 0.1));
}

.apb-widget-headshots .apb-headshot-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.apb-widget-headshots .apb-headshot-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.apb-widget-headshots .apb-headshot-title {
  font-family: var(--apb-font-serif, 'Playfair Display', Georgia, serif);
  font-size: var(--apb-font-size-base, 1rem);
  font-weight: 700;
  color: var(--apb-color-heading, #0f172a);
  margin: 0;
  line-height: 1.3;
}

.apb-widget-headshots .apb-headshot-meta {
  font-family: var(--apb-font-sans, 'Inter', -apple-system, sans-serif);
  font-size: var(--apb-font-size-xs, 0.75rem);
  color: var(--apb-color-text-muted, #64748b);
  margin: 0 0 0.5rem 0;
}

.apb-widget-headshots .apb-headshot-downloads {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.apb-widget-headshots .apb-btn-download-web,
.apb-widget-headshots .apb-btn-download-print {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.45rem 0.65rem;
  font-family: var(--apb-font-sans, 'Inter', -apple-system, sans-serif);
  font-size: var(--apb-font-size-xs, 0.75rem);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--apb-radius-sm, 6px);
  transition: all var(--apb-transition-fast, 0.15s ease);
  box-sizing: border-box;
}

.apb-widget-headshots .apb-btn-download-web {
  background-color: var(--apb-color-bg-card, #ffffff);
  color: var(--apb-color-text, #334155);
  border: 1px solid var(--apb-color-border, #e2e8f0);
}

.apb-widget-headshots .apb-btn-download-web:hover {
  background-color: var(--apb-color-primary, #1e3a8a);
  color: #ffffff;
  border-color: var(--apb-color-primary, #1e3a8a);
}

.apb-widget-headshots .apb-btn-download-print {
  background-color: var(--apb-color-primary, #1e3a8a);
  color: #ffffff;
  border: 1px solid var(--apb-color-primary, #1e3a8a);
}

.apb-widget-headshots .apb-btn-download-print:hover {
  background-color: var(--apb-color-primary-dark, #172554);
  border-color: var(--apb-color-primary-dark, #172554);
}

@media (max-width: 900px) {
  .apb-widget-headshots .apb-headshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .apb-widget-headshots .apb-headshots-grid {
    grid-template-columns: 1fr;
  }
}