@media print {
    @page {
        margin: 1.5cm;
        size: A4 portrait;
    }

    * {
        background: transparent !important;
        color: #000000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: #ffffff !important;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }

    a[href^="#"]:after {
        content: none;
    }

    header, 
    .badge, 
    .tagline, 
    .buy-links, 
    .note, 
    #toTop, 
    .lightbox, 
    footer {
        display: none !important;
    }

    .hero img,
    .gallery-grid img,
    .about-photo img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    .section, 
    .section-media, 
    .section-about, 
    .intro, 
    .content, 
    .hero, 
    .gallery {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 1rem 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .media-grid,
    .gallery-grid,
    .about-grid,
    .details-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    h1, h2, h3 {
        color: #000000 !important;
        page-break-after: avoid;
    }

    .media-item {
        page-break-inside: avoid;
        border: 1px solid #dddddd;
        padding: 1rem;
    }

    img {
        max-width: 100% !important;
    }

    /* Zabránit přerušení sekcí */
    section {
        page-break-before: auto;
    }
}