.pd-gallery-grid-0f84a42c {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.pd-gallery-top-row {
    display: flex;
    gap: 10px;
    height: 450px;
}

.pd-gallery-large {
    flex: 2;
    height: 100%;
}

.pd-gallery-stacked {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.pd-gallery-stacked .pd-gallery-item {
    flex: 1;
}

.pd-gallery-bottom-row {
    display: flex;
    gap: 10px;
    height: 220px;
}

.pd-gallery-bottom-col {
    flex: 1;
    height: 100%;
}

/* Common Item Styles */
.pd-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.pd-gallery-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.pd-gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 84, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.6s ease, backdrop-filter 0.6s ease;
}

.pd-gallery-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0s;
}

/* Hover States on the entire container */
.pd-gallery-item:hover .pd-gallery-bg {
    transform: scale(1.05);
}

.pd-gallery-item:hover .pd-gallery-item-overlay {
    background-color: rgba(13, 59, 84, 0.3);
    backdrop-filter: blur(5px);
}

.pd-gallery-item:hover .pd-gallery-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* 0.5s delay before fade-up */
}

/* Responsiveness */
@media (max-width: 768px) {
    .pd-gallery-top-row {
        flex-direction: column;
        height: auto;
    }
    .pd-gallery-large {
        height: 300px;
    }
    .pd-gallery-stacked {
        height: 400px;
    }
    .pd-gallery-bottom-row {
        flex-direction: column;
        height: auto;
    }
    .pd-gallery-bottom-col {
        height: 200px;
    }
}
