/* =============================================================================
   SHARED GALLERY STYLES
   For quote, photo, and chart gallery pages
   Updated for "Warm Creative" Palette
   ============================================================================= */

/* 1. GALLERY CARD STRUCTURE & Z-INDEX LAYERING */

/* The card container - creates a positioning context */
.wp-block-group {
    position: relative;
    overflow: hidden;
}

/* The HOVER OVERLAY (Cover block) - sits behind everything */
.wp-block-cover.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* LAYER 1: Background */
    pointer-events: none;
    opacity: 0;
    background-color: #403B36; /* Modified: Deep Umber instead of pure black */
    transition: opacity 0.3s ease;
}

/* The ACF IMAGE - sits in front, will be clickable */
.gallery-acf-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}

/* Prevent cropping and set up zoom for ACF image */
.gallery-acf-image img {
    object-fit: contain;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* 2. INTERACTIVE EFFECTS (Hover & Click) */

/* Hover: Fade in the deep umber overlay */
.wp-block-group:hover .gallery-hover-overlay {
    opacity: 0.7;
}

/* Hover: Slight zoom effect on the ACF image */
.wp-block-group:hover .gallery-acf-image img {
    transform: scale(1.05);
}

/* 3. GALLERY BUTTON STYLING */

/* Position the button above other elements */
.wp-block-button {
    position: relative;
    z-index: 3;
    margin-top: 15px;
}

/* View Details button styling */
.wp-block-button__link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #E67E22; /* Modified: Carrot Orange instead of default blue */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.wp-block-button__link:hover {
    background-color: #403B36; /* Modified: Hover flip to Deep Umber */
}