/* DD Gallery Image Styles */

.dd-gallery-wrapper {
    display: flex;
    flex-direction: row;
    gap: var(--dd-gallery-gap, 10px);
    width: 100%;
    height: var(--dd-gallery-height, 460px);
    overflow: hidden;
    background-color: #000;
    background-color: #000;
    /* Default Variables */
    --dd-gallery-active-ratio: 3;
    --dd-gallery-inactive-ratio: 1;
    --dd-gallery-speed: 600ms;
}

.dd-gallery-item {
    position: relative;
    height: 100%;
    flex-grow: var(--dd-gallery-inactive-ratio, 1);
    flex-basis: 0;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    transition: flex-grow var(--dd-gallery-speed) cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #000;
}

/* Base Active State */
.dd-gallery-item.is-active {
    flex-grow: var(--dd-gallery-active-ratio, 3);
}

/* Hover Interaction Logic */
.dd-gallery-wrapper.dd-hover-enabled:hover .dd-gallery-item {
    flex-grow: var(--dd-gallery-inactive-ratio, 1);
}

.dd-gallery-wrapper.dd-hover-enabled .dd-gallery-item:hover {
    flex-grow: var(--dd-gallery-active-ratio, 3) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Smooth zoom effect on active */
.dd-gallery-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.dd-gallery-item.is-active img,
.dd-gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay & Content - More subtle and minimal */
.dd-gallery-overlay {
    position: absolute;
    inset: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dd-gallery-item.is-active .dd-gallery-overlay,
.dd-gallery-item:hover .dd-gallery-overlay {
    opacity: 1;
}

.dd-gallery-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.dd-gallery-item.is-active .dd-gallery-content,
.dd-gallery-item:hover .dd-gallery-content {
    transform: translateY(0);
}

.dd-gallery-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.dd-gallery-desc {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .dd-gallery-wrapper {
        height: 350px;
    }
    /* Potentially adjust widths here if too wide for container */
}

@media (max-width: 767px) {
    .dd-gallery-wrapper {
        flex-direction: column;
        height: auto;
    }
    .dd-gallery-item {
        width: 100% !important;
        height: 250px;
        flex: none;
        margin-bottom: var(--dd-gallery-gap, 10px);
    }
    .dd-gallery-item:last-child {
        margin-bottom: 0;
    }
}
