* {
    box-sizing: border-box;
}

body {
    background-color: black;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #006666;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

.main-section {
    width: 90%;
    max-width: 950px;
    background-color: #006666;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.banner {
    width: 100%;
    max-width: 800px;
    text-align: center;
    background-color: white;
    padding: 10px 20px 5px;
}

.banner img {
    width: 100%;
    max-width: 700px;
    border: 0;
    display: block;
    margin: 0 auto;
}

.content {
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 10px 20px 20px;
    text-align: left;
}

.content .description {
    margin: 20px 10px;
    font-size: 1.1em;
    color: #006666;
    line-height: 1.6;
}

.content .pattern-details {
    text-align: center;
    font-size: 1.1em;
    margin: 20px 0;
    color: #006666;
}

.content .pattern-details b {
    font-size: 1.2em;
}

.cover-image {
    width: 100%;
    text-align: center;
    margin: 5px 0;
}

.cover-image img {
    width: 60%;
    max-width: 474px;
    height: auto;
    border: 0;
}

.collection-image {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.collection-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
}

.instructions {
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.instructions p {
    font-size: 1.1em;
    color: #006666;
    margin: 20px 0;
    line-height: 1.6;
}

.instructions img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 0;
    margin: 20px 0;
}

.preview-list {
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.preview-list p {
    font-size: 1.1em;
    color: #006666;
    max-width: 60%;
    margin: 20px auto;
    line-height: 1.6;
}

.preview-list a {
    color: #006666;
    text-decoration: none;
    font-weight: bold;
}

.preview-list a:hover {
    text-decoration: underline;
}

.purchase-section {
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 20px;
    text-align: left;
    color: black;
}

.purchase-section .description {
    margin: 20px 10px;
    font-size: 1.1em;
    color: black;
    line-height: 1.6;
}

.paypal-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.paypal-button-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paypal-button-group form {
    text-align: center;
}

.paypal-verified {
    flex: 0 0 auto;
    text-align: center;
}

.paypal-verified img {
    max-width: 80px;
    height: auto;
    border: 0;
}

@media (max-width: 768px) {
    .main-section {
        width: 95%;
        padding: 15px;
    }

    .banner, .content, .instructions, .preview-list, .purchase-section {
        width: 95%;
        max-width: 600px;
        padding: 15px;
    }

    .banner {
        padding: 10px 15px 5px;
    }

    .content {
        padding: 10px 15px 15px;
    }

    .cover-image img {
        width: 60%;
        max-width: 360px;
    }

    .instructions img {
        max-width: 400px;
    }

    .preview-list p {
        max-width: 80%;
    }

    .paypal-buttons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .paypal-button-group, .paypal-verified {
        flex: 0 0 100%;
    }

    .paypal-verified img {
        max-width: 70px;
    }
}

@media (max-width: 500px) {
    .main-section {
        width: 100%;
        padding: 10px;
    }

    .banner, .content, .instructions, .preview-list, .purchase-section {
        width: 100%;
        padding: 10px;
    }

    .banner {
        padding: 10px 10px 5px;
    }

    .content {
        padding: 10px 10px 10px;
    }

    .content .description, .instructions p, .preview-list p, .purchase-section .description {
        font-size: 1em;
    }

    .content .pattern-details {
        font-size: 1em;
    }

    .content .pattern-details b {
        font-size: 1.1em;
    }

    .cover-image img {
        width: 85%;
        max-width: 300px;
    }

    .instructions img {
        max-width: 300px;
    }

    .preview-list p {
        max-width: 90%;
    }

    .paypal-verified img {
        max-width: 60px;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.gallery-grid.single-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .gallery-item {
        display: flex;
        justify-content: center;
    }
    .gallery-grid.single-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}