#dotco_sns {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

#dotco_sns .dotco-sns-modal-outerwall {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1;
}

#dotco_sns .dotco-sns-modal-wrapper {
  position: relative;
  z-index: 2;
  margin: 40px auto;
  width: min(92vw, 760px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}


.dotco-sns-modal-outerwall .close {
    color: #fff;
    font-size: 3em;
    position: absolute;
    opacity: 0.7;
    top: 0;
    right: 40px;
}
.dotco-sns-image-cell video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: #000;
}

.dotco-sns-image-grid.count-1 .dotco-sns-image-cell video {
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.dotco-sns-page {
  min-height: 100vh;
  padding: 40px 12px;
  background: #f5f7f8;
}

.dotco-sns-page.design-1 {
  background:
    linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.65)),
    url(/images/p0476_l.jpg) center / 400px repeat;
}

.dotco-sns-page.design-2 {
  background: #0f1419;
  color: #e7e9ea;
}

.dotco-sns-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #d8dee4;
  border-right: 1px solid #d8dee4;
}

.design-2 .dotco-sns-wrapper {
  background: #15202b;
  border-color: #38444d;
}

.dotco-sns-header {
  padding: 24px 20px;
  border-bottom: 1px solid #eff3f4;
}

.design-2 .dotco-sns-header {
  border-bottom-color: #38444d;
}

.dotco-sns-header h1 {
  margin: 0;
  font-size: 1.4em;
  line-height: 1.3;
}

.dotco-sns-header p {
  margin: 8px 0 0;
  color: #536471;
  font-size: .92em;
  line-height: 1.6;
}

.design-2 .dotco-sns-header p {
  color: #8b98a5;
}

.dotco-sns-post {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eff3f4;
}

.design-2 .dotco-sns-post {
  border-bottom-color: #38444d;
}

.dotco-sns-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}

.dotco-sns-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dotco-sns-body {
  flex: 1;
  min-width: 0;
}

.dotco-sns-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.dotco-sns-meta strong {
  font-weight: 700;
}

.dotco-sns-meta span {
  color: #536471;
  font-size: .9em;
}

.design-2 .dotco-sns-meta span {
  color: #8b98a5;
}

.dotco-sns-text {
  margin: 8px 0 0;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dotco-sns-text a {
  color: #1d9bf0;
  text-decoration: none;
  word-break: break-all;
}

.dotco-sns-text a:hover {
  text-decoration: underline;
}

.dotco-sns-media {
  margin-top: 12px;
  border: 1px solid #cfd9de;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.design-2 .dotco-sns-media {
  border-color: #38444d;
}

.dotco-sns-video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.dotco-sns-image-grid {
  display: grid;
  gap: 2px;
  background: #000;
}

.dotco-sns-image-grid.count-1 {
  grid-template-columns: 1fr;
}

.dotco-sns-image-grid.count-2,
.dotco-sns-image-grid.count-4 {
  grid-template-columns: repeat(2, 1fr);
}

.dotco-sns-image-grid.count-3 {
  grid-template-columns: repeat(2, 1fr);
}

.dotco-sns-image-grid.count-3 {
  grid-template-columns: repeat(2, 1fr);
}

.dotco-sns-image-grid.count-3 .dotco-sns-image-cell:first-child {
  grid-row: auto;
}

.dotco-sns-image-cell {
  position: relative;
  min-height: 180px;
  aspect-ratio: 1 / 1;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.dotco-sns-image-grid.count-1 .dotco-sns-image-cell {
  aspect-ratio: auto;
  max-height: 620px;
}

.dotco-sns-image-cell img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.dotco-sns-image-grid.count-1 .dotco-sns-image-cell img {
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.dotco-sns-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
}

.dotco-sns-time {
  margin-top: 12px;
  color: #536471;
  font-size: .9em;
}

.design-2 .dotco-sns-time {
  color: #8b98a5;
}



.dotco-sns-image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dotco-sns-image-modal.is-open {
  display: flex;
}

.dotco-sns-image-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
}

.dotco-sns-image-modal img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}



@media (max-width: 560px) {
  .dotco-sns-page {
    padding: 0;
  }

  .dotco-sns-wrapper {
    border-left: none;
    border-right: none;
  }

  .dotco-sns-post {
    gap: 10px;
    padding: 14px 12px;
  }

  .dotco-sns-avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .dotco-sns-image-cell {
    min-height: 140px;
  }
}
