/* Page background and base elements */
body {
    background-image: url('./images/sgi.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: "Libertinus Mono", monospace;
}

hr {
    size: 1;
    width: 100%;
    max-width: 800px;
}

p {
    margin: 0;
    padding: 0;
}

/* Page layout */
.main_div {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: white;
    display: flex;
    align-items: stretch;
    gap: 0px;
    width: calc(100% + 24px);
    max-width: 824px;
    margin-top: 8px;
}

.banner,
.release_container {
    max-width: 800px;
    background-color: white;
}

.release_container {
    padding: 12px;
    width: 100%;
}

.banner h1 {
    margin: 0;
}

.banner {
    flex: 1;
    min-width: 0;
    padding-top: 12px;
    white-space: nowrap;
    font-size: clamp(0.5rem, 2.9vw, 1rem);
}

.logo {
    background-color: white;
    box-sizing: border-box;
    flex: none;
    width: 124px;
    height: 124px;
    align-self: flex-start;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo img {
    display: block;
    box-sizing: border-box;
    width: 124px;
    height: 124px;
    border: none;
    object-fit: contain;
}

.footer {
    width: 100%;
    max-width: 800px;
    background-color: white;
    padding: 12px;
}

/* Homepage */
.home-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 240px);
}

.home-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 260px);
}

.home-shop {
    text-align: center;
}

/* Catalog table */
.catalog_table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    width: 100%;
}

.catalog_table tbody,
.catalog_table tr {
    display: contents;
}

.catalog_table td {
    border: 1px solid black;
}

.catalog_table th {
    text-align: left;
}

.catalog_table td,
.catalog_table th {
    margin: 4px;
    padding: 12px;
    vertical-align: top;
}

@media (max-width: 560px) {
    .catalog_table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Shows table */
.shows_table {
    width: 100%;
}

.shows_table th,
.shows_table td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

.shows_table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Release artwork and previews */
.cover_image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 12px;
    max-width: 400px;
    max-height: 400px;
    object-fit: cover;
}

.cover_preview,
.product_preview {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.cover_preview {
    object-fit: contain;
}

.product_preview {
    object-fit: cover;
    opacity: 0;
    transition: opacity 180ms ease;
}

.cover_image:hover .product_preview {
    opacity: 1;
}

/* Release details */
.release_info {
    width: 100%;
    text-align: left;
}

.release_link {
    text-decoration: none;
    color: inherit;
}

.artist {
    font-weight: bold;
    font-style: normal;
}

.inline_heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inline_heading > img.cover_image {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: auto;
}

.title {
    font-weight: normal;
    font-style: italic;
}

.description {
    min-height: 2.5em;
}

.catalog {
    flex: none;
    text-align: right;
}

.price {
    border: 1px solid black;
    padding: 4px;
    font-weight: bold;
}
