:root {
  --font-head: herculanum;
  --font-body: Garamond;
  --font-mono: monospace;

  --page-width: 1500px;
  --page-margin: 30px;
  --columns: 3;
  --gutter: 10px;
  --sidebar-width: 325px;

  --text: hsl(54, 0%, 70%);
  --primary: #11091c;
  --accent: hsl(38, 0.9em, 9%);
  --bg-page: #ffcdb2;;
  --bg-content: #ffcdb2;;
  --bg-accent: hsl(40, 0%, 23%);

  --grid-item: 100%;
}
@media (min-width: 1100px) {
  :root {
    --grid-item: calc(
      (99.9% / var(--columns)) - (var(--gutter) * (var(--columns) - 1)) /
        var(--columns)
    );
  }
}

:target {
  scroll-margin-block: 2ex;
}

html {
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  scrollbar-color: var(--bg-accent) var(--bg-page);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1em;
  line-height: 1.3;
}

html,
body {
  overflow: visible;
}

main {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 0px;
  margin-block: var(--page-margin);
}

main-divider {
  display: grid;
  gap: var(--gutter);
  align-items: start;
}
@media (min-width: 700px) {
  main-divider {
    grid-template-columns: var(--sidebar-width) auto;
  }
}

.gallery li {
  margin-bottom: var(--gutter);
}

hgroup {
  background-color: var(--bg-content);
  border: 1px solid var(--bg-accent);
  padding-inline: 26px;
  padding-block: 26px;
  scrollbar-color: var(--bg-accent) var(--bg-content);
  overflow-y: auto;
  max-height: 500px;
}
@media (min-width: 700px) {
  hgroup {
    max-height: calc(100svh - 2 * var(--page-margin));
    position: sticky;
    top: var(--page-margin);
    align-self: start;
  }
}

p {
  margin-block: 0.6rem;
  &:first-child {
    margin-top: 0;
  }
  &:last-child {
    margin-bottom: 0;
  }
}

b,
strong {
  font-weight: bold;
}
i,
em {
  font-style: italic;
}

a:not(a[data-img]) {
  color: var(--primary);
  text-decoration: underline dotted 1px;
  text-underline-offset: 3px;
  transition-property: color, box-shadow, text-decoration-color;
  transition-duration: 150ms;

  *:hover,
  *:focus {
    color: var(--text);
    text-decoration-color: var(--text);
    text-decoration-style: solid;
  }
  *:focus {
    outline: 1px dashed var(--primary);
    outline-offset: 1px;
  }
}

code {
  color: var(--code-text);
  border: 1px solid var(--bg-accent);
  border-radius: 2px;
  padding-inline: 2px;
  padding-block: 1px;
  font-family: var(--font-mono);
}

.filters {
  display: grid;
  gap: 10px;
}

.button-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.button {
  cursor: pointer;
  background: none;
  border: none;
  border: 1px solid var(--bg-accent);
  border-radius: 2px;
  color: var(--color);
  padding: 4px 8px;
  background-color: var(--accent);
  transition-property: color, background-color, text-decoration-color;
  transition-duration: 150ms;

  &:hover {
    color: var(--primary);
    border-style: solid;
    border-color: var(--primary);
  }
  &.is-checked {
    color: var(--bg-content);
    background-color: var(--primary);
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--primary);
}

h1 {
  font-size: 3em;
  margin-bottom: 1rem;
  line-height: 0.9;
}

img {
  display: block;
  object-fit: cover;
}

.entry {
  border: 1px solid var(--bg-accent);
}

.caption {
  padding: 12px 16px;
  padding-top: 10px;
  background-color: var(--bg-content);
}

figcaption {
  border-top: 1px dotted var(--bg-accent);
}

hr {
  border: none;
  border-top: 1px dotted var(--primary);
  margin-block: 16px;
}

details {
  margin-block: 12px;
  border: 1px solid var(--bg-accent);
  ul:not(.filters),
  ol {
    list-style-type: decimal;
    margin-left: 22px;
  }
  ol {
    margin-top: 6px;
    margin-bottom: 2px;
  }
  summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: bold;
    padding: 4px 8px;
    background-color: var(--accent);
    transition-property: background-color, color, text-decoration-color,
      border-color;
    transition-duration: 150ms;
    &:hover {
      color: var(--text);
    }
  }
  details-content {
    padding: 10px;
    display: block;
  }
  &[open] {
    margin-bottom: 8px;
    summary {
      background-color: var(--primary);
      color: var(--bg-content);
      border-bottom: 1px solid var(--bg-accent);
    }
  }
}

.grid-item,
.grid-sizer {
  width: var(--grid-item);
}

.gutter-sizer {
  width: var(--gutter);
}

.responsive {
  width: 100%;
  height: auto;
}

html.bp-lock {
  overflow-y: visible;
} 



/* CSS TRANSFER */
   @font-face {
				font-family: 'herculanum';
				src: url('font_folder/herculanumltproroman-webfont.woff2') format('woff2'),
				url('font_folder/herculanumltproroman-webfont.woff') format('woff'),
				url('font_folder/herculanumltproroman.ttf') format('truetype'),
				url('font_folder/herculanumltproroman.otf') format('opentype');
				font-weight: normal;
				font-style: normal;
			}
	
        body {
				font-family: garamond; serif;
                margin: 0;
                background-color: #ffcdb2;
                /* you can delete the line below if you'd prefer to not use an image */
                background-size: 65px;
                color: #0d1b2a;
                background-image: url('images/gallerybg.jpg');
				background-size: 50%;
				background-repeat: repeat;
				cursor: url('images/cursor.webp'), auto;
            }

             #navbar a, #topBar {
				font-family: 'herculanum';
           }


            * {
                box-sizing: border-box;
            }

#topBar {
                width: 100%;
                height: 30px;
                padding: 10px;
                font-size: smaller;
                background-color: #6d6875;
				color: #ffffff;
            }

 #container {
                max-width: 80%;
                /* this is the width of your layout! */
                /* if you change the above value, scroll to the bottom
      and change the media query according to the comment! */
                margin: 0 auto;
                /* this centers the entire page */
            }

            /* the area below is for all links on your page
    EXCEPT for the navigation */
            #container a {
                color: #0a5fc9;
                font-weight: bold;
				text-decoration:none;
                /* if you want to remove the underline
      you can add a line below here that says:
      text-decoration:none; */
            }

 #header {
                width: 100%;
                background-color: #5e4e8c;
                /* header color here! */
                height: 150px;
                /* this is only for a background image! */
                /* if you want to put images IN the header, 
      you can add them directly to the <div id="header"></div> element! */
                background-image: url('images/header2.webp');
                background-size: cover;
            }

 /* navigation section!! */
            #navbar {
                height: 40px;
                background-color: #6d6875;
                /* navbar color */
                width: 100%;
				border: 2px solid #11091c;
				border-radius: 5px;
				margin-top: 0px;
				margin-bottom: 0px;
            }

            #navbar ul {
                display: flex;
                padding: 0;
                margin: 0;
                list-style-type: none;
                justify-content: space-evenly;
            }

            #navbar li {
                padding-top: 10px;
            }

            /* navigation links*/
            #navbar li a {
                color: #fc9599;
                /* navbar text color */
                font-weight: 800;
                text-decoration: none;
                /* this removes the underline */
            }

            /* navigation link when a link is hovered over */
            #navbar li a:hover {
                color: #ff4f56;
                text-decoration: none;
            }

            #flex {
                display: flex;
            }

            #container > main > main-divider > hgroup {
              background-color: #6d6875;
              border: 2px solid #11091c;
            }

            #container > main > main-divider > hgroup > h1 {
              color: #fc9599;
            }

            