.page-container {
    width: 85%;
}

@media screen and (max-width: 52rem) {
    .page-container {
        width: 100%;
    }
}

.top-two-columns {
	margin: 3rem 0;
    display: grid;
    grid-template-columns: .05fr 1fr .7fr .25fr;
    gap: 4rem;
}

.product-images-box {
    grid-column: 2;
}

.product-main-info-box {
    grid-column: 3;
}

h1.product-name {
    margin-top: -0.8rem;
}

@media screen and (max-width: 110rem) {
    .top-two-columns {
        grid-template-columns: 1fr 1fr;
    }

    .product-images-box {
        grid-column: 1;
    }

    .product-main-info-box {
        grid-column: 2;
    }
}

@media screen and (max-width: 70rem) {
    .top-two-columns {
        grid-template-columns: auto;
        gap: 1rem;
        margin-top: 1.2rem;
    }

    .product-main-info-box {
        grid-column: 1;
    }

    h1.product-name {
        margin-top: 0;
    }

    .thumbnail-box {
        margin: 0 auto;
        justify-content: center;
    }
}

.product-images-box {
}

#product-image {
    width: 90%;
    height: auto;
    border: 6px solid black;
    margin-left: 6px;
    box-sizing: border-box;
}

@media screen and (max-width: 70rem) {
    #product-image {
        margin: 0.5rem auto;
        display: block;
    }
}

.thumbnail-box {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
}

.thumbnail {
    background-color: #fff;
    border: 2px solid black;
    margin: 0.5em;
    padding: 0;
    height: 6rem;
    cursor: pointer;
}

.thumbnail img {
    height: 100%;
}

#thumbnail-selected {
    border: 2px solid #09c;
    outline: 1px solid #09c;
}

.thumbnail:hover {
	box-shadow: 4px 4px var(--hover-shadow-color);
}

.thumbnail:active:hover {
	box-shadow: 4px 4px var(--click-shadow-color);
}

.product-main-info-box {
    text-align: left;
}

.product-name {
    font-family: "Barlow Condensed";
    font-size: 3.8rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.15em;
    text-wrap: balance;
}

.product-id {
    font-family: NotoSansMono;
    margin: 0;
    margin-bottom: 1.8em;
}

.brief-desc {
    font-size: 1.25rem;
    margin: 0.7em 0;
}

.long-description {
    white-space: pre-wrap;
    font-size: 1.25rem;
}

.price {
    font-family: Roboto Condensed;
    font-size: 2.8rem;
    font-weight: 600;
    text-align: left;
    margin: 0;
}

.etsy-button {
    display: block;
    margin-top: 1rem;
    width: max-content;
    background-color: #f06520;
    font-family: NotoSansMono;
    font-size: 1.2rem;
    color: #fff;
    padding: 0.8rem 2.2rem;
    text-decoration: none;
    border: 3px solid #a04005;
}

.etsy-button:hover {
	box-shadow: 4px 4px #803503;
}

.etsy-button:active {
    color: #fff;
}

.etsy-button:active:hover {
	box-shadow: 4px 4px #602201;
    color: #ddd;
}

.body-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media screen and (max-width: 70rem) {
    .body-two-columns {
        grid-template-columns: auto;
        gap: 1rem;
    }
}

.body-description-box, .body-resources-box {
    background-color: #dee6;
    padding: 0.5rem 2rem;
}

@media screen and (max-width: 52rem) {
    .page-container {
        padding: 1rem 0.5rem;
    }

    .product-main-info-box, .body-description-box, .body-resources-box {
        padding: 0 1rem;
    }

    .thumbnail {
        height: 5rem;
    }
}

.attachment {
    display: flex;
    text-decoration: none;
    width: max-content;

    color: var(--link-color);

    font-family: "Barlow Condensed";
    font-size: 2rem;
    text-decoration: underline 7%;
}

@media screen and (max-width: 40rem)  {
    .attachment {
        font-size: 1.5rem;
    }
}


.attachment:hover:has(:hover) {
    filter: brightness(130%);
}

.attachment:active:hover:has(:hover) {
    filter: brightness(80%);
}

.attachment img {
    display: block;
}

.attachment a:has(span) {
    margin: auto;
}

.attachment span {
    margin: auto 0.6em;
    margin-right: 0;
}
