/* Fonts *******************************************************************/

@font-face {
    font-family: Colaborate;
    src: url("../fonts/colaborate.otf");
}

@font-face {
    font-family: Gaming;
    src: url("../fonts/gaming.otf");
}


/* Variables ***************************************************************/

:root {
    --site-background-color: #4ABF7A;
    --site-font-color: #005C79;
    --site-link-color: #D3FADE;
    --site-link-hover-color: #005C79;
    --gallery-summary-font-color: #D3FADE;
    --site-font-family: Colaborate, sans-serif;
    --site-title-font-family: Gaming, sans-serif;
}


/* Tags ********************************************************************/

a {
    color: var(--site-link-color);
    text-decoration: none;
}

a:hover {
    color: var(--site-link-hover-color);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}


/* Containers **************************************************************/

body {
    background-color: var(--site-background-color);
    color: var(--site-font-color);
    font-family: var(--site-font-family);
    font-size: 1.2em;
    margin: 0 auto;
    width: 66%;
}

/***** Header ***************************/

header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 30px 0 60px;
}

header h1#site-title {
    font-family: var(--site-title-font-family);
    font-size: 4em;
    font-weight: bold;
}

header nav#site-menu ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

header nav#site-menu ul li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
}

/***** Main#Home *******************/

main#home section#gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

main#home section#gallery-list article.gallery-summary {
    aspect-ratio: 4/3;
    border-radius: 7px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    color: var(--gallery-summary-font-color);
    max-width: calc(33.333% - 40px);
    overflow: hidden;
    position: relative;
}

main#home section#gallery-list article.gallery-summary a.gallery-summary-link:hover {
    color: var(--site-link-color);
}

main#home section#gallery-list article.gallery-summary div.gallery-summary-info h2.gallery-summary-title {
    font-size: 1.4em;
    line-height: 1.2;
    padding: 10px 0;
}

main#home section#gallery-list article.gallery-summary div.gallery-summary-info h2.gallery-summary-title a:hover {
    color: var(--site-link-color);
    text-decoration: underline;
}

main#home section#gallery-list article.gallery-summary div.gallery-summary-info {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    opacity: 0;
    position: absolute;
    text-align: center;
    top: 0;
    transition: opacity 0.5s ease;
    width: 100%;
}

main#home section#gallery-list article.gallery-summary div.gallery-summary-info:hover {
    opacity: 1;
}

main#home section#gallery-list article.gallery-summary img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

main#home section#gallery-list nav#gallery-list-pagination {
    margin: 40px 0 0;
    position: relative;
    text-align: center;
    width: 100%;
}

main#home section#gallery-list nav#gallery-list-pagination a.newer-galleries,
main#home section#gallery-list nav#gallery-list-pagination a.older-galleries {
    position: absolute;
}

main#home section#gallery-list nav#gallery-list-pagination a.newer-galleries {
    left: 0;
}

main#home section#gallery-list nav#gallery-list-pagination a.older-galleries {
    right: 0;
}

/***** Main#Gallery *********************/

main#gallery aside#gallery-info {
    margin: 75px auto 100px;
    text-align: center;
    width: 90%;
}

main#gallery aside#gallery-info h2#gallery-title {
    font-size: 1.7em;
}

main#gallery aside#gallery-info p {
    line-height: 1.5;
}

main#gallery aside#gallery-info span#gallery-date-place,
main#gallery aside#gallery-info span#gallery-track {
    font-size: 0.9em;
}

main#gallery aside#gallery-info span#gallery-date-place {
    display: block;
    margin: 35px 0 3px;
}

main#gallery section#gallery-images ul {
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

main#gallery section#gallery-images ul li {
    text-align: right;
}

main#gallery section#gallery-images img {
    width: 100%;
}

/***** Main#Page *********************/

main#page section#page-content article#about {
    margin: 50px auto 0;
    width: 75%;
}

main#page section#page-content div.archive-tags {
    margin: 50px 0 100px;
}

main#page section#page-content div.archive-tags ul {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

main#page section#page-content div.archive-tags ul li {
    text-align: center;
}

main#page section#page-content h2 {
    font-size: 2em;
    text-align: center;
}

main#page section#page-content p {
    line-height: 1.5;
}

/***** Main#Tag *********************/

main#tag h2 {
    font-size: 2em;
    margin: 20px 0 30px;
    text-align: center;
}

main#tag span.gallery-title {
    display: block;
    font-size: 1.5em;
}

main#tag ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

/***** Footer ***************************/

footer {
    margin: 100px 0 40px;
    text-align: center;
}
