/* Feel free to use, modify, and distribute this
 * style sheet however you'd like. For as simple
 * as it is, it took six redesigns to arrive here,
 * so I hope you appreciate it! 
 *
 * There's definitely some minor things I can
 * clean up, but I'll save that for a boring
 * rainy day. 
 *
 * Big thanks to Claude for sorting most the mess. */


/* Fonts */
/* At one point I was staunchly opposed to loading
 * custom typefaces. I hope you don't mind. */
@font-face {
 font-family: 'garamond-local';
 src: url('media/garamond.ttf') format('truetype');
 font-weight: normal;
 font-style: normal;
}

@font-face {
 font-family: 'vorname';
 src: url('media/vorname.ttf') format('truetype');
 font-weight: normal;
 font-style: normal;
}

/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p + p {
 margin-top: 20px;
}

body { 
  background-color: #ffeee8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}


/* Desktop container */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'garamond-local', sans-serif;
}

/* Contents section with border */
.contents {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
}

/* Header section */
.header {
  display: flex;
  gap: 15px;
  border: 2px solid #000;
  padding: 10px;
  margin-bottom: 15px;
  height: 125px;
  align-items: center;
  line-height: 1;
}

/* Home section */
.home {
  min-width: 100px;
  height: 100%;
  border: 2px solid #000;
  padding: 10px;
  background: linear-gradient(to bottom right, #ff0000, #0000ff);
  color: white;
  font-family: 'vorname', sans-serif;
  text-align: center;
  font-size: 30pt;
}

.home a {
 color: white;
 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
 text-decoration: none;
}

.home a:hover {
 background: #ff0044;
 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.0);
 text-decoration: none;
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 transition: all 1s ease;
}

/* Menu section */
.menu {
  flex: 1;
  border: 2px solid #000;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  row-gap: 10px;
  height: 100%;
  box-sizing: border-box;
}

.menu a {
 color: #333;
 text-decoration: none;
 padding: 5px 10px;
 margin-right: 10px;
}

.menu a:hover {
 background: linear-gradient(to bottom right, #ff0000, #0000ff);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 transition: all 1s ease;
}

/* Title section */
.title {
 display: flex;
 justify-content: space-between;
 align-items: stretch;
 padding: 20px;
 margin-bottom: 20px;
}

.title-text {
 width: 25%;
 font-size: 20pt;
 line-height: 1.2;
 border-bottom: 2px solid black;
}

.title-image { 
 width: 50%;
 display: flex;
 align-items: center;
}

.title-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

/* Article section */
.article {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  font-size: 14pt;
  line-height: 1.4;
}

.article a {
 color: #555555;
 text-decoration: underline;
}

.article a:hover {
 background: linear-gradient(to bottom right, #ff0000, #0000ff);
 text-decoration: underline;
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 transition: all 1s ease;
}

.article img{
  width: 30%;
  margin: 0 0 15px 15px;
}

.article img[style*="align-items: left"] {
  float: left;
  margin: 0 15px 15px 0;
}

.article img[style*="align-items: right"] {
  float: right;
  margin: 0 0 15px 15px;
}

.article ul {
  /* This pushes the entire list to align with paragraph text */
  padding-left: 0;
  list-style-position: inside;
  margin-top: 10px;
  list-style-type: square;
}

.article ul li {
  /* Add padding to match text alignment */
  padding-left: 0;
  text-indent: 0;
}

/* Clear fix for the article to prevent layout issues */
.article::after {
  content: "";
  display: table;
  clear: both;
}

/* Photography div */
.photography {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.lightbox-wrapper {
    width: 45%;
    position: relative;
}

.lightbox-toggle {
    display: none;
}

.lightbox-label {
    cursor: pointer;
    display: block;
}

.lightbox-label img {
    width: 100%;
    transition: transform 0.3s ease;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.lightbox-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-toggle:checked + .lightbox-label + .lightbox {
    display: block;
}

/* Mobile styles */
@media screen and (max-width: 600px) {
  body { 
    background-color: #ffeee8;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    min-height: 100vh;
  }
  .container {
    padding: 10px;
  }

  .contents {
    padding: 10px;
  }

  .menu {
    gap: 0px;
    font-size: 10pt;
  }

  .title {
      flex-direction: column;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .title-text {
    width: 100%;
    text-align: center;
    border-bottom: 0;
    border-left: 2px solid black;
    margin-bottom: 10px;
    font-size: 18pt;
    }

  .title-image {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}


  .article {
    min-height: 150px;
  }

  .article img {
    width: 90%;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    }

    .lightbox-wrapper {
        width: 90%;
    }
    
    .lightbox-close img {
        width: 95%;
        max-height: 80vh;
    }

}

