/* BASIC 80s/90s ZINE PORTFOLIO */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background-color: white;
    color: black;
    line-height: 1.6;
    font-size: 15.75px;
}

/* HEADER */
header {
    background-color: black;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid black;
}

header h1 {
    font-size: 2.8125em;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

header p {
    font-size: 1.0125em;
    letter-spacing: 1px;
    font-style: italic;
}

/* NAVIGATION */
nav {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-bottom: 2px solid black;
}

nav a {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: black;
    border-right: 1px solid black;
    font-weight: bold;
    font-size: 0.95625em;
    transition: 0.2s;
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    background-color: black;
    color: white;
}

/* MAIN CONTAINER */
.container {
    min-height: 100%;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    max-width: 1000px;
    margin: 0 auto;
    gap: 0;
}

/* SIDEBARS */
.sidebar {
    padding: 20px;
    border-right: 2px solid black;
    background-color: #f5f5f5;
}

.sidebar.right {
    border-right: none;
    border-left: 2px solid black;
}

.sidebar h3 {
    font-size: 1.0125em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid black;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 20px;
}

.sidebar li {
    padding: 6px 0;
    border-bottom: 1px dashed black;
    font-size: 0.95625em;
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.sidebar a:hover {
    text-decoration: underline;
}

.sidebar p {
    font-size: 0.95625em;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* MAIN CONTENT */
main {
    padding: 30px;
    background-color: white;
    border-right: 2px solid black;
}

main h2 {
    font-size: 1.4625em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 25px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid black;
}

main h2:first-child {
    margin-top: 0;
}

main p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.06875em;
}

main a {
    color: black;
    text-decoration: underline;
    font-weight: bold;
}

/* GALLERY */
.gallery-main {
    padding: 30px;
    background-color: white;
    border-right: 2px solid black;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid black;
    position: relative;
    background-color: #f5f5f5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    margin: 0;
    font-size: 0.9em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
    opacity: 1;
}

/*BLOG IMAGES*/
.blog-main {
  width: fit-content;
  height: fit-content;
}

.blog-main img {
  height: 100%;
  width: 100%;
}

/* FOOTER */
footer {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: right;
    border-top: 2px solid black;
    grid-column: 1 / -1;
    font-size: 0.95625em;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 2px solid black;
    }

    .sidebar.right {
        border-left: none;
    }

    main {
        border-right: none;
    }

    header h1 {
        font-size: 1.8em;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        border-right: none;
        border-bottom: 1px solid black;
    }

    nav a:last-child {
        border-bottom: none;
    }
}
