.grid {
    display: block;
    container-type: inline-size;
}

.dac-col-6-12 {
    overflow: hidden;
    margin-bottom: 20px;
    width: 50%;
    float: left;
}

.birthday-image-container {
    width: 200px;
    float: left;
    min-height: 100px;
    margin-right: 1rem;
}

.birthday-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* Debug styles */
.info-msg {
    margin: 10px 0;
}

.debug {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

/* Container query for modern browsers */
@container (max-width: 767px) {
    .dac-col-6-12 {
        width: 100%;
        float: none;
    }
}

/* Fallback for browsers that don't support container queries */
@media screen and (max-width: 767px) {
    .dac-col-6-12 {
        width: 100%;
        float: none;
    }
} 