/* Galerías de contenido institucional.
   Las rutas de las fotografías se administran desde activities.blade.php y committee.blade.php. */

.content-showcase {
    overflow: hidden;
}

.content-showcase-heading {
    width: 100%;
    max-width: none;
    margin-bottom: 2em;
}

.content-showcase-heading p {
    width: 100%;
    max-width: none;
}

.content-gallery {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1em;
}

.content-gallery-item {
    position: relative;
    grid-column: span 4;
    min-height: 280px;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #163b28;
    box-shadow: 0 14px 32px rgba(11, 61, 27, 0.14);
}

.content-gallery-item.is-wide {
    grid-column: span 8;
}

.content-gallery-item.is-hero {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 576px;
}

.content-gallery-item.is-portrait {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 576px;
}

.content-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.content-gallery-item:hover img {
    transform: scale(1.035);
}

.content-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(5, 24, 13, 0.88) 100%);
    pointer-events: none;
}

.content-gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 2.6em 1.35em 1.25em;
    color: #ffffff;
}

.content-gallery-item figcaption span {
    display: block;
    margin-bottom: 0.25em;
    color: #d5e7d8;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.content-gallery-item figcaption strong {
    display: block;
    color: #ffffff;
    font-size: 1.05em;
    line-height: 1.25;
}

.content-gallery-pair .content-gallery-item {
    grid-column: span 6;
    min-height: 330px;
}

.content-gallery-trio .content-gallery-item {
    min-height: 340px;
}

.content-gallery-field .content-gallery-item:nth-child(1),
.content-gallery-field .content-gallery-item:nth-child(5) {
    min-height: 320px;
}

.content-gallery-committee .content-gallery-item.is-standard {
    min-height: 280px;
}

@media screen and (max-width: 980px) {
    .content-gallery-item,
    .content-gallery-item.is-wide,
    .content-gallery-item.is-hero,
    .content-gallery-item.is-portrait {
        grid-column: span 6;
        grid-row: auto;
        min-height: 340px;
    }

    .content-gallery-pair .content-gallery-item {
        grid-column: span 6;
    }
}

@media screen and (max-width: 736px) {
    .content-gallery {
        grid-template-columns: 1fr;
    }

    .content-gallery-item,
    .content-gallery-item.is-wide,
    .content-gallery-item.is-hero,
    .content-gallery-item.is-portrait,
    .content-gallery-pair .content-gallery-item {
        grid-column: 1;
        min-height: 300px;
    }

    .content-gallery-item.is-portrait {
        min-height: 440px;
    }
}
