/* Image detail (/attachment/{name}): #contents-pc gray, nav hidden, white card */
body.page-attachment-show #contents-pc {
  background-color: #ccc;
}

body.page-attachment-show #contents-sp {
  background-color: #ccc;
}

body.page-attachment-show #header-pc #headNav,
body.page-attachment-show #header-pc > .main-content {
  display: none !important;
}

body.page-attachment-show #header-sp .container-nav,
body.page-attachment-show #header-sp #headNav {
  display: none !important;
}

.attachment-page-layout {
  flex: 1;
  min-width: 0;
}

.attachment-show {
  width: 100%;
  min-height: 50vh;
  padding: 24px 16px 48px;
  background-color: transparent;
  box-sizing: border-box;
}

.attachment-show__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.attachment-show__card {
  background: #ffffff;
  border: 1px solid #d0d0d0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 24px 20px 28px;
  box-sizing: border-box;
}

.attachment-show__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.attachment-show__media img,
.attachment-show__media video {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(85vh, 900px);
  object-fit: contain;
  vertical-align: middle;
}

.attachment-show__caption {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

.attachment-show__description {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.6;
}

.attachment-show__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}