/* Stamps Page Specific Styles */

/* Section Margins */
.section-stamps-banner {
    margin-bottom: 30px;
}

.section-stamps-intro {
    padding: 30px 0 40px;
    margin-bottom: 30px;
}

.section-stamp-showcase {
    padding: 20px 0 40px;
    text-align: center;
    margin-bottom: 30px;
}

.section-stamps-grid {
    padding: 20px 0 40px;
    margin-bottom: 30px;
}

/* Stamp Showcase Styles - Enlarged Single Stamps */
.stamp-display {
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.stamp-display img {
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 0 auto;
    display: block;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stamp-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.stamp-description {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 40px;
}

/* 2x2 Grid for Stamps - Enlarged */
.stamps-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.stamp-grid-item {
    text-align: center;
}

.stamp-grid-item img {
    width: 100%;
    max-width: none;
    height: auto;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.stamp-grid-item img:hover {
    transform: scale(1.02);
}

.stamp-grid-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.stamp-grid-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    padding: 0 20px;
}

/* Banner Image Adjustments */
.section-stamps-banner .full-width-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Banner image caption - converted to fine print like the-book.php */
.section-stamps-banner .image-caption {
    font-size: 13px;
    text-align: center;
    color: #666;
    font-style: normal;
    margin-top: 0.25rem;
    line-height: 1.4;
    font-weight: normal;
    padding: 15px 40px;
}

/* Container for better content width control */
.section-stamp-showcase .container,
.section-stamps-grid .container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stamps-grid-2x2 {
        gap: 40px 60px;
        padding: 0 30px;
    }

    .stamp-display {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    /* Remove section margins - let content control spacing */
    .section-stamps-banner {
        padding: 0;
        margin-bottom: 50px;
    }

    .section-stamps-intro {
        padding: 30px 0;
        margin-bottom: 50px;
    }

    .section-stamp-showcase,
    .section-stamps-grid {
        padding: 0;
        margin-bottom: 0;
    }

    /* Intro section text harmonization */
    .section-stamps-intro .section-title {
        font-size: 24px !important;
        margin-bottom: 15px;
        padding: 0 20px;
    }

    .section-stamps-intro .section-subtitle {
        font-size: 18px !important;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .section-stamps-intro .section-description {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 20px;
        margin-bottom: 15px;
    }

    /* Consistent padding for all content containers */
    .stamp-display,
    .stamps-grid-2x2,
    .stamp-description {
        padding: 0 20px;
    }

    /* Single column grid on mobile - match stamp item spacing */
    .stamps-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Each stamp item gets bottom margin to match grid gap */
    .stamp-display {
        margin: 0 auto 20px;
    }

    .stamp-display img,
    .stamp-grid-item img {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Add consistent spacing after each stamp description */
    .stamp-title {
        margin-bottom: 15px;
    }

    .stamp-description {
        margin-bottom: 50px;
    }

    /* Harmonized typography - all stamps same size */
    .stamp-title,
    .stamp-grid-item h4 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .stamp-description,
    .stamp-grid-item p {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 20px;
    }

    /* Remove extra padding from grid items */
    .stamp-grid-item p {
        padding: 0;
    }

    /* Banner image caption fine print responsive */
    .section-stamps-banner .image-caption {
        font-size: 12px;
        padding: 10px 20px;
    }
}

/* Additional fine print responsive breakpoints for banner captions */
@media (max-width: 576px) {
    /* Section spacing adjustments */
    .section-stamps-banner {
        margin-bottom: 40px;
    }

    .section-stamps-intro {
        margin-bottom: 40px;
    }

    /* Intro section text adjustments */
    .section-stamps-intro .section-title {
        font-size: 22px !important;
        padding: 0 15px;
    }

    .section-stamps-intro .section-subtitle {
        font-size: 16px !important;
        padding: 0 15px;
    }

    .section-stamps-intro .section-description {
        font-size: 15px;
        padding: 0 15px;
    }

    /* Reduce padding on smaller screens */
    .stamp-display,
    .stamps-grid-2x2,
    .stamp-description {
        padding: 0 15px;
    }

    /* Grid gap matches spacing between stamps */
    .stamps-grid-2x2 {
        gap: 40px;
    }

    /* Stamp description spacing matches grid gap */
    .stamp-description {
        margin-bottom: 40px;
    }

    /* Slightly smaller text for better fit */
    .stamp-title,
    .stamp-grid-item h4 {
        font-size: 20px;
    }

    .stamp-description,
    .stamp-grid-item p {
        font-size: 15px;
        padding: 0 15px;
    }

    .stamp-grid-item p {
        padding: 0;
    }

    .section-stamps-banner .image-caption {
        font-size: 11px;
        text-align: center;
        padding: 8px 15px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    /* Section spacing adjustments */
    .section-stamps-banner {
        margin-bottom: 35px;
    }

    .section-stamps-intro {
        margin-bottom: 35px;
    }

    /* Intro section text adjustments */
    .section-stamps-intro .section-title {
        font-size: 20px !important;
        padding: 0 12px;
    }

    .section-stamps-intro .section-subtitle {
        font-size: 15px !important;
        padding: 0 12px;
    }

    .section-stamps-intro .section-description {
        font-size: 14px;
        padding: 0 12px;
    }

    .stamp-display,
    .stamps-grid-2x2,
    .stamp-description {
        padding: 0 12px;
    }

    /* Grid gap matches spacing between stamps */
    .stamps-grid-2x2 {
        gap: 35px;
    }

    /* Stamp description spacing matches grid gap */
    .stamp-description {
        margin-bottom: 35px;
    }

    .stamp-description,
    .stamp-grid-item p {
        padding: 0 12px;
    }

    .stamp-grid-item p {
        padding: 0;
    }

    .section-stamps-banner .image-caption {
        font-size: 10px;
        padding: 8px 12px;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    /* Section spacing adjustments */
    .section-stamps-banner {
        margin-bottom: 30px;
    }

    .section-stamps-intro {
        margin-bottom: 30px;
    }

    /* Intro section text adjustments */
    .section-stamps-intro .section-title {
        font-size: 18px !important;
        padding: 0 10px;
    }

    .section-stamps-intro .section-subtitle {
        font-size: 14px !important;
        padding: 0 10px;
    }

    .section-stamps-intro .section-description {
        font-size: 13px;
        padding: 0 10px;
    }

    .stamp-display,
    .stamps-grid-2x2,
    .stamp-description {
        padding: 0 10px;
    }

    /* Grid gap matches spacing between stamps */
    .stamps-grid-2x2 {
        gap: 30px;
    }

    /* Stamp description spacing matches grid gap */
    .stamp-description {
        margin-bottom: 30px;
    }

    .stamp-title,
    .stamp-grid-item h4 {
        font-size: 18px;
    }

    .stamp-description,
    .stamp-grid-item p {
        font-size: 14px;
        padding: 0 10px;
    }

    .stamp-grid-item p {
        padding: 0;
    }

    .section-stamps-banner .image-caption {
        font-size: 9px;
        padding: 5px 8px;
        margin-top: 5px;
        line-height: 1.3;
    }
}

/* Related Collections Section */
.related-collections {
    padding: 80px 0;
    background: #f8f8f8;
}

.related-collections .section-title {
    text-align: center;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

.collections-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.collection-link {
    padding: 12px 24px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.collection-link:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

/* Responsive Design for Related Collections */
@media (max-width: 768px) {
    .related-collections {
        padding: 60px 0;
    }

    .related-collections .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .collections-nav {
        gap: 15px;
    }

    .collection-link {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .collections-nav {
        flex-direction: column;
        align-items: center;
    }

    .collection-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}