/*
 * :is(#dc, .dc-…) keeps the ID-level specificity of the former inline #widget-id
 * styles, so these rules keep precedence over Elementor's generated widget CSS.
 */
:is(#dc, .dc-photo-gallery-parallax) * {
    box-sizing: border-box;
}

/* ==========================================
   MAIN CONTAINER
========================================== */
:is(#dc, .dc-photo-gallery-parallax) .pgp {
    background: var(--bg-color);
    padding: var(--section-padding);
    overflow: hidden;
    position: relative;
}

:is(#dc, .dc-photo-gallery-parallax) .pgp__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================
   GALLERY ROW
========================================== */
:is(#dc, .dc-photo-gallery-parallax) .pgp__row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--cards-gap);
    padding: 60px 0;
}

/* ==========================================
   PHOTO CARDS
========================================== */
:is(#dc, .dc-photo-gallery-parallax) .pgp__card {
    width: var(--card-width);
    height: var(--card-height);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    will-change: transform;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

:is(#dc, .dc-photo-gallery-parallax) .pgp__card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(227, 168, 59, 0.3);
}

:is(#dc, .dc-photo-gallery-parallax) .pgp__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

:is(#dc, .dc-photo-gallery-parallax) .pgp__card:hover img {
    transform: scale(1.05);
}

/* Initial staggered positions */
:is(#dc, .dc-photo-gallery-parallax) .pgp__card {
    transform: translateY(var(--initial-offset, 0px));
}

/* ==========================================
   DECORATIVE ELEMENTS
========================================== */
:is(#dc, .dc-photo-gallery-parallax) .pgp__decoration {
    position: absolute;
    pointer-events: none;
}

:is(#dc, .dc-photo-gallery-parallax) .pgp__decoration--glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 168, 59, 0.08), transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

:is(#dc, .dc-photo-gallery-parallax) .pgp__decoration--glow-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(157, 76, 19, 0.1), transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1200px) {
    :is(#dc, .dc-photo-gallery-parallax) .pgp__row {
        flex-wrap: wrap;
        gap: 30px;
    }

    :is(#dc, .dc-photo-gallery-parallax) .pgp__card {
        width: calc(33.333% - 20px);
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    :is(#dc, .dc-photo-gallery-parallax) .pgp {
        padding: 60px 15px;
    }

    :is(#dc, .dc-photo-gallery-parallax) .pgp__row {
        gap: 20px;
    }

    :is(#dc, .dc-photo-gallery-parallax) .pgp__card {
        width: calc(50% - 10px);
        height: 280px;
    }

    /* Reset stagger on mobile */
    :is(#dc, .dc-photo-gallery-parallax) .pgp__card {
        transform: translateY(0) !important;
    }
}

@media (max-width: 480px) {
    :is(#dc, .dc-photo-gallery-parallax) .pgp__card {
        width: 100%;
        max-width: 300px;
        height: 320px;
    }
}
