/* Global Typography & Headings */
.section-title::after {
    content: unset;
}
    .subheading {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
        color: var(--accent-color);
    }

    .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-color);
        line-height: 1.2;
    }

    /* --- Gallery Section Styling --- */
    .portfolio-section {
        background-color: var(--light-bg);
    }

    /* The Grid Container */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    /* Individual Gallery Item */
    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: var(--shadow-light);
        cursor: pointer;
    }

    .gallery-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .gallery-item:hover::after {
        opacity: 1;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .gallery-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 15px 20px;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
        width: 100%;
        color: white;
        transform: translateY(100%);
        transition: transform 0.4s ease;
        z-index: 1;
    }

    .gallery-item:hover .gallery-overlay {
        transform: translateY(0);
    }

    .gallery-overlay h5 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .gallery-overlay p {
        font-size: 0.8rem;
        margin: 0;
        opacity: 0.8;
        color: unset;
        margin-top: 10px;
    }

    /* --- Lightbox Modal Styling (Custom) --- */
    .custom-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: none;
        /* Hidden by default */
        justify-content: center;
        align-items: center;
        z-index: 1050;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 20px;
    }

    .custom-modal.show {
        display: flex;
        opacity: 1;
    }

    .modal-content-wrapper {
        max-width: 90vw;
        max-height: 90vh;
        text-align: center;
    }

    #modal-image {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        object-fit: contain;
    }

    #modal-title {
        color: white;
        margin-top: 15px;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .modal-close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 2.5rem;
        cursor: pointer;
        background: none;
        border: none;
        line-height: 1;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

    .modal-close-btn:hover {
        opacity: 1;
    }

    /* --- CTA Section --- */
    .cta-section-alt {
        background: var(--gradient-primary);
        color: white;
    }

    .cta-section-alt .section-title-white {
        color: white;
        font-size: 2rem;
    }

    .btn-outline-light-custom {
        color: white;
        border-color: white;
        background-color: transparent;
        border-radius: 50px;
        padding: 12px 30px;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .btn-outline-light-custom:hover {
        color: var(--primary-color);
        background-color: white;
        border-color: white;
        transform: translateY(-2px);
    }