/* =========================================================
   PET MINI PHOTO SESSIONS
   Used by index.php (highlight) and photo-sessions.php
========================================================= */

/* ---------- Home page highlight ---------- */

.ps-highlight {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.ps-feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-lg);
    box-shadow: var(--site-shadow);
    overflow: hidden;
}

.ps-feature__media {
    position: relative;
    min-height: 260px;
}

.ps-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ps-feature__body {
    padding: 1.75rem 2rem;
}

.ps-feature__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--site-heading-accent);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ps-feature__text {
    color: var(--site-text);
    margin-bottom: 1rem;
}

.ps-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- Shared pieces ---------- */

.ps-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1rem;
}

.ps-pills li {
    background: var(--site-primary-light);
    color: var(--site-primary-dark);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
}

.ps-dates {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.ps-dates li {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--site-text);
}

.ps-dates i {
    color: var(--site-primary);
    margin-right: 0.5rem;
}

.ps-details {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--site-text);
}

.ps-details li + li {
    margin-top: 0.5rem;
}

.ps-notice {
    background: var(--site-primary-light);
    border: 1px solid rgba(var(--site-primary-rgb), 0.25);
    border-radius: var(--site-radius-sm);
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    color: var(--site-primary-dark);
    margin-bottom: 1.5rem;
}

.ps-photo {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .ps-feature {
        grid-template-columns: 1fr;
    }

    .ps-feature__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .ps-feature__body {
        padding: 1.25rem;
    }
}

.ps-mini-dates {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    color: var(--site-text);
}

.ps-mini-dates li + li {
    margin-top: 0.25rem;
}

.ps-session {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    background: var(--site-primary-light);
    border-radius: var(--site-radius-sm);
}

.ps-session + .ps-session {
    margin-top: 0.75rem;
}

.ps-session__date {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--site-primary-dark);
}

.ps-session__line {
    color: var(--site-text);
}

.ps-session__line i {
    color: var(--site-primary);
    width: 1.25rem;
    margin-right: 0.35rem;
    text-align: center;
}

.ps-pills li.ps-pills__cta {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Photo that fills the last grid cell, matching the height of its row */
.ps-photo-cell {
    height: 100%;
    min-height: 280px;
    position: relative;
}

.ps-photo-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

@media (max-width: 767.98px) {
    .ps-photo-cell {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

/* Example photo carousel */
.ps-carousel {
    border-radius: var(--site-radius-lg);
    overflow: hidden;
    background: #e8eef5;
}

.ps-carousel .carousel-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.ps-carousel .carousel-control-prev-icon,
.ps-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    background-size: 55%;
    width: 2.25rem;
    height: 2.25rem;
}
