@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #F5F5F5;
  background-color: #20201D;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: inherit;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
}
h2 {
  font-size: 2rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}
h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0.25rem 0;
}
.main-heading {
  text-align: center;
  border-bottom: 1px solid gray;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
}
p {
  margin: 0.75rem 0;
}
ul {
  list-style-type: disc;
}
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  text-align: left;
  list-style-type: disc;
}
.tall-lines {
  line-height: 37px;
}
.italic-bold {
  color: gray;
  font-style: italic;
  font-weight: bold;
}
.section-spacing {
  padding-top: 1.6rem;
}
code {
  background: #242429;
  padding: 0.1em 0.4em;
  border-radius: 0.3em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}
pre {
  background: #242429;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
}
summary {
  cursor: pointer;
  font-weight: bold;
  margin-top: 1em;
}
details {
  margin: 1em 0;
  border: 1px solid #30363d;
  padding: 0.8em;
  border-radius: 6px;
  background-color: #161b22;
}
details ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin: 0.8em 0;
}
details p {
  margin: 0.75rem 0;
}
details pre {
  background: #242429;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
th, td {
  border: 1px solid #30363d;
  padding: 0.5em;
  text-align: left;
}
th {
  background-color: #21262d;
}
td {
  background-color: #161b22;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.side-content {
  max-width: 1000px;
  padding-left: 15rem;
  padding-top: 0.5rem;
}
.brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding-left: 3rem;
  margin-top: 1.5rem;
}
.home-link {
  font-size: 2.5rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.home-link::after {
  content: "   -   /root ツ";
  opacity: 0;
  margin-left: 8px;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  color: #888;
  white-space: nowrap;
}
.home-link:hover::after {
  opacity: 1;
}
.home-link:hover,
.home-link:focus,
.home-link:active {
  color: #ffffff;
  transform: translateY(-2px);
}
.back-button {
  font-size: 1.6rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding-bottom: 0.5rem;
}
.back-button:hover,
.back-button:focus,
.back-button:active {
  color: #ffffff;
  transform: translateY(-2px);
}
img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}
.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}
.centered-image img {
  width: 80%;
  height: auto;
}
.footer {
  text-align: center;
  padding-top: 3rem;
}
.signature {
  font-style: italic;
  font-size: 0.9em;
  color: gray;
}
.post-date {
   font-family: 'Geist Mono', monospace;
   font-size: 1rem;
   font-style: italic;
   color: gray;
   text-align: left;
   margin-bottom: 12px;
   margin-left: 0px;
 }
.photo-section {
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}
.photo-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid gray;
  padding-bottom: 0.5rem;
}
.masonry {
  column-count: 3;
  column-gap: 1.2rem;
}
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry { column-count: 1; }
}
.photo-card {
  display: inline-block;
  margin: 0 0 1.2rem;
  width: 100%;
}
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #30363d;
  border-radius: 0;              
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-card img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.caption {
  font-size: 1rem;
  font-style: italic;
  color: gray;
  margin-top: 0.2rem;            
  margin-bottom: 0;              
  padding-left: 1.75rem;                    
  display: none;                 
}
.caption:not(:empty) {
  display: block;                
}
.inspiration img {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.2rem;
  border: 1px solid #30363d;
  border-radius: 0;              
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inspiration img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.video-frame {
  display: inline-block;
  margin: 0 0 1.2rem;
  width: 130%;
}
.video-frame iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #30363d;
  border-radius: 0;     
  display: block;
}
.video-caption {
  font-size: 0.95rem;
  font-style: italic;
  color: gray;
  margin-top: 0.4rem;
  margin-bottom: 0;
  padding: 0;
  display: none;
}
.video-caption:not(:empty) {
  display: block;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border: 1px solid #444;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}
 html {
    scroll-behavior: smooth;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   text-rendering: optimizeLegibility;
 }
@media (max-width: 800px) {
  section.photo-section:last-of-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.75rem;
    margin-top: 2rem;
  }

.brand-column {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    margin-top: 0;
    position: relative;
    justify-content: space-between; 
  }
    .home-link {
      font-size: 1.8rem;
      margin-right: auto; 
      padding-left: 1.5rem; 
    }
    .back-button {
      font-size: 1.2rem;
      padding-bottom: 0;
    }
    .brand-column .back-button {
      margin-left: 0.2rem; 
    }
    .brand-column .back-button:last-of-type {
      margin-right: 1.2rem;
 
  section.photo-section:last-of-type h2 {
    text-align: center;
    font-size: 1.4rem;
  }
  section.photo-section:last-of-type > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  section.photo-section:last-of-type iframe {
    width: 100% !important;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  section.photo-section:last-of-type {
    margin-bottom: 3rem;
  }
}
@media (max-width: 600px) {
  section.photo-section:last-of-type {
    transform: scale(1.05);
    transform-origin: top center;
  }
}

@media (max-width: 800px) {
  section.photo-section:last-of-type > div {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
  }

  section.photo-section:last-of-type > div > div {
    flex: 1 1 100% !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  section.photo-section:last-of-type iframe {
    width: 100% !important;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }
}

@media (max-width: 500px) {
  section.photo-section:last-of-type {
    transform: scale(1);
    padding: 0 0.5rem;
  }
}
