/* Typography System for Paleolab Website using Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

*, ::before, ::after {
    box-sizing: border-box;
}

body, html, p, div, span, td, th, li, a, input, select, textarea, button, body * {
    font-family: 'Open Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .titulo, .title, .btAreas {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
}

body {
    line-height: 1.65 !important;
    color: #2c3e50 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin-bottom: 1.2em;
    font-size: 15px;
}

.btAreas {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Modern Gallery Grid Layout & Responsive Fallback */
.amazingslider-slides {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 30px 0;
    list-style: none !important;
}

.amazingslider-slides li {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.amazingslider-slides li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.amazingslider-slides li img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

.amazingslider-slides li .amazingslider-title, 
.amazingslider-slides li figcaption,
.amazingslider-slides li div {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Lightbox Modal & Gallery Enhancements */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    user-select: none;
}

.lightbox-close:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.amazingslider-slides li {
    cursor: pointer !important;
}

/* Modern Mobile Menu Header & Drawer Styling */
.btMenu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #2c3e50 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    user-select: none !important;
    border-bottom: 2px solid #ebc36c !important;
}

@media (min-width: 981px) {
    .btMenu {
        display: none !important;
    }
}

.btMenu .menu-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.btMenu .menu-hamburger {
    font-size: 22px;
    line-height: 1;
    color: #ebc36c;
}

.btMenu .current-page-badge {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

#menuMob {
    background-color: #1a252f !important;
    padding: 15px 20px !important;
    border-bottom: 3px solid #ebc36c !important;
}

#menuMob .btAreas {
    display: block !important;
    padding: 10px 15px !important;
    color: #ecf0f1 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    transition: background 0.2s, color 0.2s !important;
}

#menuMob .btAreas:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ebc36c !important;
}
