/**
 * Project Pages Shared Styles
 * Used by: early-works-2012-2016.html, gallery-series-2017.html
 * And any future project/performance pages
 */

/* ==================== LAYOUT ==================== */

.project-stack {
    padding-top: 35px;
}

.intro-text {
    margin-bottom: 34px;
}

.project-block {
    margin-bottom: 34px;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* ==================== TYPOGRAPHY ==================== */

/* Project Titles - H1, Sorts Mill Goudy 24px */
.project-title {
    font-family: 'Sorts Mill Goudy', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.4px;
    color: #fff;
    margin: 0 0 12px 0;
    text-align: left;
    -webkit-text-stroke: 0.5px;
}

/* Project Descriptions - Verdana 14px */
.project-description {
    margin: 0 0 34px 0;
    text-align: left;
}

.project-description p {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3em;
    letter-spacing: 0px;
    color: #fff;
    margin: 0 0 1em 0;
    -webkit-text-stroke: 0.1px;
}

.project-description a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* Photo Credits - Verdana 14px Italic */
.photo-credit {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-style: italic;
    color: #fff;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 20px;
}

.photo-credit a {
    color: var(--link-color);
    text-decoration: none;
}

/* Override intro-text styles for photo-credit */
.intro-text .photo-credit {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-style: italic;
}

.intro-text .photo-credit a {
    color: var(--link-color);
}

/* ==================== MEDIA ==================== */

/* Images */
.header-image,
.project-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.project-image {
    object-fit: fill;
}

/* Video Embeds */
.project-video {
    width: 100%;
    margin-bottom: 10px;
}

.project-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

/* ==================== INTERACTION ==================== */

/* Disable image hover effects and lightbox on project images */
.project-image,
.project-image:hover {
    filter: none !important;
    cursor: default !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-filter: none !important;
    pointer-events: none !important;
}

/* Disable hover effects on header image */
.header-image,
.header-image:hover {
    filter: none !important;
    cursor: default !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-filter: none !important;
    pointer-events: none !important;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 800px) {
    .project-stack {
        padding: 20px 15px 0;
    }

    .intro-text h2,
    .intro-text h3 {
        font-size: 17px;
    }

    .project-title {
        font-size: 20px;
    }
}

/* ==================== GALLERY GRID ==================== */

/* Standardized responsive photo grid component (e.g. Sublime Scum) */
.gallery-strip {
    display: grid;
    /* Creates a responsive grid */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* 4-Column strict grid component (e.g. WWTTWWTTC) */
.gallery-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-grid-4col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    cursor: pointer;
}

@media (max-width: 800px) {
    .gallery-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}