/*
Theme Name: PM 
Text Domain: Patrick Malara
Version: 1.3
Description: Simple
Tags: Blank
Author: Patrick Malara
Author URI: patrickmalara.com
*/


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --main-text: #333;
    --clickable-text: indianred;
}

body {
    font-family: 'Helvetica', sans-serif;
    color: var(--main-text);
    background-color: #FFF;

    margin: 2rem 15% 4rem 15%;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}


.header {
    margin-bottom: 2rem;
}

.logo {
    width: 42px;
    margin-bottom: -8px;
}

.navigation {
    display: flex;
    justify-content: end;
}

.menu {
    list-style: none;
    display: block;
}
.menu-item {
    display: inline-block;
    margin-left: 1rem;
}
.menu-item > a {
    font-weight: bold;
    text-decoration: none;
    color: var(--main-text);

    border-bottom: 4px dotted var(--clickable-text);
    transition: border 0.2s ease-in-out;
}
.menu-item > a:hover {
    border-bottom: 4px dotted black;
}

/*
 * LINKS
 * */
a { 
    color: var(--clickable-text);
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: black;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 340px, 1fr ) );
    grid-gap: 2rem;

    padding: 0px 2px; /* This is so the boxshow of the portfolio images dont extend the footer*/
}
.portfolio-item {
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.portfolio-item > img { 
    width: 100%;
    height: calc( 100% - 2rem ); /* 2 rem for the h4 */
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
}

.portfolio-item > h4 { 
    color: var(--main-text);
    text-decoration: none !important;
    border-bottom: none;
    text-align: center;

    padding: 0.5rem 0rem;
}

.post-image > img {
	object-fit: contain;
	width: 100%;
	height: auto;
}


.footer {

    position: fixed;
    bottom: 0px;
    width: 70%;

    background-color: #FFF;
    padding: 1rem 0rem;;

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-link {
    display: flex;
    align-items: center;
}
.footer-link > svg {
    margin-right: 0.5rem;
}

@media only screen and (max-width: 600px) {
  body {
    margin-left: 1rem;
	margin-right: 1rem;
  }
	
	.footer {
		position: block !important;
		width: calc( 100% - 1rem ); /* A little extra so the box shadow doesnt appear*/
	}
}
