/* 
 * Photographer Vote Banner - Square 3-Image Layout
 * HeadshotPhotographers.com - Best Page
 * Version: 3.1 - Bootstrap override fix
 * Date: January 20, 2026
 */

/* ============================================
   LINK WRAPPER - ENTIRE BANNER CLICKABLE
   ============================================ */

.photographer-vote-banner-link {
    text-decoration: none !important;
    display: block !important;
    transition: transform 0.2s ease;
    width: 100%;
}

.photographer-vote-banner-link:hover {
    transform: translateY(-3px);
    text-decoration: none !important;
}

/* ============================================
   BANNER CONTAINER - SQUARE ASPECT RATIO
   ============================================ */

.photographer-vote-banner {
    background-color: #000 !important;
    padding: 15px;
    border-radius: 8px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    position: relative;
}

.photographer-vote-banner-link:hover .photographer-vote-banner {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Light mode support */
@media (prefers-color-scheme: light) {
    .photographer-vote-banner {
        background-color: #fff !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .photographer-vote-banner-link:hover .photographer-vote-banner {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   IMAGE ROW - ALWAYS HORIZONTAL - CRITICAL
   ============================================ */

.banner-images {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    width: 100% !important;
    justify-content: center;
    flex-shrink: 0;
    flex-wrap: nowrap !important;
}

.banner-images img {
    width: 33% !important;
    max-width: 33% !important;
    min-width: 30% !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    background-color: #1a1a1a;
    transition: transform 0.2s ease;
    flex-shrink: 0 !important;
    display: inline-block !important;
    height: auto !important;
}

@media (prefers-color-scheme: light) {
    .banner-images img {
        background-color: #f5f5f5;
    }
}

.photographer-vote-banner-link:hover .banner-images img {
    transform: scale(1.02);
}

/* ============================================
   NAME DISPLAY - FIRSTNAME & LASTNAME ROWS
   ============================================ */

.photographer-name-block {
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

h3.firstname,
h3.lastname {
    font-family: 'Cooper Std', 'Cooper Black', 'Arial Black', serif !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: -0.5px;
    font-size: clamp(16px, 4vw, 24px) !important;
    word-break: break-word;
}

h3.firstname {
    margin-bottom: 2px !important;
}

@media (prefers-color-scheme: light) {
    h3.firstname,
    h3.lastname {
        color: #000 !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MAINTAIN SQUARE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    h3.firstname,
    h3.lastname {
        font-size: clamp(14px, 3.5vw, 20px) !important;
    }
    
    .photographer-vote-banner {
        padding: 12px;
        gap: 12px;
    }
    
    .banner-images {
        gap: 6px;
    }
    
    .banner-images img {
        border-radius: 5px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h3.firstname,
    h3.lastname {
        font-size: clamp(12px, 3vw, 16px) !important;
    }
    
    .photographer-vote-banner {
        padding: 10px;
        gap: 10px;
    }
    
    .banner-images {
        gap: 5px;
    }
    
    .banner-images img {
        border-radius: 4px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    h3.firstname,
    h3.lastname {
        font-size: clamp(10px, 2.5vw, 14px) !important;
    }
    
    .photographer-vote-banner {
        padding: 8px;
        gap: 8px;
    }
    
    .banner-images {
        gap: 4px;
    }
    
    .banner-images img {
        border-radius: 3px;
    }
}

/* ============================================
   GRID INTEGRATION - COL-MD-3 / COL-XS-3
   ============================================ */

.col-md-3 .photographer-vote-banner-link,
.col-xs-3 .photographer-vote-banner-link {
    width: 100%;
}

.top_photog {
    margin-bottom: 15px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.photographer-vote-banner-link:focus {
    outline: 3px solid #0066cc;
    outline-offset: 3px;
    border-radius: 8px;
}

.photographer-vote-banner-link:focus .photographer-vote-banner {
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .photographer-vote-banner-link,
    .banner-images img,
    .photographer-vote-banner {
        transition: none;
    }
    
    .photographer-vote-banner-link:hover {
        transform: none;
    }
    
    .photographer-vote-banner-link:hover .banner-images img {
        transform: none;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.photographer-vote-banner.loading {
    opacity: 0.6;
    pointer-events: none;
}

.photographer-vote-banner.loading .banner-images img {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   ERROR HANDLING
   ============================================ */

.banner-images img.error {
    background-color: #2a2a2a;
    position: relative;
}

@media (prefers-color-scheme: light) {
    .banner-images img.error {
        background-color: #e0e0e0;
    }
}

.banner-images img.error::after {
    content: '?';
    color: #666;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .photographer-vote-banner {
        background-color: transparent !important;
        border: 2px solid #000;
        box-shadow: none;
    }
    
    h3.firstname,
    h3.lastname {
        color: #000 !important;
    }
    
    .photographer-vote-banner-link:hover {
        transform: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    .photographer-vote-banner {
        border: 3px solid #fff;
    }
    
    @media (prefers-color-scheme: light) {
        .photographer-vote-banner {
            border: 3px solid #000;
        }
    }
    
    h3.firstname,
    h3.lastname {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* ============================================
   SCHEMA.ORG METADATA (HIDDEN)
   ============================================ */

.photographer-vote-banner meta,
.photographer-vote-banner link {
    display: none;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */