/* ==========================================================================
   Reference Page Pictures System
   ========================================================================== */

/* 1. Hero / Front Picture Styling */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--reference-radius-top) !important;
    overflow: hidden !important;
    box-shadow: var(--reference-shadow) !important;
    transition: var(--reference-transition) !important;
    border: 1px solid var(--reference-outline) !important;
    background: var(--reference-bg);
}

.hero-image-wrapper:hover {
    box-shadow: var(--reference-shadow-hover) !important;
    transform: translateY(-4px);
}

.hero-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02); /* Very subtle zoom as requested */
}

/* 2. Generic Reference Pictures
   Use these classes for any other images on the detail page
   ========================================================================== */

.reference-image-container {
    border-radius: var(--reference-radius-bottom) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--reference-outline) !important;
    transition: var(--reference-transition) !important;
}

.reference-image-container:hover {
    box-shadow: var(--reference-shadow) !important;
    transform: scale(1.01);
}

.reference-image-container img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 3. Mobile Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-image-wrapper:hover {
        transform: none !important;
    }
    
    .hero-image-wrapper:hover .hero-image {
        transform: none !important;
    }
}
