/* photography.css - Elcome Media Photography Page */

/* ========================================
   PAGE BASE
======================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
}

/* ========================================
   HERO BACKGROUND
======================================= */
.photography-hero-bg {
    background-image: url("Assets/Pics/Wedding/Preet/optimized/5.webp");
    background-size: cover;
    background-position: center;
    filter: brightness(1.11);
}

/* ========================================
   PORTFOLIO SECTION
======================================= */
#portfolio {
    background: #ffffff;
}

.portfolio-subsection {
    margin-top: 70px;
}

.portfolio-subsection:first-child {
    margin-top: 0;
}

.portfolio-subsection h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #111;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.portfolio-subsection h2::after {
    display: none;
}

.portfolio-subsection h2:has(+ .portfolio-price),
.portfolio-subsection h2:has(+ .portfolio-price-details) {
    margin-bottom: 8px;
}

.portfolio-price {
    text-align: center;
    margin: 0 0 25px;
    color: #007bff;
    font-size: 2.2rem;
    font-style: italic;
}

.portfolio-price:has(+ .portfolio-price-details) {
    margin-bottom: 10px;
}

.portfolio-price-details {
    text-align: center;
    margin: 0 0 25px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .portfolio-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 520px) {
    .portfolio-price {
        font-size: 1.6rem;
    }
}

.portfolio-subsection h3.portfolio-row-heading {
    text-align: center;
    margin: 1.5rem 0 25px;
    color: #111;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* ========================================
   PHOTO GRID
======================================= */
.photo-grid-6 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px;
    width: 100%;
}

.photo-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #f1f5f9;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.24);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.04);
}

/* Works if any older images are not inside figure */
.photo-grid-6 > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-grid-6 > img:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.24);
}

/* Family, Modeling & Fashion and Pets: two rows of two, each photo 25% wider than the three-across photos */
#family .photo-grid-6,
#modeling-fashion .photo-grid-6,
#pet-photography .photo-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: calc((100% - 44px) * 2.5 / 3 + 22px);
    margin-left: auto;
    margin-right: auto;
}

/* Photography courses: two across the full row, so each photo is about twice the size of the three-across photos */
#lessons .photo-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Big group shots: run across the full row at the photo's own shape so nobody is cropped */
.photo-grid-6 .photo-card-wide {
    grid-column: 1 / -1;
}

.photo-grid-6 .photo-card-wide img {
    aspect-ratio: auto;
}

/* Tall portrait shots: crop from the top so heads aren't cut off */
.modeling-portraits .photo-card img {
    object-position: center top;
}

/* ========================================
   PRODUCT SHOTS
======================================= */
.product-shot {
    background: #ffffff;
    object-fit: contain;
    padding: 20px;
}

/* ========================================
   NEW NAMED EVENT ROW
======================================= */
.named-event-card {
    background: #0f172a;
}

.named-event-card figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.named-event-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.38), transparent 45%);
    pointer-events: none;
}

/* ========================================
   INTRO TWEAKS
======================================= */
#intro {
    background: #ffffff;
}

.intro-right p {
    color: #475569;
    line-height: 1.8;
}

/* ========================================
   RESPONSIVE
======================================= */
@media (max-width: 1024px) {
    .photo-grid-6 {
        gap: 18px;
    }

    .portfolio-subsection h2,
    .portfolio-subsection h2.portfolio-subheading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .photo-grid-6 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    /* Already two across here, so use the full width like the other sections */
    #family .photo-grid-6,
    #modeling-fashion .photo-grid-6,
    #pet-photography .photo-grid-6 {
        max-width: none;
    }

    .portfolio-subsection {
        margin-top: 55px;
    }

    .portfolio-subsection h2,
    .portfolio-subsection h2.portfolio-subheading {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 520px) {
    .photo-grid-6,
    #family .photo-grid-6,
    #modeling-fashion .photo-grid-6,
    #pet-photography .photo-grid-6,
    #lessons .photo-grid-6 {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .portfolio-subsection {
        margin-top: 45px;
    }

    .portfolio-subsection h2,
    .portfolio-subsection h2.portfolio-subheading {
        font-size: 1.6rem;
    }

    .named-event-card figcaption {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}
/* Six Bells heading: 10% smaller than the other section headings, at every screen size */
.portfolio-subsection h2.portfolio-subheading {
    font-size: 1.98rem;
}

@media (max-width: 1024px) {
    .portfolio-subsection h2.portfolio-subheading {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .portfolio-subsection h2.portfolio-subheading {
        font-size: 1.62rem;
    }
}

@media (max-width: 520px) {
    .portfolio-subsection h2.portfolio-subheading {
        font-size: 1.44rem;
    }
}