
/* ============================================================

   salute.nw — Component Library

   ============================================================ */



/* ── PANELS ─────────────────────────────────────────────────── */

.sal-panel {

    background: var(--sal-panel-bg);

    border: 1px solid var(--sal-panel-border);

    border-radius: var(--sal-radius-lg);

    overflow: hidden;

}

.sal-panel-head {

    padding: var(--sal-s4) var(--sal-s5);

    border-bottom: 1px solid var(--sal-border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: var(--sal-s3);

}

.sal-panel-title {

    font-weight: 600;

    font-size: 1rem;

    color: var(--sal-t1);

}

.sal-panel-body { padding: var(--sal-s5); }

.sal-panel-footer {

    padding: var(--sal-s4) var(--sal-s5);

    border-top: 1px solid var(--sal-border);

    background: var(--sal-surface2);

}



/* Panel variants */

.sal-panel--gold  { border-left: 3px solid var(--sal-gold); }

.sal-panel--flush { border-radius: 0; border-left: 0; border-right: 0; }



/* ── CARDS ──────────────────────────────────────────────────── */

.sal-card {

    background: var(--sal-card-bg);

    border: 1px solid var(--sal-card-border);

    border-radius: var(--sal-radius-lg);

    transition: background var(--sal-transition), border-color var(--sal-transition), transform var(--sal-transition), box-shadow var(--sal-transition);

    overflow: hidden;

    cursor: pointer;

}

.sal-card:hover {

    background: var(--sal-card-hover);

    border-color: var(--sal-border2);

    transform: translateY(-2px);

    box-shadow: var(--sal-shadow-md);

}



/* Veteran card — portrait grid */

.sal-vet-card { aspect-ratio: 3/4; display: flex; flex-direction: column; }

.sal-vet-card-portrait {

    flex: 1;

    position: relative;

    overflow: hidden;

    background: var(--sal-surface2);

}

.sal-vet-card-portrait img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}

.sal-vet-card:hover .sal-vet-card-portrait img { transform: scale(1.06); }

.sal-vet-card-branch-bar {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: var(--sal-branch-accent, var(--sal-gold));

}

.sal-vet-card-meta {

    padding: var(--sal-s3) var(--sal-s3) var(--sal-s4);

    background: linear-gradient(180deg, var(--sal-surface) 0%, var(--sal-surface2) 100%);

}

.sal-vet-card-name {

    font-weight: 700;

    font-size: 0.875rem;

    color: var(--sal-t1);

    line-height: 1.3;

    margin-bottom: 3px;

}

.sal-vet-card-service {

    font-size: 0.75rem;

    color: var(--sal-t2);

}

.sal-vet-card-moh {

    position: absolute;

    top: var(--sal-s2);

    right: var(--sal-s2);

    background: var(--sal-gold);

    color: #0a0b0d;

    font-size: 0.65rem;

    font-weight: 700;

    padding: 2px 6px;

    border-radius: 4px;

    letter-spacing: 0.04em;

}



/* ── BUTTONS ────────────────────────────────────────────────── */

.sal-btn {

    display: inline-flex;

    align-items: center;

    gap: var(--sal-s2);

    padding: 0 var(--sal-s5);

    height: 40px;

    border-radius: 40px;

    font-size: 0.9rem;

    font-weight: 600;

    transition: background var(--sal-transition), color var(--sal-transition), border-color var(--sal-transition), box-shadow var(--sal-transition);

    white-space: nowrap;

    border: 1px solid transparent;

    cursor: pointer;

}

.sal-btn-primary {

    background: var(--sal-gold);

    color: #0a0b0d;

    border-color: var(--sal-gold);

}

.sal-btn-primary:hover {

    background: var(--sal-gold-bright);

    box-shadow: 0 4px 16px var(--sal-gold-glass);

}

.sal-btn-secondary {

    background: var(--sal-btn-bg);

    color: var(--sal-t1);

    border-color: var(--sal-btn-border);

}

.sal-btn-secondary:hover { background: var(--sal-btn-hover); }

.sal-btn-ghost {

    background: transparent;

    color: var(--sal-t1);

    border-color: var(--sal-border);

}

.sal-btn-ghost:hover { background: var(--sal-surface2); }

.sal-btn-gold-outline {

    background: transparent;

    color: var(--sal-gold);

    border-color: var(--sal-gold-border);

}

.sal-btn-gold-outline:hover { background: var(--sal-gold-glass); }

.sal-btn-sm { height: 32px; padding: 0 var(--sal-s4); font-size: 0.8rem; }

.sal-btn-lg { height: 50px; padding: 0 var(--sal-s7); font-size: 1rem; }

.sal-btn img { width: 16px; height: 16px; }



/* ── BADGES ─────────────────────────────────────────────────── */

.sal-badge {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 2px 8px;

    border-radius: 20px;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.03em;

    white-space: nowrap;

}

.sal-badge--moh    { background: var(--sal-gold); color: #0a0b0d; }

.sal-badge--branch { background: var(--sal-branch-primary, var(--sal-surface2)); color: var(--sal-t1); border: 1px solid var(--sal-border); }

.sal-badge--gold   { background: var(--sal-gold-glass); color: var(--sal-gold); border: 1px solid var(--sal-gold-border); }

.sal-badge--gray   { background: var(--sal-surface2); color: var(--sal-t2); border: 1px solid var(--sal-border); }

.sal-badge--green  { background: rgba(72,160,72,0.15); color: #72c072; border: 1px solid rgba(72,160,72,0.25); }

.sal-badge--full-circle { background: var(--sal-gold); color: #0a0b0d; font-family: var(--sal-font-display); font-style: italic; }



/* ── STAT BLOCKS ────────────────────────────────────────────── */

.sal-stat-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: var(--sal-s4);

}

.sal-stat-block {

    background: var(--sal-surface);

    border: 1px solid var(--sal-border);

    border-radius: var(--sal-radius-lg);

    padding: var(--sal-s5) var(--sal-s5);

    text-align: center;

}

.sal-stat-number {

    font-family: var(--sal-font-display);

    font-size: clamp(1.75rem, 3vw, 2.5rem);

    font-weight: 700;

    color: var(--sal-gold);

    line-height: 1;

    margin-bottom: var(--sal-s2);

    font-variant-numeric: tabular-nums;

}

.sal-stat-label { font-size: 0.8rem; color: var(--sal-t2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.sal-stat-sub   { font-size: 0.75rem; color: var(--sal-t3); margin-top: var(--sal-s1); }



/* ── TRIBUTE CARD ───────────────────────────────────────────── */

.sal-tribute-card {

    background: var(--sal-surface);

    border: 1px solid var(--sal-border);

    border-radius: var(--sal-radius-lg);

    padding: var(--sal-s4) var(--sal-s5);

    transition: background var(--sal-transition);

}

.sal-tribute-card:hover { background: var(--sal-surface2); }

.sal-tribute-head { display: flex; align-items: center; gap: var(--sal-s3); margin-bottom: var(--sal-s3); }

.sal-tribute-avatar {

    width: 36px;

    height: 36px;

    border-radius: 50%;

    background: var(--sal-surface2);

    border: 1px solid var(--sal-border);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.8rem;

    font-weight: 700;

    color: var(--sal-t2);

    flex-shrink: 0;

}

.sal-tribute-author  { font-weight: 600; font-size: 0.875rem; color: var(--sal-t1); }

.sal-tribute-meta    { font-size: 0.75rem; color: var(--sal-t3); }

.sal-tribute-body    { font-size: 0.9rem; color: var(--sal-t2); line-height: 1.65; }

.sal-tribute-veteran { font-size: 0.8rem; color: var(--sal-gold); font-weight: 600; margin-top: var(--sal-s2); }



/* ── FORM ELEMENTS ──────────────────────────────────────────── */

.sal-input {

    width: 100%;

    height: 42px;

    background: var(--sal-input-bg);

    border: 1px solid var(--sal-input-border);

    border-radius: var(--sal-radius);

    padding: 0 var(--sal-s4);

    color: var(--sal-t1);

    font-size: 0.9375rem;

    transition: border-color var(--sal-transition), box-shadow var(--sal-transition);

}

.sal-input:focus {

    outline: none;

    border-color: var(--sal-gold);

    box-shadow: 0 0 0 3px var(--sal-gold-glass);

}

.sal-input::placeholder { color: var(--sal-t3); }

.sal-label-text { display: block; font-size: 0.8rem; font-weight: 600; color: var(--sal-t2); margin-bottom: var(--sal-s2); letter-spacing: 0.04em; }

.sal-field     { margin-bottom: var(--sal-s4); }



/* ── RIBBON DISPLAY ─────────────────────────────────────────── */

.sal-ribbon-rack { display: flex; flex-wrap: wrap; gap: 4px; }

.sal-ribbon {

    width: 36px;

    height: 12px;

    border-radius: 2px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.08);

    cursor: pointer;

    transition: transform var(--sal-transition);

}

.sal-ribbon:hover { transform: scale(1.3); z-index: 10; position: relative; }

.sal-ribbon img   { width: 100%; height: 100%; object-fit: cover; }



/* ── PAGE HEADER ────────────────────────────────────────────── */

.sal-page-header {

    margin-bottom: var(--sal-s7);

}

.sal-page-eyebrow {

    font-size: 0.72rem;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--sal-gold);

    font-weight: 700;

    margin-bottom: var(--sal-s2);

}

.sal-page-title {

    font-family: var(--sal-font-display);

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 700;

    color: var(--sal-t1);

    line-height: 1.1;

    letter-spacing: -0.02em;

    margin-bottom: var(--sal-s3);

}

.sal-page-subtitle {

    font-size: 1.125rem;

    color: var(--sal-t2);

    line-height: 1.65;

    max-width: 600px;

}



/* ── GRID LAYOUTS ───────────────────────────────────────────── */

.sal-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sal-s4); }

.sal-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sal-s5); }

.sal-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sal-s5); }

@media (max-width: 1200px) { .sal-grid-4 { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 900px)  { .sal-grid-4 { grid-template-columns: repeat(2, 1fr); } .sal-grid-3 { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px)  { .sal-grid-4, .sal-grid-3, .sal-grid-2 { grid-template-columns: 1fr; } }



/* ── BUILDING PLACEHOLDER (for unbuilt views) ───────────────── */

.sal-building {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    min-height: 60vh;

    gap: var(--sal-s4);

}

.sal-building-icon    { width: 64px; height: 64px; opacity: 0.3; }

.sal-building-title   { font-family: var(--sal-font-display); font-size: 1.75rem; font-weight: 700; color: var(--sal-t1); }

.sal-building-body    { font-size: 1rem; color: var(--sal-t2); max-width: 480px; line-height: 1.65; }






/* ============================================================

   salute.nw — Honor + Veteran additions

   ============================================================ */



/* ── HONOR FILTER BAR ───────────────────────────────────────── */

.sal-honor-filters {

    display: flex;

    flex-wrap: wrap;

    gap: var(--sal-s3);

    align-items: flex-end;

    padding: var(--sal-s4) var(--sal-s5);

    background: var(--sal-surface);

    border: 1px solid var(--sal-border);

    border-radius: var(--sal-radius-lg);

    margin-bottom: var(--sal-s5);

}

.sal-honor-filter-group {

    display: flex;

    flex-direction: column;

    gap: var(--sal-s2);

    min-width: 140px;

}

.sal-honor-filter-group.sal-honor-search { flex: 1; min-width: 220px; }

.sal-select {

    height: 42px;

    background: var(--sal-input-bg);

    border: 1px solid var(--sal-input-border);

    border-radius: var(--sal-radius);

    padding: 0 36px 0 var(--sal-s4);

    color: var(--sal-t1);

    font-size: 0.9rem;

    font-family: var(--sal-font-body);

    cursor: pointer;

    transition: border-color var(--sal-transition);

    appearance: none;

    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a98a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 10px center;

    background-size: 16px;

}

.sal-select:focus { outline: none; border-color: var(--sal-gold); box-shadow: 0 0 0 3px var(--sal-gold-glass); }

.sal-honor-results-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: var(--sal-s4);

    margin-bottom: var(--sal-s4);

    flex-wrap: wrap;

}

.sal-honor-count { font-size: 0.875rem; color: var(--sal-t2); }

.sal-honor-count strong { color: var(--sal-t1); font-weight: 600; }

.sal-filter-chips { display: flex; flex-wrap: wrap; gap: var(--sal-s2); margin-bottom: var(--sal-s4); }

.sal-filter-chip {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 4px 10px;

    background: var(--sal-gold-glass);

    border: 1px solid var(--sal-gold-border);

    border-radius: 20px;

    font-size: 0.75rem;

    font-weight: 600;

    color: var(--sal-gold);

}

.sal-filter-chip a { color: var(--sal-gold); opacity: 0.6; font-size: 1rem; line-height: 1; }

.sal-filter-chip a:hover { opacity: 1; }



/* ── HONOR CARD — no photo state ────────────────────────────── */

.sal-vet-initials {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: var(--sal-font-display);

    font-size: 2.5rem;

    font-weight: 700;

    color: var(--sal-t4);

    background: linear-gradient(160deg, var(--sal-surface2) 0%, var(--sal-surface3) 100%);

    letter-spacing: -0.02em;

}



/* ── PAGINATION ─────────────────────────────────────────────── */

.sal-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: var(--sal-s2);

    margin-top: var(--sal-s7);

    flex-wrap: wrap;

}

.sal-page-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    height: 38px;

    padding: 0 var(--sal-s3);

    border-radius: var(--sal-radius);

    font-size: 0.875rem;

    font-weight: 600;

    color: var(--sal-t2);

    background: var(--sal-surface);

    border: 1px solid var(--sal-border);

    transition: background var(--sal-transition), color var(--sal-transition), border-color var(--sal-transition);

    text-decoration: none;

}

.sal-page-btn:hover { background: var(--sal-surface2); color: var(--sal-t1); border-color: var(--sal-border2); }

.sal-page-btn.active { background: var(--sal-gold); color: #0a0b0d; border-color: var(--sal-gold); pointer-events: none; }

.sal-page-btn.disabled { opacity: 0.3; pointer-events: none; }

.sal-page-ellipsis { color: var(--sal-t3); font-size: 0.875rem; padding: 0 var(--sal-s2); line-height: 38px; }



/* ── VETERAN HERO ────────────────────────────────────────────── */

.sal-vet-hero {

    display: grid;

    grid-template-columns: 260px 1fr;

    gap: var(--sal-s6);

    align-items: start;

    margin-bottom: var(--sal-s6);

}

.sal-vet-portrait-wrap {

    position: relative;

    border-radius: var(--sal-radius-lg);

    overflow: hidden;

    background: var(--sal-surface2);

    aspect-ratio: 3/4;

    border: 1px solid var(--sal-border);

}

.sal-vet-portrait-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sal-vet-portrait-bar {

    position: absolute;

    bottom: 0; left: 0; right: 0;

    height: 4px;

    background: var(--sal-branch-accent, var(--sal-gold));

}

.sal-vet-portrait-initials {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: var(--sal-font-display);

    font-size: 5rem;

    font-weight: 700;

    color: var(--sal-t4);

    letter-spacing: -0.02em;

}

.sal-vet-identity { display: flex; flex-direction: column; gap: var(--sal-s4); padding-top: var(--sal-s2); }

.sal-vet-eyebrow {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 0.72rem;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--sal-gold);

    font-weight: 700;

}

.sal-vet-eyebrow img { flex-shrink: 0; }

.sal-vet-name {

    font-family: var(--sal-font-display);

    font-size: clamp(2rem, 5vw, 3.25rem);

    font-weight: 700;

    color: var(--sal-t1);

    line-height: 1.05;

    letter-spacing: -0.02em;

}

.sal-vet-rank-line { font-size: 1.125rem; color: var(--sal-t2); }

.sal-vet-lifespan { font-size: 0.9rem; color: var(--sal-t3); }

.sal-vet-badges { display: flex; flex-wrap: wrap; gap: var(--sal-s2); }

.sal-vet-meta-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

    gap: var(--sal-s4);

    padding-top: var(--sal-s3);

    border-top: 1px solid var(--sal-border);

}

.sal-vet-meta-item { display: flex; flex-direction: column; gap: 3px; }

.sal-vet-meta-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sal-t3); font-weight: 700; }

.sal-vet-meta-value { font-size: 0.9375rem; font-weight: 600; color: var(--sal-t1); }

.sal-vet-section { margin-bottom: var(--sal-s5); }



/* ── DECORATION LIST ─────────────────────────────────────────── */

.sal-decoration-list { display: flex; flex-direction: column; gap: var(--sal-s3); }

.sal-decoration-item {

    display: flex;

    gap: var(--sal-s4);

    align-items: center;

    padding: var(--sal-s3) var(--sal-s4);

    background: var(--sal-surface2);

    border-radius: var(--sal-radius);

    border: 1px solid var(--sal-border);

    transition: background var(--sal-transition);

}

.sal-decoration-item:hover { background: var(--sal-surface3); }

.sal-decoration-item.sal-decoration-moh { border-left: 3px solid var(--sal-gold); }

.sal-decoration-ribbon-img { width: 54px; height: 18px; border-radius: 2px; object-fit: cover; flex-shrink: 0; background: var(--sal-surface3); }

.sal-decoration-name { font-weight: 600; font-size: 0.9rem; color: var(--sal-t1); line-height: 1.3; }

.sal-decoration-meta { font-size: 0.78rem; color: var(--sal-t3); margin-top: 2px; }



/* ── UTILITIES ───────────────────────────────────────────────── */

.sal-icon-r { display: inline !important; vertical-align: middle; margin-right: 4px; }

.sal-icon-inline { display: inline !important; vertical-align: middle; }

.sal-text-center { text-align: center; }

.sal-t3-text { color: var(--sal-t3); }
.sal-mono-sm { font-family: var(--sal-font-mono); font-size: 0.8rem; }

.sal-mb-3 { margin-bottom: var(--sal-s3); }



/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 900px) {

    .sal-vet-hero { grid-template-columns: 1fr; }

    .sal-vet-portrait-wrap { max-width: 260px; }

}

@media (max-width: 600px) {

    .sal-honor-filters { flex-direction: column; }

    .sal-honor-filter-group { min-width: 100%; }

    .sal-vet-meta-grid { grid-template-columns: 1fr 1fr; }

    .sal-vet-name { font-size: 2rem; }

}




/* ── HEADSTONE FLIPPER ───────────────────────────────────────── */

.sal-vet-card.sal-flip-card {

    perspective: 1000px;

    background: transparent;

    border: none;

    cursor: pointer;

}

.sal-flip-inner {

    position: relative;

    width: 100%;

    height: 100%;

    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);

    transform-style: preserve-3d;

}

.sal-flip-card:hover .sal-flip-inner { transform: rotateY(180deg); }

.sal-flip-front,

.sal-flip-back {

    position: absolute;

    width: 100%;

    height: 100%;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    border-radius: var(--sal-radius-lg);

    overflow: hidden;

    border: 1px solid var(--sal-card-border);

}

.sal-flip-front { background: var(--sal-card-bg); }

.sal-flip-back {

    transform: rotateY(180deg);

    background: var(--sal-surface2);

    display: flex;

    flex-direction: column;

}

/* Back — headstone photo */

.sal-flip-back-photo {

    flex: 1;

    overflow: hidden;

    background: var(--sal-surface3);

    position: relative;

}

.sal-flip-back-photo img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

/* Back — no photo fallback: service summary */

.sal-flip-back-summary {

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: var(--sal-s4);

    gap: var(--sal-s3);

    background: linear-gradient(160deg, var(--sal-surface2) 0%, var(--sal-surface3) 100%);

    text-align: center;

}

.sal-flip-back-name {

    font-family: var(--sal-font-display);

    font-size: 0.9rem;

    font-weight: 700;

    color: var(--sal-t1);

    line-height: 1.3;

}

.sal-flip-back-service {

    font-size: 0.72rem;

    color: var(--sal-t2);

    line-height: 1.6;

    display: flex;

    flex-direction: column;

    gap: 2px;

}

.sal-flip-back-service span { display: block; }

.sal-flip-back-icon { opacity: 0.4; }

.sal-flip-back-meta {

    padding: var(--sal-s3);

    background: var(--sal-surface);

    border-top: 1px solid var(--sal-border);

    font-size: 0.7rem;

    color: var(--sal-t3);

    text-align: center;

}

.sal-flip-back-meta strong { color: var(--sal-gold); }

/* Flip hint on cards that have a back photo */

.sal-flip-hint {

    position: absolute;

    bottom: var(--sal-s2);

    left: 50%;

    transform: translateX(-50%);

    font-size: 0.6rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: rgba(255,255,255,0.5);

    background: rgba(0,0,0,0.4);

    padding: 2px 8px;

    border-radius: 10px;

    pointer-events: none;

    white-space: nowrap;

}




/* ── EXTENDED GRIDS (honor cols selector) ────────────────────── */

.sal-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sal-s3); }

.sal-grid-8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--sal-s2); }

@media (max-width: 1400px) { .sal-grid-8 { grid-template-columns: repeat(6, 1fr); } }

@media (max-width: 1200px) { .sal-grid-6 { grid-template-columns: repeat(4, 1fr); } .sal-grid-8 { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 900px)  { .sal-grid-6, .sal-grid-8 { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 600px)  { .sal-grid-6, .sal-grid-8 { grid-template-columns: repeat(2, 1fr); } }




/* ── Veteran portrait flipper ─────────────────────────────────────────────── */

.sal-vet-portrait-wrap { perspective: 1000px; }

.sal-vet-portrait-flipper {

    width: 100%; height: 100%;

    position: relative;

    transform-style: preserve-3d;

    transition: transform 0.6s ease;

}

.sal-vet-portrait-wrap--flippable:hover .sal-vet-portrait-flipper {

    transform: rotateY(180deg);

}

.sal-vet-portrait-front,

.sal-vet-portrait-back {

    position: absolute;

    width: 100%; height: 100%;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

}

.sal-vet-portrait-front { z-index: 2; }

.sal-vet-portrait-back {

    transform: rotateY(180deg);

}

.sal-vet-portrait-back img {

    width: 100%; height: 100%; object-fit: cover; display: block;

}

