/* ----------------------------------------------
   HTML ELEMENTS
------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #111;
  --color-secondary: #666666;
  --color-accent: #a56f38;
  --color-hover: #663333;
  --color-background: #070707;
  --color-white: #fff;
  --color-border: #dcdcdc;
  --color-blockquote: #fafafa;
  --color-nav-active: #d5d3d6;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --color-button: #828282;
  --color-button-active: #b6b6b7;
  --color-modal: #e9e5e5;

  /* Spacing */
  --space-xs: 0.5em;
  --space-sm: 1em;
  --space-md: 2em;
  --space-lg: 3em;

  /* Layout */
  --max-width: 58em;
  --header-height: 27em;
  --content-width: 70%;
  --modal-width: 70%;
  --modal-height: 50%;

  /* Typography */
  --font-primary: Georgia, "Times New Roman", Times, serif;
  --font-secondary: "Trebuchet MS", Tahoma, Arial, sans-serif;

  /* Border */
  --border-radius-sm: 0.35em;
  --border-radius-lg: 0.65em;
  --border-width: 0.15em;

  /* Effects */
  --transition-speed: 330ms;
  --shadow-modal: 0 3em 5em rgba(0, 0, 0, 0.3); /* Changed from rem */
  --blur-overlay: blur(0.25em);
}

/* Top Elements */
* {
  margin: 0;
  padding: 0;
  outline: 0;
}

body {
  font: 1em "Georgia", Lucida Grande, Geneva, Verdana, Arial, Helvetica,
    sans-serif;
  color: #666666;
  background: #070707 url(images/bg.jpg) repeat-x;
  text-align: center;
}

p {
  padding-right: 1em;
}

/* Links */
a {
  color: #a56f38;
  text-decoration: none;
}
a:hover {
  color: #663333;
  text-decoration: underline;
}
a.float-right {
}
/* Headers */
h1,
h2 {
  font: bold 1.75em "Trebuchet MS", Tahoma, Arial, Sans-serif;
  color: #111;
  padding: 1em 0em 0.2em 0.2em;
  margin: 0;
  font-size: 2em;
  font-weight: normal;
}

h3 {
  font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0.02em;  /* Add space between letters */
    line-height: 1.2;   
}
/*
h1 {
  font-size: 345%;
  font-weight: normal;
}
h2 {
  font-size: 3em;200%;
  color: #a56f38;
} */

/* ----------------------------------------------
   Images
------------------------------------------------- */
img {
  background: #fafafa;
  border: 0.15em solid #dcdcdc;
  padding: 0.35em;
  border-radius: 0.2em;
}
img.float-left {
  margin: 0.125em 0.125em 0 0.125em; /* Convert 2px to em */
}

/* ----------------------------------------------
   Videos
------------------------------------------------- */

video {
  background: #fafafa;
  border: 0.15em solid #dcdcdc;
  padding: 0.35em;
  border-radius: 0.2em;
}
video.float-left {
  margin: 0.15em 0.15em 0em 0.15em;
  object-fit: scale-down;
}

/* ------------------------------------------
   LAYOUT
------------------------------------------- */
#header-wrap {
  position: relative;
  background: #fff url(images/wrap-bg.jpg) no-repeat;
  margin: 0 auto;
  width: 58em;
  height: 27em;
  text-align: left;
}
#header-photo {
  position: absolute;
  top: 5.5em;
  left: 1.75em;
}
#header-photo img {
  border: none;
  margin: 0;
  padding: 0;
  border-radius: 0.35em;
}

/*  Navigation  */
#nav {
  position: absolute;
  left: 2em;
  top: 0em;
}

#nav ul li {
  float: left;
  display: inline;
}
#nav ul li a {
  float: left;
  margin: 0;
  padding: var(--space-sm) var(--space-xs) 0 var(--space-xs);
  font: bold 1.2em var(--font-secondary);
  text-decoration: none;
  color: var(--color-primary);
}
#nav ul li a:hover,
#nav ul li a:active {
  color: #7b2727;
  background: none;
  border: none;
}

#nav ul li#current a {
  color: var(--color-primary);
  background: var(--color-nav-active) url(images/nav-current.jpg) repeat-x;
  border-bottom: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-sm);
  opacity: 0.7;
}

#header-wrap h1#logo-text a {
  position: absolute;
  margin: 0;
  padding: 0;
  font: normal 2.5em Georgia, "Times New Roman", Times, serif;
  letter-spacing: -0.05em;
  color: #070000;
  text-decoration: none;

  /* change the values of top and left to adjust the position of the logo*/
  top: 1.7em;
  left: 0.7em;
}
#header-wrap h1#logo-text a:hover {
  background: none;
  border: none;
}
#header-wrap p#intro {
  position: absolute;
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: normal;
  font-size: 1.2em;
  line-height: 1.5em;
  font-style: italic;
  text-transform: none;
  color: #663333;
  width: 400px;

  /* change the values of top and left to adjust the position */
  top: 11.5em;
  left: 3em;
}

#content-outer {
  background: #fff;
  width: 100%;
}
#content-wrapper {
  width: 58em;
  margin: 0em auto;
  text-align: left;
}
#content {
  float: left;
  width: 96%;
  background: #fff url(images/content-bg.jpg) no-repeat;
}

.col-one {
  float: left;
  width: 58em;
  padding-left: 3em;
  width: fit-content;
  padding-bottom: 3em;
}

#content .col-one h2 {
  padding-bottom: 2em;
  font: normal 2.4em "Trebuchet MS", Tahoma, Arial, Sans-serif;
  color: #000;
  letter-spacing: -0.15em;
  text-transform: none;
  border-bottom: 0.15em solid #ebebeb;
  margin-left: 0.35em;
  padding-left: 0.35em;
}
#content .col-one h2 a {
  color: #600;
  text-decoration: none;
  background: none;
  border: none;
}
#content .col-one ul li {
  list-style-image: url(images/bullet.gif);
  margin-left: 1.5em; /* Add em-based margin */
}

/* sidebar menu */
ul.sidemenu {
  text-align: left;
  margin: 0.45em 0.35em 0.5em 0px;
  padding: 0;
  text-decoration: none;
  background: url(images/dots.gif) repeat-x left top;
}
ul.sidemenu li {
  list-style: none;
  background: url(images/dots.gif) repeat-x left bottom;
  padding: 0.4em 0.65em;
  margin: 0;
}
* html body ul.sidemenu li {
  height: 1%;
}
ul.sidemenu li a {
  text-decoration: none;
  background-image: none;
  background-color: transparent;
  border: none;
  color: #666666;
}
ul.sidemenu li a span {
  color: #989898;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 1em;
}

ul.sidemenu ul {
  margin: 0 0 0 0.35em;
  padding: 0;
}
ul.sidemenu ul li {
  background: none;
}

/* footer */
#footer-wrapper {
    width: 100%;
    background: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer {
    width: var(--max-width);
    padding: var(--space-md);
    text-align: center;
}

#footer h3 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-align: center;
}

.thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
#footer-wrapper a {
  color: #fff;
  background: transparent;
}

#footer-wrapper ul.footer-list {
  border-top: 0.0625em solid #111; /* Convert 1px to em */
}
#footer-wrapper ul.footer-list li {
  border-bottom: 0.0625em solid #111;
}
#footer-wrapper ul.footer-list li a {
  display: block;
  width: 98%;
  line-height: 2em;
  font-weight: bold;
  padding: 0.25em 0;
  border: none;
  margin-left: 0;
  padding-left: 0;
  color: #060505;
}
#footer-wrapper ul.footer-list li a span {
  color: #444;
  font-style: italic;
  font-weight: normal;
  font-family: Georgia, "Times New Roman", Times, serif;
}
#footer-wrapper ul.footer-list li a:hover,
#footer-wrapper ul.footer-list li a:hover span {
  color: #fff;
  text-decoration: none;
}

#footer {
  float: left;
  width: 100%;
  padding: 0;
  margin-left: 0.45em;
  margin-top: 0.65em;
}

#footer-bottom .bottom-left {
  float: left;
  padding-left: 0.45em;
}
#footer-bottom .bottom-right {
  text-align: right;
  padding-right: 0;
}

/* postmeta */
.postmeta {
  padding: 0.45em;
  margin: 1.25em 0.65em 1em 0.65em;
  font-size: 1em;
  color: #777;
  border: 0.0625em solid #ebebeb;
}

/* thumbnails */
p.thumbs {
    padding: var(--space-sm) 0;
    text-align: center;  /* Center the container */
    width: 100%;
    display: flex;
    justify-content: center;  /* Center flex items */
    flex-wrap: wrap;  /* Allow wrapping */
    gap: var(--space-sm);  /* Consistent spacing between items */
}

.thumbs img {
    position: relative;
    padding: var(--space-xs);
    background: var(--color-blockquote);
    border: var(--border-width) solid var(--color-border);
    margin: 0;  /* Remove margin as we're using gap */
}

.thumbs img:hover {
    border: var(--border-width) solid var(--color-button);
    background: var(--color-button);
    transform: scale(1.1);
    transition: transform var(--transition-speed) ease-in-out;
}

/* alignment classes */
.float-left {
  float: left;
}
.float-right {
  float: right;
}
.align-left {
  text-align: left;
}
.align-right {
  text-align: right;
}

/* clearing */
.clearer {
  clear: both;
}
.clear {
  display: inline-block;
}
.clear:after {
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
  content: ".";
}
/*-----------------------------------------------------------------
Summary boxes
---------------------------------------------------------------------*/
blockquote {
  margin: 0.1em 1em 1em 0em;
  padding: 0.4em 0.4em 0.4em 1.5em;
  border: 0.45em solid #e6e5e5;
  border-radius: 0.65em;
  background: #f0f0f0 0.65em 0.65em;
  font-weight: normal;
  font-size: 1em;
  line-height: 1.5em;
  font-style: italic;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #555;
  height: fit-content;
  display: flex;
}

.summary-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.summary-title {
  margin-bottom: 0.45em;
  padding: 0.65em 0.45em;
}

.summary-imgs {
  margin-right: 0.65em;
}

.email {
  float: right;
}

/*-----------------------------------------------------------------------------
Modal window
-------------------------------------------------------------------------------*/

.open-button {
  background-color: #828282; /* Green */
  border: 0.65em;
  border-color: black;
  color: white;
  padding: 0.65em 0.65em;
  margin: 0.65em 0.65em;
  text-align: center;
  font-size: 1em;
  position: relative;
  border-radius: 0.45em;
  float: right;
}

.open-button:active {
  background-color: rgb(182, 182, 183);
}

.close-button {
  background-color: #828282; /* Green */
  border: 0.65em;
  border-color: black;
  color: white;
  padding: 0.65em 0.65em;
  margin: 0.65em 0.65em;
  text-align: center;
  font-size: 1em;
  position: relative;
  border-radius: 0.45em;
  float: right;
}

.close-button:active {
  background-color: rgb(182, 182, 183);
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-speed) ease-in-out;
  height: var(--modal-height);
  width: var(--modal-width);
  background-color: var(--color-modal);
  padding: var(--space-md);
  font-size: 1em;
  text-align: left;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-modal);
  z-index: 10;
  overflow-x: hidden;
  overflow-y: auto;
  border: var(--border-width) solid var(--color-border);
}

.close-modal {
  position: fixed;
  top: 1.2em;
  right: 2em;
  font-size: 2.5em;
  color: var(--color-primary);
  cursor: pointer;
  border: none;
  background: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  backdrop-filter: var(--blur-overlay);
  z-index: 5;
}
