.group-overlay {
    /* ...existing styles... */
    border: 3px solid #333;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
/*
 Theme Name: Basic Custom Theme
/* Footer social icons: normalize size, spacing and hover */
.footer-social, .footer-social-inline { display:flex; gap:12px; align-items:center; }
.social-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; color:inherit; background:transparent; transition: transform 180ms ease, background-color 180ms ease, color 180ms ease; }
.social-icon svg { width:20px; height:20px; display:block; }
.social-icon:hover, .social-icon:focus { outline: none; }
.footer-social .social-icon, .footer-social-inline .social-icon { text-decoration:none; }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
.social-icon svg { width:18px; height:18px; display:block; }

/* Small-screen adjustments */
@media (max-width:640px) {
    .social-icon { width:36px; height:36px; }
    .social-icon svg { width:18px; height:18px; }
}

/* If IMDb uses text-based SVG, ensure it scales and centers */
.social-icon svg text { fill: currentColor; font-weight:700; font-size:12px; dominant-baseline:middle; }
    background: black;
    color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    background: #000;
    color: #fff;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: box-shadow 200ms ease, background-color 200ms ease, padding 180ms ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.site-branding img {
    max-height: 80px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

/* Custom site title styling */
.site-custom-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.site-custom-title a {
    color: inherit;
    text-decoration: none;
}

/* Navigation Menu */
.main-navigation {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

/* Mobile menu styles */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
}
.menu-icon rect {
    fill: #fff;
    transition: fill 160ms ease, transform 200ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon rect:nth-child(1) {
    transform-origin: center;
    transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon rect:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-icon rect:nth-child(3) {
    transform-origin: center;
    transform: translateY(-5px) rotate(-45deg);
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    border-top: 1px solid #333;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 1rem 20px;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu a { color: #fff; text-decoration: none; padding: 0.5rem 0; display: block; }

@media (max-width: 768px) {
    .main-navigation .primary-menu { display: none; }
    .menu-toggle { display: inline-flex; }
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background 0.3s;
}

/* Make desktop and mobile menu links visually bold for emphasis */
.primary-menu a,
.mobile-menu a {
    font-weight: 700;
}
.primary-menu a:hover {
    background: #333;
    border-radius: 4px;
}

/* Dropdown Menu */
.primary-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.primary-menu li:hover > ul {
    display: block;
}

.primary-menu ul li {
    width: 100%;
}

.primary-menu ul a {
    padding: 0.75rem 1rem;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image-container:hover .hero-overlay {
    opacity: 1;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

.featured-button {
    background: #fff;
    color: #333;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-button:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Three Column Section */
.three-column-section {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 20px;
}

.column-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.column-item {
    position: relative;
    width: 100%;
    max-width: 359px;
    max-height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 3/2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.column-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}


/* Group overlay for all columns */
.group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.group-hover-box {
    position: relative;
}

.group-hover-box:hover .group-overlay {
    opacity: 1;
}

.group-hover-box:hover .column-image {
    opacity: 0;
}

.group-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.group-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }

    .site-branding {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .main-navigation {
        width: auto;
        justify-content: flex-end;
        margin-top: 0;
    }

    .primary-menu {
        display: none;
    }

    .primary-menu a {
        border-bottom: 1px solid #333;
    }
    
    .column-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .group-overlay {
        padding: 1rem;
        font-size: 0.95rem;
        border-width: 2px;
    }
    .column-item {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .three-column-section {
        padding: 0 5px;
    }
    .group-overlay {
        padding: 0.5rem;
        font-size: 0.9rem;
        border-width: 1.5px;
    }
    .column-item {
        aspect-ratio: 4/3;
    }
    .group-overlay h3 {
        font-size: 1.1rem;
    }
    .group-overlay p {
        font-size: 0.95rem;
    }
}

/* Footer styles moved from footer.php */
footer {
    background: #000;
    color: #e6e6e6;
    padding: 4rem 0 2rem 0;
    border-top: 2px solid rgba(74, 144, 226, 0.1);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.03), transparent);
    animation: footerShine 15s infinite;
    pointer-events: none;
}

@keyframes footerShine {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(50%); }
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-col {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0;
}

.footer-col p { 
    color: #b8b8b8; 
    font-size: 0.95rem; 
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-col a { 
    color: #b8b8b8; 
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col a:hover { 
    color: #4A90E2;
    transform: translateX(3px);
}

.footer-col li { 
    color: #b8b8b8; 
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-nav { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.footer-nav li { 
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-nav li:hover {
    transform: translateX(5px);
}

.footer-nav a {
    position: relative;
    padding-left: 15px;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #4A90E2;
}

.footer-nav a:hover::before {
    opacity: 1;
}

.footer-social { 
    display: flex; 
    gap: 1.5rem; 
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: auto; 
    height: auto; 
    text-decoration: none;
    position: relative;
}

.social-icon svg { 
    width: 20px; 
    height: 20px; 
    display: block;
    position: relative;
    z-index: 1;
}

.social-icon img {
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
    z-index: 1;
}

.newsletter-form input[type="email"] { 
    width: 100%; 
    padding: 0.75rem 1rem; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: rgba(255, 255, 255, 0.05); 
    color: #fff;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #4A90E2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.newsletter-form button { 
    margin-top: 0.75rem; 
    background: linear-gradient(135deg, #4A90E2, #357ABD); 
    color: #fff; 
    border: none; 
    padding: 0.7rem 1.2rem; 
    border-radius: 8px; 
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

.footer-bottom { 
    margin-top: 3rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    padding-top: 1.5rem; 
    text-align: center; 
    color: #888; 
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-social-inline { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-social-inline .social-icon { 
    width: auto; 
    height: auto;
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    footer {
        padding: 3.5rem 0 2rem 0;
    }
    
    .footer-inner { 
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding: 0 30px;
    }
    
    .footer-col:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 1rem auto 0;
        width: 100%;
    }
    
    .footer-col h4 {
        margin-bottom: 1.25rem;
    }
    
    .footer-nav li {
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 2rem 0;
        margin-top: 3rem;
    }
    
    .footer-inner { 
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 25px;
    }
    
    .footer-col { 
        text-align: center;
        max-width: 100%;
    }
    
    .footer-col h4 {
        margin-bottom: 1.25rem;
        font-size: 1.1rem;
    }
    
    .footer-col p {
        font-size: 0.92rem;
        line-height: 1.5;
    }
    
    .footer-nav a {
        padding-left: 0;
    }
    
    .footer-nav a::before {
        display: none;
    }
    
    .footer-nav li {
        margin-bottom: 0.9rem;
    }
    
    .footer-nav li:hover {
        transform: translateX(0);
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1.25rem;
        gap: 1.25rem;
    }
    
    .footer-bottom {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2.5rem 0 1.5rem 0;
        margin-top: 2.5rem;
    }
    
    .footer-inner {
        gap: 2.5rem;
        padding: 0 20px;
    }
    
    .footer-col h4 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .footer-col p,
    .footer-col a,
    .footer-col li {
        font-size: 0.9rem;
    }
    
    .footer-nav li {
        margin-bottom: 0.75rem;
    }
    
    .social-icon img {
        width: 22px;
        height: 22px;
    }
    
    .footer-social {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.25rem;
        font-size: 0.85rem;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 360px) {
    footer {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-inner {
        gap: 2rem;
        padding: 0 15px;
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .footer-col p,
    .footer-col a,
    .footer-col li {
        font-size: 0.88rem;
    }
    
    .footer-social {
        gap: 0.85rem;
    }
    
    .social-icon img {
        width: 20px;
        height: 20px;
    }
}

/* Site-wide dark background and default light text */
body, html {
    background-color: #000;
    margin: 0;
    padding: 0;
    color: #fff;
}

/* Featured button animation: subtle pulse + lift on hover */
.hero-overlay .featured-button {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.7rem 1.05rem;
    font-size: 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, background-color 220ms ease;
    will-change: transform, box-shadow;
    box-shadow: 0 6px 22px rgba(10,10,10,0.25);
    animation: featured-pulse 3s ease-in-out infinite;
}

@keyframes featured-pulse {
    0% { transform: scale(1); box-shadow: 0 6px 22px rgba(10,10,10,0.25); }
    50% { transform: scale(1.04); box-shadow: 0 18px 48px rgba(74,144,226,0.12); }
    100% { transform: scale(1); box-shadow: 0 6px 22px rgba(10,10,10,0.25); }
}

/* Card pop animation for three-column hover */
@keyframes card-pop {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    60% { transform: translateY(-10px) scale(1.06) rotate(-0.6deg); }
    100% { transform: translateY(-8px) scale(1.04) rotate(0deg); }
}

.hero-overlay .featured-button:hover,
.hero-overlay .featured-button:focus {
    transform: translateY(-6px) scale(1.06);
    background: rgba(74,144,226,0.95);
    border-color: rgba(74,144,226,0.95);
    box-shadow: 0 26px 60px rgba(74,144,226,0.18);
    outline: none;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-overlay .featured-button { animation: none; transition: none; }
}

/* Hero content (title + description) centered over image */
.hero-overlay { position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; }
.hero-overlay .hero-content { text-align:center; z-index:2; color:#fff; padding: 0 18px 0; max-width:1100px; margin-top: -18rem; }
.hero-overlay .hero-title { font-size: clamp(16px, 2.8vw, 38px); margin:0 0 0.5rem; font-weight:800; letter-spacing:0.6px; text-transform:uppercase; }
.hero-overlay .hero-subtitle { font-size: clamp(10px, 1.2vw, 16px); margin:0 0 1.2rem; color: rgba(255,255,255,0.88); max-width:900px; margin-left:auto; margin-right:auto; }

@media (max-width:900px) {
    .hero-overlay .hero-title { font-size: 22px; }
    .hero-overlay .hero-subtitle { font-size: 12px; }
    .hero-overlay .hero-description { font-size: 10px; }
}


/* Hero image blur & scale on hover */

/* Hero image and container responsive sizing */
.hero-image-container { position:relative; width:100%; height:60vh; min-height:420px; max-height:920px; overflow:hidden; }
.hero-image { display:block; width:100%; height:100%; object-fit:fill; transition: filter 420ms ease, transform 420ms ease; }
.hero-image-container:hover .hero-image { filter: blur(6px); transform: scale(1.03); }

/* Reduce effect on smaller screens and make hero height responsive */
@media (max-width:1200px) {
    .hero-image-container { height:56vh; min-height:360px; }
}
@media (max-width:900px) {
    .hero-image-container { height:48vh; min-height:300px; }
    .hero-image-container:hover .hero-image { filter: blur(4px); transform: scale(1.02); }
}
@media (max-width:560px) {
    .hero-image-container { height:22vh; min-height:220px; }
    .hero-image-container:hover .hero-image { filter: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image { transition: none !important; }
    .hero-image-container:hover .hero-image { transform: none !important; filter: none !important; }
}
@media (max-width:560px) {
    .hero-overlay .hero-title { font-size: 16px; }
    .hero-overlay .hero-subtitle { font-size: 10px; }
    .hero-overlay .hero-description { font-size: 8px; }
    .hero-overlay .featured-button { padding: 0.6rem 0.9rem; }
}

/* Three-column gallery improvements: cards, hover zoom, overlay reveal */
.three-column-section { padding: 1px 0; }
.three-column-section .column-container {
    max-width:1200px;
    margin:0 auto;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position:relative;
    align-items:stretch;
    box-sizing: border-box;
}
.three-column-section .column-item {
    min-width: 0;
    width: 100%;
}
.three-column-section .column-item {
    position:relative;
    border-radius: 12px;
    overflow:hidden;
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    box-shadow: 0 12px 30px rgba(2,6,23,0.25);
    border:2px solid #000; /* Black border */
    box-sizing: border-box;
    transition: box-shadow 420ms ease, border-color 320ms ease;
    min-height:200px;
    display:block;
    will-change: transform, box-shadow, border-color;
}

.three-column-section .column-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
    transition: border-color 320ms ease, opacity 320ms ease;
}





.three-column-section .column-item .column-image {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition: transform 800ms cubic-bezier(.2,.9,.2,1);
    transform-origin:center center;
}

/* Pop effect only visually, not affecting layout */
.three-column-section .column-item:hover .column-image {
    /* transform: scale(1.06); */
    filter: saturate(1.06) contrast(1.02);
}

/* Remove transform/animation from .column-item itself */
@keyframes card-pop {
    0% { }
    60% { }
    100% { }
}
.three-column-section .column-item .column-image { width:100%; height:100%; display:block; object-fit:cover; transition: transform 800ms cubic-bezier(.2,.9,.2,1); transform-origin:center center; }
.three-column-section .column-item::before { content: ''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.45) 100%); opacity:0; transition: opacity 420ms ease; pointer-events:none; }
.three-column-section .column-container .column-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:28px; pointer-events:none; opacity:0; transform: translateY(8px); transition: opacity 360ms ease, transform 360ms ease; z-index:3; background: rgba(255,255,255,1); border-radius: 12px; }
.three-column-section .column-container .column-overlay .group-overlay-link { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:inherit; text-decoration:none; pointer-events:auto; }
.three-column-section .column-container:hover .column-overlay { opacity:1; transform: translateY(0); pointer-events:auto; }
.three-column-section .column-overlay h3 { margin:0 0 8px; color:#0b0b0b; font-size:1.15rem; }
.three-column-section .column-overlay p { margin:0; color:rgba(11,11,11,0.9); max-width:46ch; }
.three-column-section .column-container .column-link { display:block; }
.three-column-section .column-container .column-link .column-item { position:relative; }
.three-column-section .column-item:hover {
    /* use keyframe-based pop for a snappy, modern effect */
    animation: card-pop 360ms cubic-bezier(.2,.9,.2,1) both;
    background: transparent;
}

/* Subtle animated border glow for pointer devices */
@media (hover: hover) and (pointer: fine) {
    .three-column-section .column-item { transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 360ms ease, border-color 260ms ease; }
    .three-column-section .column-item:focus-within,
    .three-column-section .column-item:focus {
        outline: none;
        border-color: rgba(74,144,226,0.85);
        box-shadow: 0 18px 46px rgba(74,144,226,0.08);
        transform: translateY(-4px);
    }
}
.three-column-section .column-item:hover .column-image { /* transform: scale(1.06); */ filter: saturate(1.06) contrast(1.02); }

@media (max-width:1200px) { .three-column-section .column-container { gap:0; } }
@media (max-width:1000px) { .three-column-section .column-container { gap:0; } }
@media (max-width:640px) { .three-column-section .column-container { grid-template-columns: 1fr; gap:0; } .three-column-section { padding:1px 0; } }

/* Touch-friendly: disable hover-based transforms on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Keep visuals similar to desktop on touch devices but avoid large translate transforms. */
    .three-column-section .column-item:hover { transform: none; box-shadow: 0 12px 30px rgba(2,6,23,0.25); }
    .three-column-section .column-item { transition: none; border-color: rgba(74,144,226,0.9); box-shadow: 0 12px 30px rgba(2,6,23,0.25), 0 0 30px rgba(74,144,226,0.10); transform: none; animation: none; }
    .three-column-section .column-item .column-image { transition: none; }
    /* Do NOT force the overlay visible by default on touch — show it only when user taps.
       The `.overlay-visible` class will be toggled via JS on touch devices. */
    
    /* Provide an active state so tapping shows a slight lift feedback */
    .three-column-section .column-item:active { transform: translateY(-4px); }
}

/* Toggleable overlay for touch: applied when user taps a group container */
.group-hover-box.overlay-visible .column-overlay 
    {   opacity:1; 
        transform:none; 
        background: rgba(255,255,255,0.96); 
        pointer-events:auto; 
    }


