/* ============================================
   HEC DOCTORS PHOTO STACK
   ============================================ */

.hec-doctors-photo-stack {
    --hec-doctor-photo-size: 150px;
    --hec-doctor-photo-overlap: -18px;
    --hec-doctor-bite-size: 10px;
    --hec-doctor-bite-color: #ECE8DC;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.hec-doctors-photo-stack__item {
    position: relative;
    z-index: var(--hec-doctor-photo-z, 1);
    display: block;
    width: var(--hec-doctor-photo-size);
    height: var(--hec-doctor-photo-size);
    flex: 0 0 var(--hec-doctor-photo-size);
    margin-left: var(--hec-doctor-photo-overlap);
    text-decoration: none;
    line-height: 0;
    box-sizing: border-box;
    overflow: visible;
}

.hec-doctors-photo-stack__item:first-child {
    margin-left: 0;
}

/* Separator / “bite” behind every photo.
   It creates the visible cut between overlapping circles. */
.hec-doctors-photo-stack__item::before {
    content: '';
    position: absolute;
    inset: calc(var(--hec-doctor-bite-size) * -1);
    z-index: 0;
    display: block;
    border-radius: 50%;
    background: var(--hec-doctor-bite-color);
    pointer-events: none;
}

.hec-doctors-photo-stack__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    box-sizing: border-box;
}

.hec-doctors-photo-stack__item:hover,
.hec-doctors-photo-stack__item:focus {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .hec-doctors-photo-stack {
        --hec-doctor-photo-size: 128px;
        --hec-doctor-photo-overlap: -16px;
        --hec-doctor-bite-size: 8px;
    }
}

@media (max-width: 767px) {
    .hec-doctors-photo-stack {
        --hec-doctor-photo-size: 82px;
        --hec-doctor-photo-overlap: -10px;
        --hec-doctor-bite-size: 5px;
    }
}
