/* ==========================================================================
   mPRESS - flat-file clone of mpress.se
   Font: Poppins | White page | Dark footer (#17191c)
   ========================================================================== */

/* ---- Google Fonts: Poppins ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #17191c;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", sans-serif;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.ws-section {
    position: relative;
    width: 100%;
    background: #ffffff;
}

/* Header section gets full 120px top + bottom */
.ws-section--header {
    padding: 120px 0;
}

/* Article / content sections: no top padding, 120px bottom */
.ws-section--content {
    padding: 0 0 120px;
}

/* Centered content wrapper: max-width 1200px, 120px side margins, 15px padding */
.ws-container {
    max-width: 1200px;
    margin: 0 120px;
    padding: 0 15px;
}

/* ==========================================================================
   Logo / header
   ========================================================================== */

.site-logo {
    font-size: 64px;
    line-height: 80px;
    font-weight: 700;
    color: #17191c;
    margin: 0;
}

.site-logo .logo-m {
    color: #cc0000; /* red "m" */
}

.site-logo .logo-press {
    color: #17191c;
}

.site-bio {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: #17191c;
    margin: 24px 0 0;
    max-width: 900px;
}

/* ==========================================================================
   Article blocks
   ========================================================================== */

.article-block {
    margin-top: 0;
}

.article-block + .article-block {
    margin-top: 80px;
}

.article-title {
    font-size: 38px;
    line-height: 56px;
    font-weight: 700;
    color: #17191c;
    margin: 0;
}

.article-title a:hover {
    color: #cc0000;
    transition: color 0.2s ease;
}

.article-body,
.article-excerpt {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #17191c;
    margin: 16px 0 0;
    max-width: 900px;
}

.gallery-note {
    font-size: 18px;
    line-height: 28px;
    color: #17191c;
    margin: 20px 0 0;
    font-style: italic;
}

.read-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #cc0000;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Gallery grid (CSS Grid, 4 cols -> 2 -> 1)
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 48px;
}

/* Homepage preview grid (smaller set) */
.gallery--preview {
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f4f4f5;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

/* Portrait images keep graceful placement */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

/* ==========================================================================
   Contact section (right-aligned block)
   ========================================================================== */

.ws-section--contact {
    padding: 0 0 120px;
    background: #ffffff;
}

.contact-block {
    display: flex;
    justify-content: flex-end;
}

.contact-inner {
    width: 570px;
    max-width: 100%;
    padding-left: 20px;
}

.contact-title {
    font-size: 38px;
    line-height: 56px;
    font-weight: 700;
    color: #17191c;
    margin: 0;
}

.contact-email {
    color: #17191c;
}

.contact-email:hover {
    color: #cc0000;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #17191c;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 120px;
    padding: 0 15px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0;
}

.footer-copy {
    font-size: 16px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.46);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 30px;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 42px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 56px;
    line-height: 1;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large tablet / small desktop: shrink big side margins */
@media (max-width: 1100px) {
    .ws-container,
    .footer-container {
        margin: 0 40px;
    }
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-logo {
        font-size: 48px;
        line-height: 60px;
    }

    .article-title,
    .contact-title {
        font-size: 30px;
        line-height: 42px;
    }

    .contact-block {
        justify-content: flex-start;
    }

    .contact-inner {
        width: 100%;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .ws-section--header {
        padding: 60px 0;
    }

    .ws-section--content,
    .ws-section--contact {
        padding: 0 0 60px;
    }

    .ws-container,
    .footer-container {
        margin: 0 20px;
        padding: 0 10px;
    }
}

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

    .site-logo {
        font-size: 40px;
        line-height: 50px;
    }

    .site-bio,
    .article-body,
    .article-excerpt,
    .gallery-note {
        font-size: 16px;
    }
}
