/*
 Theme Name:   TheGig Child Theme
 Theme URI:    https://thegig.axiomthemes.com
 Description:  TheGig Child Theme
 Author:       AxiomThemes
 Author URI:   http://axiomthemes.com/
 Template:     thegig
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  thegig
*/


/* =Theme customization starts here
------------------------------------------------------------ */
/*Center image on single event page*/
.tribe-events-event-image img {
  	display: block;
  	max-width: 99%;
  	margin-left: auto;
  	margin-right: auto;
}

.elementor-widget-trx_sc_layouts_logo .elementor-widget-container {
	width: 158px;
    height: 80px;
}

.custom-logo-link img, .sc_layouts_logo img {
    max-height: 6em;
    vertical-align: middle;
    width: 158px;
}

.mc4wp-form input {
	background: #333;
  	padding-left: 5px;
}

/*ESPA Banner*/
#espa-floating-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 450px; /* Smaller size for floating */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #ddd;
    background: #fff;
    line-height: 0;
    transition: transform 0.3s ease;
}

#espa-floating-banner img {
    width: 100%;
    height: auto;
    display: block;
}

#espa-floating-banner:hover {
    transform: scale(1.05);
}

#espa-floating-banner:hover {
    transform: scale(1.05);
}


/* Close button style */
#close-espa {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

/* Responsive: Hide or shrink on very small mobile screens if it covers content */
@media (max-width: 480px) {
    #espa-floating-banner {
        max-width: 150px;
        bottom: 10px;
        right: 10px;
    }
}

.post_meta .post_meta_item, .post_meta .vc_inline-link {
   	font-size: 18px;
	font-weight: bold;
	color: #000;
}

.post_meta a {
   	color: #000;
}

.mc4wp-form-2 button {
	background-color: #000;
}

.elementor-custom-embed-play i {
	background-color: #000;
	color: #ad005a;
}

/* WAVE-friendly hidden text */
.wave-fix-text {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.thegig_skip_link.skip_to_content_link.inited {
    /* This color (#D50029) is a similar red but passes the 4.5:1 test */
    color: #D50029 !important; 
    background-color: #ffffff !important;
    
    /* Ensure it is readable when it appears */
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* For even better compliance, make it inverted when focused */
.thegig_skip_link:focus {
    color: #ffffff !important;
    background-color: #D50029 !important;
}

/* Target both skip links to ensure consistency and compliance */
.thegig_skip_link.skip_to_content_link.inited,
.thegig_skip_link.skip_to_footer_link.inited {
    color: #D50029 !important; /* Deep red - Passes 4.5:1 ratio */
    background-color: #ffffff !important;
    font-weight: bold !important;
    text-decoration: underline !important; /* Underlines help distinguish links */
}

/* Reverse colors on focus so the user knows exactly where they are */
.thegig_skip_link:focus {
    color: #ffffff !important;
    background-color: #D50029 !important;
    outline: 3px solid #000000 !important;
}

/* Increase the hit area of the ESPA close button */
#close-espa {
    width: 44px !important;
    height: 44px !important;
    top: -20px !important; /* Adjust position so it doesn't overlap logo */
    left: -20px !important;
    font-size: 20px !important;
}

/* Ensure the ESPA link itself is a large enough target */
#espa-floating-banner a {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 5px;
}

/* This forces a 'name' into the link via CSS */
nav.sc_layouts_menu a.sf-with-ul.icon-more::after {
    content: "Menu";
    font-size: 0;
    display: block;
}