/* Doing CSS like the early 2000 */

body {
    font-family: Verdana, Tahoma, sans-serif;
    background-color: #F6F6F6;
    max-width: 800px;
    margin: auto;
}

body article {
    padding: 0 5%;
    line-height: 1.6;
}

body article a {
    color: #3D3D3D;
}

body article a:visited {
    color: #6A6A6A;
}   

main {
    border : 5px solid black;
    border-radius: 10px;
}

main p.pagination {
    text-align: center;
}

main p.pagination a {
    text-transform: uppercase;
    color: #111122;
    text-decoration: none;
}

.page-header {
    border: 5px solid black;
    border-radius: 10px;

}

.headerlogo {
    float: left;
}

.topnav {
    padding: 5px 50px;
    background-color: #0C5678;
}

.topnav a {
    color: aliceblue;
    background-color: #0C5678;
    padding: 5px 10px;
    border-width: 5px;
    border-color: black;
}

.topnav a:hover {
    background-color: #2f647c;
}

.breadcrumbs
{
    padding: 5px 25px;
    font-weight: bold;
}

.gallery-grid img{
    width: 44%;
    display:inline;
}

.subfolder-list {
    
    list-style-type: none;
    border-radius: 10px;
}

ul.postlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.postlist a {
    color: #111122;
}

.postlist a:hover {
    text-decoration: underline;
    color: #5A5A5A;
}

.postlist a:visited {
    color: #635A5A;
}

.postlist a:visited:hover {
    color: #857c7c;
}

blockquote {
    font-size: 0.8em;
    background-color: rgb(224, 224, 224);
    padding: 1px 10px;
    border-left: 4px solid black;
}

#tag {
    background-color: rgb(224, 224, 224);
    margin: 10px 0px;
    padding: 2px 10px;
    border-left: 4px solid black;
}

#tag p {
    margin: 5px;
    font-style: italic;
}

@keyframes hacking {
    0%  {visibility: visible;}
    50%  {visibility: hidden;}
    100%  {visibility: hidden;}
}

h1::after {
    content: " _";
    animation-name: hacking;
    animation-duration: 1s;
    animation-delay: 2s;
    animation-iteration-count: infinite;
}

pre {
    background-color: gainsboro;
}

code {
    background-color: gainsboro;
}

.page-footer {
    float: right;
}

/* Gallery Styles for a Premium Look */
/* ================================= */
.gallery-grid {
  display: grid;
  /* Adjust 200px to make your thumbnails larger or smaller */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1; /* Makes every item a perfect square */
  overflow: hidden;
  border-radius: 8px;
  background: #222; /* Placeholder color while loading */
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops the image to fill the square without stretching */
  display: block;
}

/* Hover Effects to make it feel "Premium" */
.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.meta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: bold;
  text-align: center;
}

.gallery-item:hover .meta-overlay {
  opacity: 1;
}

.back-link {
    margin-left: 25px;
}
.single_image ul li {
    list-style-type: none;
    font-size: 80%;
}

.uploaded-date {
    font-size: 80%;
    text-align: center;
    color: #555555;
    margin-top: 10px;
}