:root {
    --realizacje-bg: #f9f9f9;
    --realizacje-card-bg: #fff;
    --realizacje-text: #333;
    --realizacje-primary: var(--primary, #378036);
    --realizacje-secondary: var(--secondary, #6bb449);
}

.realizacje-section {
    padding: 60px 10px;
    background-color: var(--realizacje-bg);
    min-height: 80vh;
}

.realizacje-container {
    max-width: 1200px;
    margin: 0 auto;
}


.section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-header-left {
    flex: 1;
}

.section-header-right {
    flex: 0 0 auto;
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: none;
    color: var(--text-color);
}

.section-title .highlight {
    color: var(--realizacje-primary);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

.btn-section-link {
    display: inline-block;
    padding: 0.75rem 0;
    width: 200px;
    text-align: center;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background-color: var(--secondary);
    color: #fff;
    border: 2px solid var(--secondary);
}

.btn-section-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.realizacje-masonry-wrapper {
    width: 100%;
}

.masonry-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.masonry-column {
    width: calc(50% - 15px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .masonry-grid {
        flex-direction: column;
    }

    .masonry-column {
        width: 100%;
    }
}

.realizacje-card {
    background: var(--realizacje-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.realizacja-gallery-preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
}

.realizacja-gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}




.layout-single {
    height: 300px;
}

.layout-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 300px;
}

.layout-default {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    height: auto;
    aspect-ratio: 3 / 2;
}

@media (max-width: 768px) {

    .layout-single,
    .layout-double {
        height: 250px;
    }

    .layout-default {
        height: auto;
    }
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-side-imgs {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.gallery-small-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.more-photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 1;

    pointer-events: none;

}

.gallery-icon-small {
    background: var(--realizacje-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}




.realizacja-info-box {
    padding: 24px;
}

.realizacje-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
    transition: color 0.3s ease;
}



.realizacje-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.realizacje-card-excerpt p {
    margin-bottom: 0;
}


.realization-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-main-img:hover .realization-hover-overlay,
.gallery-small-img:hover .realization-hover-overlay {
    opacity: 1;
}

.realization-icon {
    width: 50px;
    height: 50px;
    background: var(--realizacje-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-main-img:hover .realization-icon,
.gallery-small-img:hover .realization-icon {
    transform: translateY(0);
}


.no-realizations-message {
    text-align: center;
    padding: 60px;
}

.no-realizations-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-realizations-text {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}