:root {
    --main-color: #00D1AE;
    --darker-color: #02b99b;
}

body {
    font-family: SilkScreen, Quicksand, sans-serif;
    font-size: 16px;
    font-weight: 400;
    max-width: 100vw;
    width: 100%;
    color: #eee;
    background-color: rgb(20, 29, 37);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 10px 2.5%;
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
    margin-bottom: 20px;
    background-color: #00000083;
}

header h1 {
    user-select: none;
}

header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

h1 {
    font-size: 2em;
}

/* ----------------- */
/*   Links/Buttons   */
/* ----------------- */
a {
    text-decoration: none;
    transition: all 0.2s;
    transition-timing-function: steps(4, jump-end);
}

a:link, a:visited {
    color: var(--main-color);
}

a:hover, a:active {
    color: var(--darker-color);
}

a.btn {
    padding: 10px 20px;
    /* border-radius: 3px; */
    background-color: var(--main-color);
    color: white;
    font-weight: 400;
    display: inline-block;
}

a.btn:hover {
    transform: scale(1.02);
    color: #333;
}

main.home {
    max-width: 95%;
}

.photos {
    display: grid;
    max-width: 1600px;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    margin-bottom: 30px;
}

.photos img {
    transition: transform 0.5s;
    /* transition-timing-function: steps(8, jump-end); */
    box-shadow: 3px 3px 4px -2px rgba(0,0,0,1);
    /* box-shadow: 3px 3px 4px -2px rgba(0,0,0,1); */
    border-radius: 0px;
}

.photos img:focus {
    transform: scale(1.03);
    border-radius: 0px;
    outline: 3px solid white;
}

.photos img:hover {
    transform: scale(1.03);
    border-radius: 0px;
    outline: 3px solid var(--main-color);
}


.photos img:active {
    filter: brightness(80%);
    outline: 3px solid var(--darker-color);
    /* transform: scale(1.00); */
}

section.popup {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(47, 47, 47, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo_popup {
    max-width: 1100px;
    min-height: 400px;
    /* padding: 15px 30px; */
    background-color: rgba(0, 0, 0, 0.794);
    display: grid;
    /* gap: 30px; */
    align-items: center;
    grid-template-columns: 2fr 1fr;
    /* transition-timing-function: steps(8, jump-end); */
}

#photo_popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo_info h2 {
    font-size: 2em;
    line-height: 1;
    margin-bottom: 10px;
}

.photo_info {
    height: 100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.photo_text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo_info .buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.photo_info .buttons button {
    width: 100%;
}

button {
    transition: all 0.2s;
    transition-timing-function: steps(4, jump-end);
    /* border-radius: 4px; */
    background-color: var(--main-color);
    color: white;
    border-color: var(--main-color);
    border-style: solid;
    /* border: 2px solid var(--main-color); */
    /* margin-right: 10px; */
    padding: 10px 20px;
    font-weight: 400;
    box-shadow: 3px 3px 0px 0px transparent;
}

button:hover {
    background-color: var(--darker-color);
    /* border: 2px solid var(--darker-color); */
    border: 2px solid white;
    z-index: 1;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px 0px white;
}

button.ghost {
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: white;
}

button.ghost:hover {
    /* background-color: var(--darker-color); */
    box-shadow: 3px 3px 0px 0px var(--main-color);
    color: var(--main-color);
}

.photo_placeholder {
    border-radius: 4px;
    background-color: rgb(255, 255, 255);
    color: #333;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.photo_placeholder:hover {
    transform: scale(1.02);
}

.hide {
    display: none !important;
}

footer {
    display: flex;
    flex-direction: column;
    background-color: #0E141B;
    width: 100%;
    padding: 30px;
    align-items: center;
}