/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


 /* Container */
.db-container {
    width: fit-content;
    padding: 10px;
    background-color: transparent;
}

/* Title Text */
.db-title {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #ffffff;
    white-space: nowrap;
    margin-bottom: 5px;
    text-shadow: 3px 3px 4px #000000;
}

/* Coordinates Text */
.db-coords {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #ffffff;
    text-align: right;
    line-height: 1.2;
    text-shadow: 2px 2px 3px #000000;
}

/* Frosted Glass Title */
.hero-section .page-title {
    text-transform: uppercase;
    /* Lower the floor of the clamp slightly */
    font-size: clamp(1.2rem, 5vw, 2.2rem) !important; 
    /* Use a smaller letter-spacing by default, we will boost it for desktop */
    letter-spacing: 2px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Use 5% padding so it shrinks on small screens */
    padding: 12px 5%; 
    border-radius: 4px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content !important; 
    /* Safety net: ensure it never exceeds the screen width */
    max-width: 90vw;
    margin: 0 auto; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #ffffff;
    /* Handle long word overflow */
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: center;
}

/* Desktop Polish: Bring back the wide spacing only when there is room */
@media (min-width: 768px) {
    .hero-section .page-title {
        letter-spacing: 6px;
        padding: 12px 40px;
    }
}

@media (max-width: 768px) {
    .hero-section .ct-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Add overlay filter to hero img */
.hero-section .ct-media-container img {
    filter: contrast(1.5) brightness(0.95);
}

/* Reverse some columns on frontpage on mobile */
@media (max-width: 781px) {
    .mobile-reverse-col {
        flex-direction: column-reverse !important;
    }
    .mobile-reverse-col > .wp-block-column {
        flex-basis: 100% !important;
    }
}