html {
  background-color: rgba(255,235,225);
  background-attachment: fixed;
  background-position: center;
}

body {
  margin: 1rem auto;
  padding: 20px;
  font-family: monospace;
  font-size: 12pt;
  line-height: 1.5;
  color: rgba(0,0,0);
  text-align: justify;
  max-width: 80ch;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  padding: 1rem 0;
}

mark {
  background-color: #FDFCCA;
}

header {
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0 1rem;
}

aside {
  font-size: 1rem;
  text-align: left;
}

.flag-img {
  float: right;
  width: 6ch;
  max-width: 15%;
  margin: 0 0 1rem 1rem;
}

.post-list {
  font-size: 1rem;
  text-align: left;
}

.post-list > div {
  margin-bottom: 0;
}

.mobile {
  display: none;
}

@media (max-width: 600px) {
  .desktop { display: none; }
  .mobile { display: inline; }
}

a {
  text-decoration: none;
  color: rgb(51,51,153);
}

a:hover { 
  text-decoration: underline;
}

td, th {
  border: 2px solid #999;
  padding: 10px;
}

p {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.home-btn {
   color: grey;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.gallery-item {
    display: block;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.gallery-item:hover img {
    opacity: 0.7;
}

.view-full {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    cursor: pointer;
}

.view-full img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.view-full-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 101;
}

.view-full-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    z-index: 101;
    user-select: none;
}

.view-full-prev { left: 0; }
.view-full-next { right: 0; }

.view-full-nav:hover {
    background: rgba(255,255,255,0.1);
}

.view-full-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #aaa;
    font-size: 0.9rem;
    z-index: 101;
    pointer-events: none;
}
@media (max-width: 600px) {
    .gallery {
        gap: 8px;
    }
}


