/* ==========================================================================
   E-VALDAS.EU - Unified Project & Portfolio Styles
   ========================================================================== */

.project-page,
.audio-product {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 15px 45px;
    color: #344054;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.project-header {
    margin-bottom: 24px;
}

.project-header h2,
.audio-product h2 {
    color: #172b43;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    line-height: 1.25;
}

.project-subtitle {
    color: #1769aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-lead,
.audio-lead {
    font-size: 16px;
    color: #536477;
    line-height: 1.6;
    margin-bottom: 18px;
}

.project-section-title,
.audio-product h3 {
    color: #172b43;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 32px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #edf0f4;
}

.project-specs,
.audio-details {
    background: #f7f9fb;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    padding: 18px 24px;
    margin: 20px 0;
}

.project-specs strong.specs-title {
    display: block;
    color: #172b43;
    font-size: 15px;
    margin-bottom: 10px;
}

.project-specs ul,
.audio-details ul {
    margin: 0;
    padding-left: 20px;
}

.project-specs li,
.audio-details li {
    margin-bottom: 6px;
    color: #344054;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.project-tech span {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f4f7;
    border: 1px solid #e1e8f0;
    border-radius: 4px;
    color: #34465c;
    font-size: 13px;
    font-weight: 600;
}

.project-notice {
    background: #fff8e6;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    color: #78350f;
    font-size: 14px;
}

.project-link, a.project-btn {
    color: #1769aa;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.project-link:hover, a.project-btn:hover {
    color: #0f4c7a;
    text-decoration: underline;
}

/* Audio Product specific styles (ES-WebRadio) */
.audio-hero {
    text-align: center;
    padding: 20px 15px 30px;
}

.audio-hero h2 {
    font-size: 28px;
}

.audio-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.audio-feature {
    flex: 1 1 220px;
    max-width: 300px;
    background: #f4f7fa;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
}

.audio-feature strong {
    display: block;
    color: #1769aa;
    font-size: 16px;
    margin-bottom: 6px;
}

.audio-price {
    background: #172b43;
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    border-radius: 8px;
    margin: 30px 0;
}

.audio-price .price {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    display: block;
    margin: 5px 0;
}

.audio-price a {
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: underline !important;
}

.audio-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    clear: both !important;
    float: none !important;
    margin: 25px auto 10px !important;
    text-align: center;
}

.audio-gallery::after {
    content: "";
    display: block;
    clear: both;
}

.audio-gallery a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 6px !important;
    text-align: center !important;
}

.audio-gallery img {
    width: 190px;
    max-width: 100%;
    height: auto;
    margin: 0 auto !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(20, 35, 55, 0.08);
    transition: transform .2s ease;
    object-fit: contain;
    object-position: center;
    display: block;
}

.audio-gallery a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 43, 67, 0.15);
}

.audio-video {
    display: block !important;
    position: relative;
    clear: both !important;
    float: none !important;
    width: 100%;
    max-width: 760px;
    margin: 40px auto !important;
    padding: 25px 20px;
    text-align: center;
    background: #f4f7fa;
    border-radius: 10px;
    box-sizing: border-box;
}

.audio-video h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.audio-video p {
    color: #64748b;
    margin-bottom: 20px;
}

.audio-video video {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    background: #000;
}

.audio-contact {
    font-size: 17px;
    margin-top: 10px;
}

/* Standard Galleries - Centered & Flexible */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px auto;
    text-align: center;
}

.gallery a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e1e7ee;
    box-shadow: 0 2px 8px rgba(20, 35, 55, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    background: #ffffff;
    text-align: center;
}

.gallery a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 43, 67, 0.12);
    border-color: #1769aa;
}

.gallery a img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.gallery.single-image {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 24px auto;
    width: 100%;
}

.gallery.single-image a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gallery.single-image a img {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.gallery.grid-2 a {
    width: calc(50% - 8px);
    height: 280px;
}

.gallery.grid-3 a,
.gallery.grid-cards a {
    width: calc(33.333% - 11px);
    height: 240px;
}

.gallery.grid-4 a {
    width: calc(25% - 12px);
    height: 200px;
}

.img-caption {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

.project-footer {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid #e8edf1;
    color: #8995a2;
    font-size: 13px;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery.grid-4 a {
        width: calc(50% - 8px);
        height: 220px;
    }
    .gallery.grid-3 a,
    .gallery.grid-cards a {
        width: calc(50% - 8px);
        height: 240px;
    }
}

@media (max-width: 767px) {
    .project-page,
    .audio-product {
        padding: 5px 10px 30px;
    }
    .project-header h2,
    .audio-hero h2 {
        font-size: 24px;
    }
    .gallery.grid-2 a,
    .gallery.grid-3 a,
    .gallery.grid-4 a,
    .gallery.grid-cards a,
    .audio-gallery a {
        width: 100% !important;
        max-width: 480px !important;
        height: auto !important;
        min-height: 180px !important;
        margin: 0 auto 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .gallery a img,
    .audio-gallery img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 380px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    .audio-video {
        padding: 18px 12px;
        margin: 25px auto 35px !important;
    }
}

/* ==========================================================================
   SimpleLightbox - Custom Layering & Opacity
   ========================================================================== */
.sl-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: #0b131e !important;
    opacity: 0.92 !important;
    z-index: 99990 !important;
}

.sl-wrapper {
    position: relative !important;
    z-index: 99995 !important;
}

.sl-wrapper .sl-image {
    position: fixed !important;
    z-index: 100000 !important;
    opacity: 1 !important;
}

.sl-wrapper .sl-image img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85) !important;
}

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter {
    z-index: 100010 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
