@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-optical-sizing: auto;
    font-size: 16px;
    margin: 0;
    background-color: black;
    color: white;
}

section {
    min-height: 100vh;
}

h1, h2 {
    font-family: "EB Garamond", serif;
    font-weight: 400;
}

p {
    font-family: "Inter", sans-serif;
    font-weight: 300;
}

a {
    font-family: "Inter", sans-serif;
    font-weight: 200;
    font-size: 14px;
    text-decoration: none;
    color: white;
}

#title {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#title h1 {
    font-size: 5rem;
}

/* #header {
    background-image: linear-gradient(to top, rgb(0, 0, 0, 0.7), rgba(0, 0, 0, 0)), url("images/rak_2019_0.JPG");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
} */

#header {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header-bg {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgb(0, 0, 0, 0.7), rgba(0, 0, 0, 0)), url("images/rak_2019_0.JPG");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

#header-content {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 2;
    transition: opacity 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100vh;
    margin-top: 50px;
}

.button {
    min-height: 50px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px 0 30px;
    background-color: white;
    color: black;
    border-radius: 50px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.button:hover {
    opacity: 1;
}

.headnote {
    width: 97vw;
    position: absolute;
    z-index: 4;
    top: 5px;
    display: flex;
    align-content: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footnote {
    width: 97vw;
    position: absolute;
    z-index: 4;
    bottom: 5px;
    display: flex;
    align-content: center;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: 0.5s;
}

#footnote-location, #footnote-year {
    transition: 0.25s;
}

.sidebar {
    height: 90px;
    position: absolute;
    z-index: 4;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sidebar .dot {
    color: white;
    font-size: 15px;
    opacity: 0.5;
    transition: opacity 0.3s;
    cursor: pointer;
}

.sidebar .dot-active, .sidebar .dot:hover {
    opacity: 1;
}

.footnote, .headnote p {
    font-size: 12px;
    font-weight: 200;
    color: rgb(255, 255, 255, 0.5);
}

#gallery h1 {
    font-size: 4rem;
    margin: 0;
}

#gallery h2 {
    font-size: 20px;
}

#gallery {
    min-height: 100vh;
}

#gallery .wrapper {
    min-height: 30vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gallery-header {
    margin-top: 100px;
    width: 50vw;
}

#gallery-filter {
    width: 100%;
}

#filter-year, #filter-country {
    margin-left: auto;
    margin-right: auto;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#filter-year {
    width: 40vw;
}

#filter-country {
    width: 80vw;
}

.badge {
    background-color: white;
    color: black;
    border-radius: 30px;
    opacity: 0.5;
    transition: opacity 0.3s;
    cursor: pointer;
}

#filter-year .badge {
    width: 50px;
    padding: 2px 0 2px 0;
}

#filter-country .badge {
    padding: 2px 12px 2px 12px;
}

.badge-active, .badge:hover {
    opacity: 1;
}

#photo-grid {
    margin-top: 20px;
    overflow: hidden;
    display: grid;
    justify-items: center;
    padding-top: 50px;
}

#photo-grid-wrapper {
    opacity: 1;
    transition: opacity 0.3s;
}

.row {
    /* margin: 20px; */
    width: 90vw;
    height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.block {
    width: 30vw;
    height: 70vh;
    /* background-color: palegoldenrod; */
    /* border: solid black; */
    display: grid;
    justify-content: center;
    justify-items: center;
}

.card {
    width: 27vw;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.card-bg {
    width: 100%;
    height: 100%;
    /* background-color: olivedrab; */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.card-overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 2;
    background-color: black;
    /* background-image: linear-gradient(to top,rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%); */
    opacity: 0.2;
    transition: opacity 0.3s;
}

.card-info {
    text-align: center;
    position: absolute;
    z-index: 3;
    max-width: 90%;
    opacity: 1;
    transition: opacity 0.3s;
    color: white;
}

.card-footnote {
    width: 95%;
    position: absolute;
    z-index: 4;
    bottom: 0px;
    display: flex;
    align-content: center;
    justify-content: space-between;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-footnote p {
    font-size: 12px;
    font-weight: 300;
    color: white;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 5;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.75);
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 750px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Caption of Modal Image */
#modal-caption {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 12px;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

#about h1 {
    font-size: 4rem;
}

#about h2 {
    font-size: 20px;
}

#about {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-vid-wrapper {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    overflow: hidden;
}

#about-vid {
    position: relative;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    width: auto;
    overflow: hidden;
}

#about .wrapper {
    width: 50vw;
}

#about h1 {
    font-size: 4rem;
}

#about-wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 2;
    transition: opacity 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-footnote {
    width: 97vw;
    position: absolute;
    z-index: 4;
    bottom: 20px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    transition: 0.5s;
}

.end-footnote a, .end-footnote p {
    font-size: 14px;
    font-weight: 200;
    color: rgb(255, 255, 255);
    opacity: 0.5;
    transition: 0.3s;
}

.end-footnote a:hover {
    opacity: 1;
}