/*
Theme Name: Flightconex Hybrid
Theme URI: https://flightcase-conex.fr
Author: Antigravity AI
Description: Custom Tailwind CSS theme bypassing Elementor for ultimate performance
Version: 1.0.0
*/

/* Tactical Monolith Gallery (Sector Pages) */
.page-template-template-sector .wp-block-gallery {
    display: block !important;
    column-count: 1;
    column-gap: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 6rem;
}
@media (min-width: 768px) {
    .page-template-template-sector .wp-block-gallery { column-count: 2; }
}
@media (min-width: 1024px) {
    .page-template-template-sector .wp-block-gallery { column-count: 3; }
}
@media (min-width: 1440px) {
    .page-template-template-sector .wp-block-gallery { column-count: 4; }
}
.page-template-template-sector .wp-block-gallery .wp-block-image {
    display: inline-block;
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
    break-inside: avoid;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #2a2a2a;
    transition: all 0.5s ease;
}
.page-template-template-sector .wp-block-gallery .wp-block-image:hover {
    border-color: #f26411;
    box-shadow: 0 0 40px rgba(242, 100, 17, 0.15);
    transform: translateY(-4px);
    z-index: 10;
}
.page-template-template-sector .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease, transform 0.7s ease;
}
.page-template-template-sector .wp-block-gallery .wp-block-image:hover img {
    opacity: 1;
    transform: scale(1.05);
}
.conex-obsidian-gallery .wp-block-gallery { margin-bottom: 6rem; }
.conex-obsidian-gallery .wp-block-gallery .wp-block-image { width: 100% !important; margin-bottom: 1.5rem !important; }


/* Tactical Masonry Gallery */
.conex-obsidian-gallery .wp-block-gallery {
    display: block !important;
    column-count: 1;
    column-gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) { .conex-obsidian-gallery .wp-block-gallery { column-count: 2; } }
@media (min-width: 1024px) { .conex-obsidian-gallery .wp-block-gallery { column-count: 3; } }
@media (min-width: 1440px) { .conex-obsidian-gallery .wp-block-gallery { column-count: 4; } }
.conex-obsidian-gallery .wp-block-image {
    display: inline-block;
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
    break-inside: avoid;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #2a2a2a;
    transition: all 0.5s ease;
}
.conex-obsidian-gallery .wp-block-image:hover {
    border-color: #f26411;
    box-shadow: 0 0 40px rgba(242, 100, 17, 0.15);
    transform: translateY(-4px);
    z-index: 10;
}
.conex-obsidian-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease, transform 0.7s ease;
}
.conex-obsidian-gallery .wp-block-image:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Tactical Asymmetrical Grid Gallery (Stitch Design) */
.conex-obsidian-gallery .wp-block-gallery {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    gap: 1rem;
}
@media (min-width: 768px) {
    .conex-obsidian-gallery .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
        gap: 1.5rem;
    }
}
@media (min-width: 1200px) {
    .conex-obsidian-gallery .wp-block-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
        grid-auto-rows: 320px;
        gap: 1.5rem;
    }
    /* Stitch Asymmetrical Pattern for 30+ photos */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 1) { grid-column: span 2; grid-row: span 2; } /* Giant Hero */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 2) { grid-column: span 1; grid-row: span 1; } /* Small Square */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 3) { grid-column: span 1; grid-row: span 2; } /* Tall Portrait */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 4) { grid-column: span 1; grid-row: span 1; } /* Small Square */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 5) { grid-column: span 2; grid-row: span 1; } /* Wide Landscape */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 6) { grid-column: span 1; grid-row: span 1; } /* Small Square */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 7) { grid-column: span 1; grid-row: span 1; } /* Small Square */
    .conex-obsidian-gallery .wp-block-image:nth-child(8n + 8) { grid-column: span 2; grid-row: span 1; } /* Wide Landscape */
}
.conex-obsidian-gallery .wp-block-image {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #2a2a2a;
    background: #131313;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.conex-obsidian-gallery .wp-block-image:hover {
    border-color: #f26411;
    box-shadow: 0 10px 40px rgba(242, 100, 17, 0.15);
    transform: translateY(-4px);
    z-index: 10;
}
.conex-obsidian-gallery .wp-block-image img {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.conex-obsidian-gallery .wp-block-image:hover img {
    opacity: 1;
    filter: grayscale(0%) contrast(1.0);
    transform: scale(1.05);
}
/* ========================================= */
/* FORM FIXES: Autofill & Select Alignment   */
/* ========================================= */

/* Fix Autofill Yellow Background */
body .gform_wrapper input:-webkit-autofill,
body .gform_wrapper input:-webkit-autofill:hover, 
body .gform_wrapper input:-webkit-autofill:focus, 
body .gform_wrapper input:-webkit-autofill:active,
body .gform_wrapper select:-webkit-autofill,
body .gform_wrapper textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

body .gform_wrapper select {
    height: auto !important;
    padding: 14px 16px !important;
    line-height: normal !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .gform_wrapper select option {
    color: #000000 !important;
    background-color: #ffffff !important;
}
