/* =========================================================
   Professional Headshots Page
   Loaded only on headshots.php
   ========================================================= */

.headshots-page {
    padding-top: 32px;
    padding-bottom: 48px;
}

/* Main white portfolio card */

.headshots-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Page heading */

.headshots-intro {
    padding: 28px 24px 26px;
    text-align: center;
    border: 1px solid #e3e3e3;
    border-bottom: 3px solid #b22222;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f7f7f7 55%,
        #eeeeee 100%
    );
}

.headshots-kicker {
    margin: 0 0 2px;
    color: #b22222;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.headshots-intro h1 {
    margin: 0;
    color: #111;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.headshots-name {
    margin: 4px 0 16px;
    color: #333;
    font-size: 1.18rem;
    font-weight: 700;
}

.headshots-name span {
    color: #666;
    font-weight: 500;
}

.headshots-description {
    max-width: 690px;
    margin: 0 auto;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.headshots-instruction {
    display: inline-block;
    margin: 18px 0 0;
    padding: 8px 14px;
    color: #555;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-left: 4px solid #b22222;
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Gallery area */

.headshots-gallery {
    margin-top: 36px;
    padding: 24px;
    background: #f4f4f4;
    border: 1px solid #dedede;
    border-radius: 5px;
}

/*
 * gallery.css provides the reusable grid.
 * These rules refine it specifically for headshots.
 */

.headshots-gallery .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
}

.headshots-gallery .gallery-item {
    position: relative;
    border: 5px solid #fff;
    border-radius: 5px;
    background: #fff;
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.headshots-gallery .gallery-item:hover,
.headshots-gallery .gallery-item:focus-visible {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(178, 34, 34, 0.25);
}

.headshots-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}

/*
 * Replace the generic image zoom with a smaller amount because
 * the entire card already rises on hover.
 */

.headshots-gallery .gallery-item:hover img,
.headshots-gallery .gallery-item:focus-visible img {
    transform: scale(1.025);
}

/* Subtle red line beneath each image */

.headshots-gallery .gallery-item::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: -5px;
    left: 16px;
    height: 4px;
    background: #b22222;
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transform: scaleX(0.65);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.headshots-gallery .gallery-item:hover::after,
.headshots-gallery .gallery-item:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Tablet */

@media (max-width: 900px) {
    .headshots-card {
        padding: 26px;
    }

    .headshots-gallery .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 600px) {
    .headshots-page {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .headshots-card {
        padding: 20px 14px;
        border-radius: 0;
    }

    .headshots-intro {
        padding: 24px 16px 22px;
    }

    .headshots-description {
        font-size: 0.95rem;
    }

    .headshots-gallery {
        margin-top: 28px;
        padding: 12px;
    }

    .headshots-gallery .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .headshots-gallery .gallery-item {
        border-width: 3px;
    }
}

/* Very narrow phones */

@media (max-width: 390px) {
    .headshots-gallery .gallery {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .headshots-gallery .gallery-item,
    .headshots-gallery .gallery-item img,
    .headshots-gallery .gallery-item::after {
        transition: none;
    }
}

/* Printing */

@media print {
    .headshots-page {
        padding: 0;
    }

    .headshots-card {
        max-width: none;
        padding: 0;
        box-shadow: none;
    }

    .headshots-gallery {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .headshots-gallery .gallery {
        gap: 12px;
    }

    .headshots-gallery .gallery-item {
        box-shadow: none;
        break-inside: avoid;
    }
}