.phototheme {
  /* padding: 0 36px; */
}

.gallery {
  display: flex;

}

.std {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container {
  display: flex;
  gap: 2rem;
  
}


.std-img {
  max-width: calc(100% - 300px);
}

.theme-title, .mobile-theme-title {
  margin-bottom: 18px;
  width: 300px;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 32px;
}

.mobile-theme-title {
  font-weight: 800;
  font-size: 24px;
  display: none;
}

.photo-info {
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.photo-meta {
  margin-top: auto;
}



@media (max-width: 768px) {
  .theme-title {
    display: none;
  }
  .mobile-theme-title {
    display: block;
  }
  .photo-info {
    min-width: 200px;
  }
  .std-img {
    max-width: calc(100% - 200px);
  }
}

@media (max-width: 640px) {
  .std-img {
    max-width: 100%;
  }
  .photo-info {
    display: none;
  }
}




.gear, .location {
  font-family: opensans;
  font-size: 12px;
  font-weight: 300;
  color: #979797
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta > .theme {
  font-family: 'Zen Old Mincho';
}
.meta > .location, .gear, .comment {
  font-family: opensans;
}


.theme-image {
  width: auto;

  height: 384px;
}


.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.photo-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, opacity 0.8s ease-out;   
}

.photo-item img:hover {
  /* transform: scale(1.5); */
}

.photo-grid {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

.photo-item {
  break-inside: avoid;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  width:300px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}