.photoswipe-gallery .mainimgdiv {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto 2.5rem;
}
.photoswipe-gallery .g2img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.photoswipe-gallery .mainimgdiv .g2img {
  display: block;
  margin: 0 auto;
}
.photoswipe-gallery a.photoswipe { display: block; cursor: zoom-in; }
.photoswipe-gallery .imgTitle {
  display: block;
  position: static;
  width: auto;
  padding: .65rem .15rem .3rem;
  color: inherit;
  text-shadow: none;
  font: inherit;
  font-size: .94em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.photoswipe-gallery .imgTitle a { color: inherit; text-decoration: underline; }
.photoswipe-gallery .g2ImgDescripton {
  display: block;
  margin-top: .3rem;
  font-size: .92em;
  line-height: 1.5;
  color: inherit;
}
.g2-private {
  display: table;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid #a58b50;
  border-radius: 4px;
  background: #26221b;
  color: #e7c66d;
  font: 600 12px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-wrap: anywhere;
}
.g2-albums, .g2-extra-albums {
  margin: 28px 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid #30363d;
}
.g2-albums h2, .g2-extra-albums h2 {
  margin: 0 0 16px;
  font: 600 19px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: inherit;
}
.g2-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(280px,100%),1fr));
  gap: 16px;
  align-items: stretch;
}
.g2-albums a.g2-album-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  max-width: 380px;
  padding: 14px;
  border: 1px solid #a58b50;
  border-radius: 8px;
  background: #1b1e22;
  color: #c6aa78;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.08);
  text-decoration: none;
  box-sizing: border-box;
}
.g2-albums a.g2-album-card:hover,
.g2-albums a.g2-album-card:focus-visible {
  color: #e4e7eb;
  border-color: #e7c66d;
  background: #23272c;
  text-decoration: none;
}
.g2-album-card img,.g2-album-placeholder {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #23272c;
  box-shadow: 3px -3px 0 -1px #40392c,3px -3px 0 #8c7959,6px -6px 0 -1px #40392c,6px -6px 0 #8c7959;
}
.g2-album-name {
  display: block;
  font: 600 16px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: inherit;
  overflow-wrap: anywhere;
}
.g2-album-card .g2-private {align-self: flex-start;margin-top: auto;}
.g2-album-card:focus-visible {outline: 2px solid currentColor;outline-offset: 3px;}
.g2-extra-albums li {margin: 6px 0;}
@media(max-width:575px) {
  .g2-album-grid {grid-template-columns: 1fr;gap: 12px;}
  .g2-albums a.g2-album-card {max-width: none;}
}
@media print { .g2-albums { display: none; } }
/* Compact reference-only album cards; main photo gallery and extra links stay unchanged. */
.g2-albums {
  margin: 18px 0 12px;
  padding-top: 10px;
}
.g2-albums h2 {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .82;
}
.g2-albums .g2-album-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 8px;
  align-items: start;
}
.g2-albums a.g2-album-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  max-width: 280px;
  padding: 7px;
  border: 1px solid #45413a;
  border-radius: 5px;
  background: #202328;
  box-shadow: none;
}
.g2-albums .g2-album-card img,
.g2-albums .g2-album-placeholder {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 72px;
  height: 48px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: none;
}
.g2-albums .g2-album-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 13px;
  line-height: 1.3;
}
.g2-albums .g2-album-card .g2-private {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  padding: 2px 5px;
  font-size: 10px;
  line-height: 1.3;
}
