/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
/*
body {
    line-height: 1;
}
*/
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 20px; /* Add some margin around the page */
}

h1 {
    color: navy; /* Navy blue for titles */
    text-align: center;
    margin-bottom: 20px;
}

body p:first-of-type {
    color: navy;
    font-weight: bold;
}

#gallery.masonry-grid {
    column-count: 3;
    column-gap: 10px;
}

.div-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border: 1px solid lightgray; /* Add a light border */
    border-radius: 8px; /* Add rounded corners */
    overflow: hidden; /* Prevent content overflow */
}

.div-item img,
.div-item video {
    width: 100%;
    height: auto;
    display: block;
}

.description {
    padding: 10px;
    font-size: 0.9em;
    color: #555;
    background-color: rgba(255, 255, 205, 0.9);
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.pdf-icon {
    width: 100%;
    height: auto;
    display: block;
}

.div-item video {
    max-height: 200px;
    object-fit: contain;
}

/* Tag Styles */
.tags {
  text-align: center;
  padding: 5px;
  margin-bottom: 10px;
}

.tag, .tag-chip { 
    background-color: lightblue;
    color: navy;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 0.8em;
    cursor: pointer; 
    display: inline-block;
}

/* Date Marker Styles */
.date-marker {
  text-align: center;
  padding: 5px;
  background-color: rgba(240, 240, 240, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #gallery.masonry-grid {
        column-count: 2;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #gallery.masonry-grid {
        column-count: 1;
        margin-top: 20px;
    }
}