:root {
    --bg: #e3e3e3;
    --accent: #ffebeb;
    --gray: #ab9898;
    --green: #c9ffd8;
    --red: #ff6969;
    --yellow: #fffa94;

    --fontlogo: "Chonburi", serif;
    --mainfont: "Gupter", serif;
}

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

.fontlogo {
    font-family: var(--fontlogo);
}

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

body {
    line-height: 1.6;
    padding: 2rem;
    background-color: var(--bg);
    font-family: var(--mainfont);
    user-select: none;
}

.containerLang {
    display: flex;
    justify-content: space-between;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.logo {
    width: 100%;
    gap: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 180px;
    object-fit: cover;
}

.socials {
    gap: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.socials i {
    font-size: 30px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bioSection,
.mainSection {
    width: 100%;
    max-width: 960px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.bioSection div {
    display: flex;
    gap: 10px;
}

.biotitle {
    font-style: italic;
}

.bio,
.content {
    text-align: justify;
}

.bioSection p {
    font-style: italic;
    font-weight: 800;
    margin-top: 2rem;
}

select {
    padding: 5px 10px;
    border-radius: 10px;
}

.categories {
    width: 100%;
    max-width: 960px;
    display: flex;
    justify-content: space-evenly;
    border-radius: 5px;
    border: 1px solid black;
    margin-bottom: 2rem;
}

.cat-btn {
    font-style: italic;
    padding: 3px 10px;
    border: none;
    outline: none;
}

.cat-btn.active {
    background-color: #ffebeb;
}

.cat-btn:hover {
    background-color: #ffebeb;
    cursor: pointer;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.post-card {
    margin-bottom: 3rem;
    border-radius: 5px;
    padding: 2rem;
    border: 1px solid black;
}

.top {
    display: flex;
    justify-content: space-between;
}

.post-card h2 {
    margin: 0.5rem 0;
}

.post-card small {
    text-transform: uppercase;
    font-style: italic;
    font-weight: 800;
}

.map-link {
    font-style: italic;
}

.item-list {
    border-bottom: 1px solid black;
}

summary.see-pics-btn {
    list-style: none; /* Hides arrow in most browsers */
    cursor: pointer;
    background: var(--gray);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin: 10px 0;
    font-weight: bold;
}

summary::-webkit-details-marker {
    display: none; /* Hides arrow in Safari */
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in;
}

.img-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button {
    cursor: pointer;
    background: none;
    border: 1px solid var(--gray);
    padding: 5px 10px;
    border-radius: 4px;
}

@media (max-width: 380px) {
    .containerLang {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .bioSection div {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .categories {
        flex-wrap: wrap;
    }

    .top {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
