/* Styles for photos embedded in blog/portfolio posts */

.embedded-photo {
    position: relative;
    margin: 2.5rem auto;
    max-width: 100%;
    overflow: hidden;
    display: block;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #111; /* Dark fallback for slow-loading images */
}

.embedded-photo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important; /* Override blog body img margin */
    cursor: pointer !important; /* Make clickable to open lightbox */
    transition: opacity 0.3s ease;
}

.embedded-photo:hover img {
    opacity: 0.9;
}

/* Sizing classes for embedded photos */
.embedded-photo--medium {
    max-width: 70ch; /* Aligns with standard readable text width */
}

.embedded-photo--small {
    max-width: 45ch;
    float: left; /* Example for smaller images to wrap text around */
    margin-right: 2.5rem;
}

.blog-hero-photo {
    position: relative;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    margin: -40px 0 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.blog-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

.blog-hero-photo h1, .blog-hero-photo .hero-exif {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    text-align: left;
    border-bottom: none;
    max-width: 800px;
    margin: 0 auto;
}

.hero-exif {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(16px);
    padding: 8px 12px;
    display: inline-block;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
