/* ==========================================================================
   FONTS
   ========================================================================== */

@font-face {
    font-family: 'Liberation Sans';
    src: url('../assets/LiberationSans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FreeMono';
    src: url('../assets/FreeMono.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */

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

html {
    overflow-y: scroll;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --page-gutter: 1rem;
    --page-gutter-desktop: 3.5rem;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-family: "Liberation Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #101010;
    line-height: 1.5;
    font-size: 1.1rem;
/*    letter-spacing: 0.026em;*/
    padding: 6.25rem var(--page-gutter) 3.75rem;
}

body p {
    letter-spacing: 0.026em;
}

body a {
    transition: opacity 0.3s ease;
}

body a:not(.nav-icon):hover {
    opacity: 0.9;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

a {
    color: inherit;
    text-decoration: none;
}

u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-name {
    font-weight: normal;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 2rem;
    inset-inline-start: var(--page-gutter);
    inset-inline-end: var(--page-gutter);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    --header-title-size: 4rem;
    --header-line-height: 1.1;
}

.site-header h1 {
    font-family: "Pirata One", system-ui;
    font-weight: 400;
    font-size: var(--header-title-size);
    line-height: var(--header-line-height);
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    cursor: pointer;
}

.nav-icon img {
    display: block;
    width: auto;
    height: 80px;
}

.nav-icon:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

/* Gallery Description */
.gallery-description {    
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Manifesto Section */
.manifesto {
    text-align: center;
    margin-bottom: 120px;
}

/* Friends Section */
.friends {
    text-align: center;
    margin-top: 3.75rem;
}

/* History Section */
.history {
    text-align: justify;      /* keeps lines justified */
    max-width: 70ch;          /* readable line length */
    margin: 5rem auto 0;   /* centers the block horizontally */
    padding-inline: 1rem;     /* side space on small screens */
}

/* ==========================================================================
   MEMBERS GRID
   ========================================================================== */

.members-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.7rem;
    margin-bottom: 6.25rem;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* Member Card */
.member-card {
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 25px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.member-card:hover .image-wrapper img {
    opacity: 0.9;
}

.member-info {
    text-align: center;
    transition: opacity 0.3s ease;
}

.member-card:hover .member-info {
    opacity: 0.85;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */

#arena-gallery {
    padding-top: 5rem;
/*    display: grid;*/
/*    grid-template-columns: repeat(4, 1fr);*/
/*    gap: var(--page-gutter-desktop);*/
/*    align-items: end;*/
/*    max-width: 100%;*/
/*    margin: 0 auto;*/
/*    padding: 1rem 0;*/
}
#arena-gallery a {
/*    display: inline-block;*/
}
#arena-gallery img {
    height: 60vh;
}
.tns-controls {
	text-align: center;
	margin-top: 20px;
}
.tns-controls [aria-controls] {
	font-size: 15px;
	margin: 0 5px;
	padding: 0 1em;
	height: 2.5em;
	color: #fff;
	background: #181818;
	border-radius: 3px;
	border: 0;
}

/* ==========================================================================
   IMAGE PROTECTION
   ========================================================================== */

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    font-family: 'FreeMono', 'Courier New', monospace;
    text-align: center;
    margin-top: 4rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #999;
    opacity: 0;
    animation: fadeIn 0.5s ease 2s forwards;
}

.site-footer a:hover {
    opacity: 1;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Desktop: 751px and up */
@media (min-width: 751px) {
    body {
        padding-left: var(--page-gutter-desktop);
        padding-right: var(--page-gutter-desktop);
    }
    
    .site-header {
        inset-inline-start: var(--page-gutter-desktop);
        inset-inline-end: var(--page-gutter-desktop);
    }
}

/* Tablets: 768px and up */
@media (min-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.7rem;
        row-gap: 80px;
    }
}

/* Large Screens: up to 1700px */
@media (max-width: 1700px) {
    #arena-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Screens: up to 1200px */
@media (max-width: 1200px) {
    #arena-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: up to 750px */
@media (max-width: 750px) {
    body {
        font-size: 0.9rem;
    }
    
    .site-header {
/*        --header-title-size: 1.5rem;*/
    }
    
    .gallery-description {
        font-size: 0.9rem;
    }
    
    .site-footer {
        font-size: 0.8rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    #arena-gallery {
        grid-template-columns: 1fr;
        gap: var(--page-gutter);
    }
}
