/* Portfolio Page CSS Styles - Enhanced Font Sizes */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base font size */
html {
    font-size: 16px;
}

/* ================================================ */
/* PORTFOLIO HERO SECTION */
/* ================================================ */

.marshall-portfolio-hero {
    position: relative;
    min-height: 220px; /* Increased from 200px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Lancelot', cursive, serif;
}

.marshall-portfolio-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/top-horse.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: -1;
}

.marshall-portfolio-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.marshall-portfolio-hero-title {
    color: #fff;
    font-size: 3.625rem; /* Increased from 3.5rem (58px) - Hero title */
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Lancelot', cursive, serif;
}

/* ================================================ */
/* PORTFOLIO GALLERY SECTION */
/* ================================================ */

.marshall-portfolio-gallery {
    background-color: #ffffff;
    padding: 90px 0; /* Increased from 80px */
    font-family: 'Lancelot', cursive, serif;
}

.marshall-portfolio-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.marshall-portfolio-gallery-content {
    text-align: center;
}

.marshall-portfolio-gallery-title {
    color: #333;
    font-size: 2.75rem; /* Increased from 2.625rem (44px) - Section title */
    font-weight: 500;
    margin-bottom: 55px; /* Increased from 50px */
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.marshall-portfolio-gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #5ca7db;
}

.marshall-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* Increased from 30px */
    max-width: 1200px;
    margin: 0 auto;
}

.marshall-portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.marshall-portfolio-link:hover {
    color: inherit;
    text-decoration: none;
}

.marshall-portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marshall-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.marshall-portfolio-image {
    position: relative;
    overflow: hidden;
}

.marshall-portfolio-image img {
    width: 100%;
    height: 365px; /* Increased from 350px */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.marshall-portfolio-item:hover .marshall-portfolio-image img {
    transform: scale(1.05);
}

.marshall-portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 45px 28px 28px; /* Increased from 40px 25px 25px */
    transform: translateY(0);
    transition: all 0.3s ease;
}

.marshall-portfolio-type {
    color: #fff;
    font-size: 1.5625rem; /* Increased from 1.5rem (25px) - Sub title */
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Lancelot', cursive, serif;
}

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

/* Large Tablet Styles (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .marshall-portfolio-hero {
        min-height: 200px; /* Increased from 180px */
    }
    
    .marshall-portfolio-hero-container {
        padding: 0 30px;
    }
    
    .marshall-portfolio-hero-title {
        font-size: 3.275rem; /* Increased from 3.15rem (52.4px) */
    }
    
    .marshall-portfolio-gallery {
        padding: 80px 0; /* Increased from 70px */
    }
    
    .marshall-portfolio-gallery-container {
        padding: 0 30px;
    }
    
    .marshall-portfolio-gallery-title {
        font-size: 2.4875rem; /* Increased from 2.375rem (39.8px) */
        margin-bottom: 50px; /* Increased from 45px */
    }
    
    .marshall-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px; /* Increased from 25px */
    }
    
    .marshall-portfolio-image img {
        height: 335px; /* Increased from 320px */
    }
    
    .marshall-portfolio-overlay {
        padding: 40px 25px 25px; /* Increased from 35px 22px 22px */
    }
    
    .marshall-portfolio-type {
        font-size: 1.4375rem; /* Increased from 1.375rem (23px) */
    }
}

/* Small Tablet Styles (481px - 768px) */
@media (max-width: 768px) {
    .marshall-portfolio-hero {
        min-height: 180px; /* Increased from 160px */
    }
    
    .marshall-portfolio-hero-container {
        padding: 0 20px;
    }
    
    .marshall-portfolio-hero-title {
        font-size: 2.95rem; /* Increased from 2.8rem (47.2px) */
    }
    
    .marshall-portfolio-gallery {
        padding: 70px 0; /* Increased from 60px */
    }
    
    .marshall-portfolio-gallery-container {
        padding: 0 20px;
    }
    
    .marshall-portfolio-gallery-title {
        font-size: 2.25rem; /* Increased from 2.125rem (36px) */
        margin-bottom: 45px; /* Increased from 40px */
    }
    
    .marshall-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px; /* Increased from 25px */
    }
    
    .marshall-portfolio-image img {
        height: 295px; /* Increased from 280px */
    }
    
    .marshall-portfolio-overlay {
        padding: 35px 25px 25px; /* Increased from 30px 20px 20px */
    }
    
    .marshall-portfolio-type {
        font-size: 1.3125rem; /* Increased from 1.25rem (21px) */
    }
}

/* Mobile Styles (≤ 480px) */
@media (max-width: 480px) {
    .marshall-portfolio-hero {
        min-height: 160px; /* Increased from 140px */
    }
    
    .marshall-portfolio-hero-container {
        padding: 0 20px; /* Increased from 15px for small margins */
    }
    
    .marshall-portfolio-hero-title {
        font-size: 2.625rem; /* Increased from 2.5rem (42px) */
        line-height: 1.3;
    }
    
    .marshall-portfolio-gallery {
        padding: 60px 0; /* Increased from 50px */
    }
    
    .marshall-portfolio-gallery-container {
        padding: 0 20px; /* Increased from 15px for small margins */
    }
    
    .marshall-portfolio-gallery-title {
        font-size: 2.125rem; /* Increased from 2rem (34px) */
        margin-bottom: 40px; /* Increased from 35px */
    }
    
    .marshall-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px; /* Increased from 20px */
    }
    
    .marshall-portfolio-image img {
        height: 265px; /* Increased from 250px */
    }
    
    .marshall-portfolio-overlay {
        padding: 30px 20px 20px; /* Increased from 25px 15px 15px */
    }
    
    .marshall-portfolio-type {
        font-size: 1.1875rem; /* Increased from 1.125rem (19px) */
    }
}

/* Extra Small Mobile (≤ 360px) */
@media (max-width: 360px) {
    .marshall-portfolio-hero {
        min-height: 140px; /* Increased from 120px */
    }
    
    .marshall-portfolio-hero-container {
        padding: 0 18px; /* Increased from 12px for better margins */
    }
    
    .marshall-portfolio-hero-title {
        font-size: 2.3125rem; /* Increased from 2.275rem (37px) */
        line-height: 1.3;
    }
    
    .marshall-portfolio-gallery-container {
        padding: 0 18px; /* Increased from 12px for better margins */
    }
    
    .marshall-portfolio-gallery-title {
        font-size: 2rem; /* Increased from 1.875rem (32px) */
        margin-bottom: 35px; /* Increased from 30px */
    }
    
    .marshall-portfolio-grid {
        gap: 22px; /* Increased from 18px */
    }
    
    .marshall-portfolio-image img {
        height: 235px; /* Increased from 220px */
    }
    
    .marshall-portfolio-overlay {
        padding: 28px 18px 18px; /* Increased from 22px 12px 12px */
    }
    
    .marshall-portfolio-type {
        font-size: 1.0625rem; /* Increased from 1rem (17px) */
    }
}