.map-photo-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.map-photo-image {
    transition: transform .35s ease;
    transform-origin: center center;
}

.map-photo-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    background: white;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .14);
    color: black;
}

.map-photo-address {
    display: block;
}

.map-photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #eee;
    color: black;
    text-decoration: none;
    flex: 0 0 auto;
}

.map-photo-link:hover,
.map-photo-link:focus {
    background: #ddd;
    color: black;
}

@media (max-width: 767.98px) {
    .map-photo-overlay {
        top: .5rem;
        left: .5rem;
        right: auto;
        padding: .3rem .45rem;
        gap: .35rem;
        font-size: .8rem;
    }

    .map-photo-image {
        transform: scale(1.08);
    }

    .map-photo-address {
        display: block;
        font-size: .72rem;
        line-height: 1.1;
    }

    .map-photo-link {
        width: 1.75rem;
        height: 1.75rem;
        font-size: .75rem;
    }
}

@media (max-width: 375.98px) {
    .map-photo-overlay {
        left: .35rem;
        top: .5rem;
    }

    .map-photo-link {
        width: 1.6rem;
        height: 1.6rem;
        font-size: .7rem;
    }

    .map-photo-image {
        transform: scale(1.15);
    }
}