.landscaping-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    background: transparent !important;
    background-color: transparent !important;
}

.landscaping-section::before {
    display: none;
}

.landscaping-section::after {
    display: none;
}

.landscaping-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.landscaping-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.landscaping-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.landscaping-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, 
        var(--primary-green), 
        var(--accent-pink),
        var(--accent-blue)
    );
    border-radius: 2px;
}

.landscaping-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
}

.gallery-wrapper {
    min-height: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 11px;
    padding: 0.5rem 0;
    flex-grow: 1;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: white;
    box-shadow: none;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s forwards;
    transition: transform 0.3s ease, filter 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }
.gallery-item:nth-child(11) { animation-delay: 0.55s; }
.gallery-item:nth-child(12) { animation-delay: 0.6s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    display: block;
}

img[src*="flowers"] {
    background-color: #e2e2e2;
    position: relative;
    overflow: hidden;
    display: block;
}

img[src*="flowers"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.2s infinite linear;
    z-index: 1;
}

img[src*="flowers"]::after {
    content: none !important;
    display: none !important;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

.gallery-item img.loading,
.gallery-item img[src] {
    background-color: #e2e2e2;
    position: relative;
    overflow: hidden;
    color: transparent;
    font-size: 0;
}

.gallery-item img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item img.loading {
    opacity: 0.7;
}

.gallery-item img.loading::before,
.gallery-item img[src]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.2s infinite linear;
    z-index: 1;
}

.gallery-item img[alt]::after {
    display: none;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: none;
    filter: brightness(1.05);
}

.gallery-item:hover img {
    transform: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 22, 22, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1002;
    display: block;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(100% - 120px);
    max-height: calc(100vh - 80px);
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    background-color: transparent;
    margin: 0 auto;
    display: block;
    color: transparent;
    z-index: 10001;
}

.modal-image.loading,
.modal-image[src] {
    background-color: transparent;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    min-width: 200px;
    color: transparent;
    font-size: 0;
}

.modal-image.loading::before,
.modal-image[src]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.8), 
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.2s infinite linear;
    z-index: 1;
}

.modal-image.loaded {
    opacity: 1;
    transform: scale(1);
    background-color: transparent;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1002;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
}


.modal-close:hover {
    background: transparent;
    transform: scale(1.1);
}

.modal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 1001;
    width: 100%;
    box-sizing: border-box;
}

.modal-nav button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.modal-nav button:hover {
    background: transparent;
    transform: scale(1.1);
}

.modal-nav .modal-prev {
    margin-right: auto;
    margin-left: 5px;
}

.modal-nav .modal-next {
    margin-left: auto;
    margin-right: 5px;
}





.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.gallery-pagination button {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.gallery-pagination button.active {
    background: rgba(25, 25, 25, 0.8);
    color: white;
    transform: none;
}

.gallery-pagination button:hover:not(.active) {
    background: white;
    box-shadow: none;
}

.gallery-pagination button:active:not(.active) {
    transform: translateY(2px);
    box-shadow: none;
}

@media (min-width: 1700px) {
    .landscaping-container {
        max-width: 1600px;
        padding: 0 2rem;
    }
    
    .landscaping-title {
        font-size: 3.5rem;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .landscaping-description {
        font-size: 1.4rem;
        max-width: 900px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 15px;
    }
    
    .gallery-wrapper {
        min-height: 1000px;
    }
    
    .modal-content {
        max-width: calc(100% - 160px);
        max-height: calc(100vh - 100px);
    }
    
    .modal-nav button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .gallery-pagination button {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (min-width: 2560px) {
    .landscaping-container {
        max-width: 2000px;
        padding: 0 3rem;
    }
    
    .landscaping-title {
        font-size: 4.5rem;
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .landscaping-description {
        font-size: 1.6rem;
        max-width: 1100px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 20px;
    }
    
    .gallery-wrapper {
        min-height: 1200px;
    }
    
    .modal-content {
        max-width: calc(100% - 200px);
        max-height: calc(100vh - 120px);
    }
    
    .modal-nav button {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .modal-close {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .gallery-pagination button {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

body:has(.modal.active) .mobile-menu-btn {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 680px) and (max-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    html {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    * {
        overflow-x: hidden;
    }
    
    .landscaping-section {
        padding: 2rem 0;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .landscaping-section::before,
    .landscaping-section::after {
        display: none !important;
    }
    
    .landscaping-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .landscaping-header {
        margin-bottom: 2rem;
    }
    
    .landscaping-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .landscaping-title::after {
        width: 60px;
        height: 2px;
    }
    
    .landscaping-description {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .gallery-wrapper {
        min-height: auto;
        overflow: hidden;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0.3rem 0;
        overflow: hidden;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: 15px;
        box-shadow: none;
    }
    
    .gallery-pagination {
        margin-top: 2rem;
        gap: 0.6rem;
    }
    
    .gallery-pagination button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .modal {
        padding: 20px;
        overflow: hidden;
    }
    
    .modal-content {
        max-width: calc(100% - 100px);
        max-height: calc(100vh - 60px);
    }
    
    .modal-image {
        max-height: 100%;
        max-width: 100%;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-nav button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-nav .modal-prev {
        margin-left: 10px;
    }
    
    .modal-nav .modal-next {
        margin-right: 10px;
    }
    
    .modal-counter {
        bottom: 15px;
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 399px) {
    .landscaping-section {
        padding: 1.5rem 0;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .landscaping-container {
        padding: 0 0.75rem;
    }
    
    .landscaping-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .landscaping-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0.2rem 0;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
        border-radius: 12px;
    }
    
    .gallery-pagination {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }
    
    .gallery-pagination button {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .modal {
        padding: 15px;
        overflow: hidden;
    }
    
    .modal-content {
        max-width: calc(100% - 80px);
        max-height: calc(100vh - 50px);
    }
    
    .modal-image {
        max-height: 100%;
        max-width: 100%;
    }
    
    .modal-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .modal-nav {
        padding: 0 8px;
    }
    
    .modal-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .modal-nav .modal-prev {
        margin-left: 8px;
    }
    
    .modal-nav .modal-next {
        margin-right: 8px;
    }
    
    .modal-counter {
        bottom: 10px;
        padding: 3px 8px;
        font-size: 11px;
    }
}