/* ===========================
   ORGANIZATION.CSS
   Organization details (EIN, address) and event photo gallery
   =========================== */

/* Organization details list */
.org-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.org-details__item {
    background-color: var(--color-white);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
}

.org-details__term {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.org-details__value {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-dark);
    margin: 0;
}

.org-details__address {
    font-style: normal;
}

@media (max-width: 767px) {
    .org-details {
        grid-template-columns: 1fr;
    }
}

/* Event photo gallery */
.gallery {
    margin: var(--spacing-lg) 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Cancel the global "ul li" bottom margin so row and column gaps match */
.gallery__item {
    margin: 0;
}

.gallery__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* Full-width banner above the 3x2 grid; cropped wide, weighted toward
   the crowd rather than the ceiling */
.gallery__item--feature {
    grid-column: 1 / -1;
}

.gallery__item--feature .gallery__image {
    aspect-ratio: 12 / 5;
    object-position: center 70%;
}

.gallery__caption {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    text-align: center;
    color: var(--color-light-text);
}

@media (max-width: 767px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    /* A wide crop is too short at phone width; match the other photos */
    .gallery__item--feature .gallery__image {
        aspect-ratio: 3 / 2;
    }
}
