/* Frontend styles for SC Photo Block */

.sc-photo-block {
    margin: 2em 0;
    clear: both;
}

/* Hero Layout - Full-width banner at top of content */
.sc-photo-block.sc-photo-hero {
    margin: 0 0 3em 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.sc-photo-hero .sc-photo-figure {
    max-width: 100%;
    margin: 0;
}

.sc-photo-hero .sc-photo-image {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.sc-photo-hero .sc-photo-image:hover {
    transform: none;
    box-shadow: none;
}

.sc-photo-hero .sc-photo-caption {
    max-width: 1200px;
    margin: 1em auto;
    padding: 0 2em;
    text-align: center;
    font-size: 1em;
    color: #666;
}

.sc-photo-figure {
    margin: 0;
}

.sc-photo-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-photo-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sc-photo-caption {
    margin-top: 0.75em;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: center;
}

/* Featured Layout - Large, centered, eye-catching */
.sc-photo-featured {
    text-align: center;
}

.sc-photo-featured .sc-photo-figure {
    max-width: 900px;
    margin: 0 auto;
}

.sc-photo-featured .sc-photo-image {
    width: 100%;
}

/* Inline Left - Wrap text around right side */
.sc-photo-inline-left .sc-photo-figure {
    float: left;
    max-width: 45%;
    margin: 0 2em 1.5em 0;
}

.sc-photo-inline-left .sc-photo-caption {
    text-align: left;
}

/* Inline Right - Wrap text around left side */
.sc-photo-inline-right .sc-photo-figure {
    float: right;
    max-width: 45%;
    margin: 0 0 1.5em 2em;
}

.sc-photo-inline-right .sc-photo-caption {
    text-align: right;
}

/* Centered - Medium size, centered */
.sc-photo-centered {
    text-align: center;
}

.sc-photo-centered .sc-photo-figure {
    max-width: 700px;
    margin: 0 auto;
}

.sc-photo-centered .sc-photo-image {
    width: 100%;
}

/* Full Width - Edge to edge (respects container) */
.sc-photo-full-width .sc-photo-figure {
    max-width: 100%;
}

.sc-photo-full-width .sc-photo-image {
    width: 100%;
    border-radius: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sc-photo-hero .sc-photo-image {
        max-height: 400px;
    }
    
    .sc-photo-hero .sc-photo-caption {
        padding: 0 1em;
        font-size: 0.9em;
    }

    .sc-photo-inline-left .sc-photo-figure,
    .sc-photo-inline-right .sc-photo-figure {
        float: none;
        max-width: 100%;
        margin: 0 0 1.5em 0;
    }

    .sc-photo-inline-left .sc-photo-caption,
    .sc-photo-inline-right .sc-photo-caption {
        text-align: center;
    }

    .sc-photo-featured .sc-photo-figure,
    .sc-photo-centered .sc-photo-figure {
        max-width: 100%;
    }
}

/* Clear floats after inline blocks */
.sc-photo-inline-left::after,
.sc-photo-inline-right::after {
    content: "";
    display: table;
    clear: both;
}
