/* ============================================================
   Conferro Heritaè — Homepage Instagram Section
   Clean, Premium, Minimal, Image-Focused, Editorial Design
   Brand Kit Typography, Colors, and 1320px Standard Outer Grid
   Matches Reference Mockup Exactly (Desktop, Tablet, Mobile)
   ============================================================ */

/* ── Section & Outer Container ── */
html body .elementor-element.elementor-element-conferro_ig_sec,
html body .elementor-element.conferro-home-instagram,
html body div.conferro-home-instagram,
html body section.conferro-home-instagram,
html body .conferro-instagram-section {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
    padding-top: 50px !important;
    padding-bottom: 80px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html body .conferro-home-instagram .elementor-widget-container,
html body .conferro-home-instagram .elementor-widget-html,
html body .elementor-element-conferro_ig_sec .elementor-widget-container,
html body .elementor-element-conferro_ig_sec .elementor-widget-html {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body .elementor-element.elementor-element-conferro_ig_inner_container,
html body .conferro-home-instagram .conferro-instagram-container,
html body .conferro-instagram-section .conferro-instagram-container,
html body .conferro-instagram-section .conferro-instagram-container > .e-con-inner,
html body .elementor-element.elementor-element-conferro_ig_sec > .e-con-inner,
html body .elementor-element.elementor-element-conferro_ig_inner_container > .e-con-inner {
    max-width: 1320px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* ── Header Area ── */
html body .elementor-element.elementor-element-conferro_ig_header_widget,
html body .conferro-instagram-header {
    text-align: center !important;
    margin-bottom: 34px !important;
    width: 100% !important;
}

/* Eyebrow: ART • ARCHIVE • CULTURE • HERITAGE */
html body .conferro-instagram-eyebrow {
    font-family: var(--conferro-font-eyebrow, 'Montserrat', 'Jost', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 2.2px !important;
    text-transform: uppercase !important;
    color: #B98A4E !important; /* Antique Gold */
    margin: 0 0 10px 0 !important;
    display: block !important;
    text-align: center !important;
}

/* Main Heading Container with Left & Right Dividers on the SAME Level */
html body .conferro-instagram-title-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto 10px auto !important;
    padding: 0 !important;
    gap: 24px !important;
}

html body .conferro-instagram-divider-line {
    flex: 1 !important;
    height: 1px !important;
    background-color: #B98A4E !important;
    display: block !important;
    opacity: 0.85 !important;
    border: none !important;
    margin: 0 !important;
}

html body .conferro-instagram-title {
    flex: 0 0 auto !important;
    font-family: var(--conferro-font-serif, 'Playfair Display', 'Cormorant Garamond', Georgia, serif) !important;
    font-size: clamp(32px, 3.5vw, 42px) !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: #210912 !important; /* Near-Black Wine */
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

/* Supporting Subtitle */
html body .conferro-instagram-subtitle {
    font-family: var(--conferro-font-sans, 'Inter', 'Jost', sans-serif) !important;
    font-size: 15.5px !important;
    line-height: 1.6 !important;
    color: #6F5A5E !important; /* Warm Grey */
    max-width: 640px !important;
    margin: 10px auto 0 auto !important;
    text-align: center !important;
}

/* ── Instagram 6-Image Grid Container ── */
html body .elementor-element.elementor-element-conferro_ig_grid_container,
html body .conferro-instagram-grid {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Apply 6-column grid across Desktop (>1024px) */
html body .elementor-element.elementor-element-conferro_ig_grid_container > .e-con-inner,
html body .elementor-element.elementor-element-conferro_ig_grid_container:not(:has(> .e-con-inner)),
html body .conferro-instagram-grid > .e-con-inner,
html body div.conferro-instagram-grid:not(:has(> .e-con-inner)) {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

/* ── Individual Image Tiles / Elementor Image Widgets ── */
html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-element,
html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-wd_image_or_svg,
html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-image,
html body .conferro-instagram-grid .elementor-element,
html body .conferro-instagram-grid .elementor-widget-wd_image_or_svg,
html body .conferro-instagram-grid .elementor-widget-image,
html body .conferro-instagram-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 0px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background-color: #FAF7F2 !important;
    border: 1px solid rgba(185, 138, 78, 0.25) !important;
    box-shadow: 0 4px 14px rgba(33, 9, 18, 0.08) !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-element:hover,
html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-wd_image_or_svg:hover,
html body .conferro-instagram-grid .elementor-element:hover,
html body .conferro-instagram-grid .elementor-widget-wd_image_or_svg:hover,
html body .conferro-instagram-grid .elementor-widget-image:hover,
html body .conferro-instagram-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(33, 9, 18, 0.16) !important;
    border-color: rgba(185, 138, 78, 0.65) !important;
}

html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-container,
html body .elementor-element.elementor-element-conferro_ig_grid_container .wd-image,
html body .elementor-element.elementor-element-conferro_ig_grid_container a,
html body .conferro-instagram-grid .elementor-widget-container,
html body .conferro-instagram-grid .wd-image,
html body .conferro-instagram-grid a,
html body .conferro-instagram-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #FAF7F2 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-container img,
html body .elementor-element.elementor-element-conferro_ig_grid_container .wd-image img,
html body .elementor-element.elementor-element-conferro_ig_grid_container a img,
html body .conferro-instagram-grid .elementor-widget-container img,
html body .conferro-instagram-grid .wd-image img,
html body .conferro-instagram-grid a img,
html body .conferro-instagram-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1) !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-wd_image_or_svg:hover img,
html body .conferro-instagram-grid .elementor-widget-wd_image_or_svg:hover img,
html body .conferro-instagram-grid .elementor-widget-image:hover img,
html body .conferro-instagram-item:hover .conferro-instagram-img-wrap img {
    transform: scale(1.04) !important;
}

/* Subtle Top-Right Instagram Badge (Matching Reference) */
html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-widget-container::after,
html body .conferro-instagram-grid .elementor-widget-container::after,
html body .conferro-instagram-img-wrap::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='%23FFF9F2'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E") no-repeat center center !important;
    border-radius: 4px !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s ease, background-color 0.3s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

html body .elementor-element.elementor-element-conferro_ig_grid_container .elementor-element:hover .elementor-widget-container::after,
html body .conferro-instagram-grid .elementor-element:hover .elementor-widget-container::after,
html body .conferro-instagram-item:hover .conferro-instagram-img-wrap::after {
    opacity: 1 !important;
    background-color: rgba(54, 12, 22, 0.65) !important;
}

/* ── CTA Button Area ── */
html body .elementor-element.elementor-element-conferro_ig_cta_widget,
html body .conferro-instagram-cta-wrap {
    text-align: center !important;
    margin-top: 36px !important;
    width: 100% !important;
}

html body .conferro-instagram-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    background-color: #360C16 !important; /* Conferro Deep Wine Maroon */
    color: #FFF9F2 !important; /* Off-White */
    border: 1px solid #360C16 !important;
    border-radius: 2px !important;
    font-family: var(--conferro-font-sans, 'Inter', -apple-system, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    box-shadow: 0 4px 14px rgba(54, 12, 22, 0.16) !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

html body .conferro-instagram-cta-btn span {
    display: inline-block !important;
    line-height: 1 !important;
    color: #FFF9F2 !important;
    transition: color 0.3s ease !important;
}

html body .conferro-cta-ig-icon {
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    color: #FFF9F2 !important;
    fill: currentColor !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    position: relative !important;
    top: -0.5px !important;
}

html body .conferro-instagram-cta-btn:hover {
    background-color: #210912 !important;
    border-color: #210912 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(33, 9, 18, 0.28) !important;
}

html body .conferro-instagram-cta-btn:hover span,
html body .conferro-instagram-cta-btn:hover .conferro-cta-ig-icon {
    color: #FFFFFF !important;
}

html body .conferro-instagram-cta-btn:hover .conferro-cta-ig-icon {
    transform: scale(1.08) !important;
}

/* ============================================================
   RESPONSIVE DESIGN SYSTEM
   ============================================================ */

/* Tablet (768px - 1199px): 3 columns x 2 rows */
@media (max-width: 1199px) and (min-width: 768px) {
    html body .elementor-element.elementor-element-conferro_ig_sec,
    html body .conferro-instagram-section {
        padding-left: 24px !important;
        padding-right: 24px !important;
        padding-top: 40px !important;
        padding-bottom: 70px !important;
    }
    html body .conferro-instagram-title {
        font-size: 34px !important;
    }
    html body .conferro-instagram-subtitle {
        font-size: 15px !important;
    }
    html body .elementor-element.elementor-element-conferro_ig_grid_container > .e-con-inner,
    html body .elementor-element.elementor-element-conferro_ig_grid_container:not(:has(> .e-con-inner)),
    html body .conferro-instagram-grid > .e-con-inner,
    html body div.conferro-instagram-grid:not(:has(> .e-con-inner)) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    html body .conferro-instagram-cta-wrap {
        margin-top: 32px !important;
    }
}

/* Mobile (< 767px): 2 columns */
@media (max-width: 767px) {
    html body .elementor-element.elementor-element-conferro_ig_sec,
    html body .conferro-instagram-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 36px !important;
        padding-bottom: 60px !important;
    }
    html body .conferro-instagram-eyebrow {
        font-size: 11px !important;
        letter-spacing: 1.8px !important;
        margin-bottom: 8px !important;
    }
    html body .conferro-instagram-title-wrap {
        gap: 14px !important;
        margin-bottom: 8px !important;
    }
    html body .conferro-instagram-title {
        font-size: clamp(26px, 7vw, 32px) !important;
        white-space: normal !important;
        text-align: center !important;
    }
    html body .conferro-instagram-subtitle {
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin-top: 6px !important;
    }
    html body .conferro-instagram-header {
        margin-bottom: 26px !important;
    }
    html body .elementor-element.elementor-element-conferro_ig_grid_container > .e-con-inner,
    html body .elementor-element.elementor-element-conferro_ig_grid_container:not(:has(> .e-con-inner)),
    html body .conferro-instagram-grid > .e-con-inner,
    html body div.conferro-instagram-grid:not(:has(> .e-con-inner)) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    html body .conferro-instagram-cta-wrap {
        margin-top: 28px !important;
    }
    html body .conferro-instagram-cta-btn {
        padding: 12px 20px !important;
        font-size: 11px !important;
        letter-spacing: 0.07em !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    html body .conferro-cta-ig-icon {
        width: 14px !important;
        height: 14px !important;
    }
}