body {
    font-family: Arial, sans-serif;
    background-color: #0F0F0F;
    color: #9A9A9A;
    margin: 0;
    padding: 0;
}

h1 {
    color: #9A9A9A;
}

.archives {
    margin-bottom: 20px;
    width: 100%;
}

.year {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 30px;
    color: #CD00AE;
}

.month {
    margin-left: 20px;
    font-size: 16px;
    padding-left: 15px;
    color: #FFB300;
}

.month a {
    color: #FFB300;
    text-decoration: none;
    font-weight: bolder;
}

.month a:hover {
    color: #AA6000;
    border: 1px solid #FFB300;
    border-radius: 5px;
    padding: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0px;
}

.grid-item {
  width: 100%;
  height: auto;          /* allow height to grow */
  perspective: 1000px;
  position: relative;
  margin-bottom: 40px;   /* space below for caption */
  overflow: visible;     /* ensure caption is visible */
}


.grid-item a {
    display: block;
    position: relative;
}

.card-container {
  width: 100%;
  height: 210px;
  transform-style: preserve-3d;
  transition: transform 2s ease;
  transform: rotateY(1080deg); /*Remove this to make slightly less fidgety?*/
  cursor: pointer;
  transform-origin: center center;
  position: relative;
  margin-bottom: 25px;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

.card-front img,
.card-back img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.card-back {
    transform: rotateY(180deg);
    top: 0;
    left: 0;
}

.grid-item:hover .card-container {
    transform: rotateY(360deg) scale(2);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.6);
	transition: transform 0.5s ease;
}

.caption {
    position: relative;
    z-index: 1; /* Stay below zoomed card */
    text-align: center;
    font-size: 14px;
    color: #9A9A9A;
    margin-top: 5px;
}

.caption a {
    color: #9A9A9A;
    text-decoration: none;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    display: block;
    position: sticky;
    top: 0;
    float: left;
    width: 200px;
    padding: 15px;
    background-color: #181818;
    overflow-y: auto;
}

.content {
    flex: 1;
    padding: 20px;
}

.header-with-return {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    margin: 0 0 1em 0;
    font-weight: normal;
    font-size: 1rem;
}

.return {
    color: #FFB300;
    display: inline-block;
}

a.return {
    color: #FFB300;
    text-decoration: none;
}

a.return:visited {
    color: #FFB300;
}

a.return:hover {
    color: #CD00AE;
    text-decoration: none;  /* ← to remove underline */
}

.header-with-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1em;
    gap: 1em;
}

.header-left,
.pagination-bar,
.return-link {
    flex: 1;
    min-width: 200px;
}

.pagination-bar {
    text-align: center;
	border: 3px solid #555555;
	border-radius: 25px;
	padding: 15px 5px 15px 5px;
}

.return-link {
    text-align: right;
}

.pagination-bar a {
    color: #FFB300;
    text-decoration: none;
    margin: 0 4px;
}

.pagination-bar a:hover {
    text-decoration: underline;
}

a.page {
	color: #FFB300;
}

a.page:hover{
	color: #FF00FF;
	border-radius: 3px;
	text-decoration: none;
}
