/* ===== Post window (Instagram style): dark overlay, photo / video on the left, member + caption + likes + comments on the right ===== */
.dosc-vw, .dosc-vw * { box-sizing: border-box; }
.dosc-vw {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 28px 84px;
	background: rgba(0, 0, 0, .72); opacity: 0; visibility: hidden; text-align: left;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
.dosc-vw.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.dosc-vw [hidden] { display: none !important; }
.dosc-vw .dosc-vw-box {
	display: flex; width: 100%; max-width: 1200px; height: min(90vh, 820px); overflow: hidden; background: #fff; border-radius: 6px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.96);
	transition: transform .3s cubic-bezier(.2, .85, .25, 1), opacity .25s ease; will-change: transform, opacity;
}
.dosc-vw.is-open .dosc-vw-box { opacity: 1; transform: none; }
.dosc-vw .dosc-vw-body { display: flex; width: 100%; height: 100%; min-width: 0; transition: opacity .2s ease; }
.dosc-vw .dosc-vw-body.is-loading { opacity: .55; }

/* close, previous / next post */
.dosc-vw .dosc-vw-close, .dosc-vw .dosc-vw-close:hover, .dosc-vw .dosc-vw-close:focus {
	position: absolute; top: 14px; right: 18px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
	background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; color: #fff !important; cursor: pointer; transition: transform .2s ease;
}
.dosc-vw .dosc-vw-close:hover { transform: scale(1.12); }
.dosc-vw .dosc-vw-nav, .dosc-vw .dosc-vw-nav:hover, .dosc-vw .dosc-vw-nav:focus {
	position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -20px 0 0; padding: 0;
	background: rgba(255, 255, 255, .92) !important; border: 0 !important; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .3) !important; color: #000 !important; cursor: pointer; transition: transform .2s ease;
}
.dosc-vw .dosc-vw-nav:hover { transform: scale(1.1); }
.dosc-vw .dosc-vw-nav .dosc-ico { width: 22px; height: 22px; }
.dosc-vw .dosc-vw-nav-prev { left: 24px; }
.dosc-vw .dosc-vw-nav-next { right: 24px; }

/* left: media */
.dosc-vw .dosc-vw-media { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; background: #000; }
.dosc-vw .dosc-vw-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2, .85, .25, 1); }
.dosc-vw .dosc-vw-slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; width: 100%; height: 100%; background: #000; }
.dosc-vw .dosc-vw-slide img, .dosc-vw .dosc-vw-slide video { display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; background: #000; border: 0; border-radius: 0; object-fit: contain; }
.dosc-vw .dosc-vw-arrow, .dosc-vw .dosc-vw-arrow:hover, .dosc-vw .dosc-vw-arrow:focus {
	position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -15px 0 0; padding: 0;
	background: rgba(255, 255, 255, .88) !important; border: 0 !important; border-radius: 50%; box-shadow: none !important; color: #000 !important; cursor: pointer;
}
.dosc-vw .dosc-vw-arrow-prev { left: 10px; }
.dosc-vw .dosc-vw-arrow-next { right: 10px; }
.dosc-vw .dosc-vw-dots { position: absolute; right: 0; bottom: 14px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dosc-vw .dosc-vw-dot { width: 6px; height: 6px; background: rgba(255, 255, 255, .5); border-radius: 50%; transition: background-color .2s; }
.dosc-vw .dosc-vw-dot.is-on { background: #fff; }
.dosc-vw .dosc-vw-textonly { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 44px; color: #fff; font: 600 34px/1.25 "EB Garamond", Georgia, serif; text-align: center; overflow-wrap: anywhere; }

/* right: info */
.dosc-vw .dosc-vw-info { display: flex; flex: 0 0 420px; flex-direction: column; min-width: 0; background: #fff; border-left: 1px solid #dbdbdb; color: #000; }
.dosc-vw .dosc-vw-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #efefef; }
.dosc-vw .dosc-vw-who { display: flex; align-items: center; gap: 12px; min-width: 0; color: #000; text-decoration: none; }
.dosc-vw .dosc-vw-who img { flex: none; width: 36px; height: 36px; max-width: none; border-radius: 50%; object-fit: cover; }
.dosc-vw .dosc-vw-name { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.dosc-vw .dosc-vw-cat { flex: none; padding: 3px 10px; background: #f4efeb; border-radius: 999px; color: #654638; font-size: 12px; font-weight: 600; }
.dosc-vw .dosc-vw-scroll { flex: 1 1 auto; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.dosc-vw .dosc-vw-cap { display: flex; align-items: flex-start; gap: 12px; }
.dosc-vw .dosc-vw-capav { flex: none; width: 36px; height: 36px; max-width: none; border-radius: 50%; object-fit: cover; }
.dosc-vw .dosc-vw-capbody { min-width: 0; font-size: 14.5px; line-height: 1.45; }
.dosc-vw .dosc-vw-title { overflow-wrap: anywhere; }
.dosc-vw .dosc-vw-title b { margin-right: 4px; font-weight: 700; }
.dosc-vw .dosc-vw-title { font-weight: 600; }
.dosc-vw .dosc-vw-title b + * , .dosc-vw .dosc-vw-title { color: #000; }
.dosc-vw .dosc-vw-text { margin-top: 6px; overflow-wrap: anywhere; font-weight: 400; }
.dosc-vw .dosc-vw-text p { margin: 0 0 6px; }
.dosc-vw .dosc-vw-text a { color: #00376b; }
.dosc-vw .dosc-vw-capmeta { margin-top: 6px; color: #737373; font-size: 12px; }
.dosc-vw .dosc-vw-clist { margin-top: 18px; }
.dosc-vw .dosc-vw-clist:empty { display: none; }
.dosc-vw .dosc-vw-nocomm { margin: 26px 0 0; color: #737373; font-size: 14px; text-align: center; }
.dosc-vw .dosc-vw-clist .dosc-comment { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; background: none; }
.dosc-vw .dosc-vw-clist .dosc-avatar-sm { flex: none; width: 36px; height: 36px; max-width: none; border-radius: 50%; object-fit: cover; }
.dosc-vw .dosc-vw-clist .dosc-comment-body { min-width: 0; }
.dosc-vw .dosc-vw-clist .dosc-comment-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.dosc-vw .dosc-vw-clist .dosc-comment-name { font-size: 14.5px; font-weight: 700; }
.dosc-vw .dosc-vw-clist .dosc-comment-time { color: #737373; font-size: 12px; }
.dosc-vw .dosc-vw-clist .dosc-comment-text { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }

/* bottom: actions, likes, time, comment box */
.dosc-vw .dosc-vw-foot { flex: none; padding: 6px 16px 0; border-top: 1px solid #efefef; }
.dosc-vw .dosc-vw-actions { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; }
.dosc-vw .dosc-vw-act, .dosc-vw .dosc-vw-act:hover, .dosc-vw .dosc-vw-act:focus {
	display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 0; background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; color: #000 !important;
	font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.dosc-vw .dosc-vw-act:hover { opacity: .65; }
.dosc-vw .dosc-vw-act .dosc-ico { transition: transform .15s ease; }
.dosc-vw .dosc-vw-act:active .dosc-ico { transform: scale(.86); }
.dosc-vw .dosc-vw-cc { font-size: 14px; }
.dosc-vw .dosc-vw-save, .dosc-vw .dosc-vw-save:hover, .dosc-vw .dosc-vw-save:focus { margin-left: auto; }
.dosc-vw .dosc-vw-like.is-liked { color: #ed4956 !important; }
.dosc-vw .dosc-vw-like.is-liked .dosc-ico { color: #ed4956; fill: #ed4956; stroke: #ed4956; }
.dosc-vw .dosc-vw-save.is-saved .dosc-ico { fill: currentColor; }
.dosc-vw .dosc-vw-likes { margin: 0; font-size: 14.5px; }
.dosc-vw .dosc-vw-likes b { font-weight: 700; }
.dosc-vw .dosc-vw-time { margin: 3px 0 10px; color: #737373; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.dosc-vw .dosc-vw-cform { display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 4px 16px; border-top: 1px solid #efefef; }
.dosc-vw .dosc-vw-cform input { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #000; font-size: 14.5px; }
.dosc-vw .dosc-vw-cform input:focus { outline: 0; box-shadow: none; }
.dosc-vw .dosc-vw-cform input::placeholder { color: #8e8e8e; }
.dosc-vw .dosc-vw-cform button, .dosc-vw .dosc-vw-cform button:hover { flex: none; margin: 0; padding: 8px 2px; background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; color: #654638 !important; font-size: 14.5px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; transition: opacity .2s; }
.dosc-vw .dosc-vw-cform button[disabled] { opacity: .45; cursor: default; }
.dosc-vw .dosc-vw-login { margin: 0 -16px; padding: 14px 16px; border-top: 1px solid #efefef; color: #737373; font-size: 14.5px; }
.dosc-vw .dosc-vw-login a { color: #654638; font-weight: 700; }

@media (max-width: 1100px) {
	.dosc-vw { padding: 20px; }
	.dosc-vw .dosc-vw-nav { display: none; }
	.dosc-vw .dosc-vw-info { flex-basis: 360px; }
}
@media (max-width: 860px) {
	.dosc-vw { align-items: flex-end; padding: 0; }
	.dosc-vw .dosc-vw-box { width: 100%; max-width: none; height: 96%; height: 96dvh; border-radius: 14px 14px 0 0; opacity: 1; transform: translateY(100%); transition: transform .4s cubic-bezier(.2, .85, .25, 1); }
	.dosc-vw.is-open .dosc-vw-box { transform: none; }
	.dosc-vw .dosc-vw-body { flex-direction: column; }
	.dosc-vw .dosc-vw-media { flex: none; height: 48%; }
	.dosc-vw .dosc-vw-media.is-text { height: 24%; }
	.dosc-vw .dosc-vw-textonly { padding: 20px; font-size: 22px; }
	.dosc-vw .dosc-vw-info { flex: 1 1 auto; min-height: 0; border-left: 0; }
	.dosc-vw .dosc-vw-close { top: 10px; right: 10px; width: 36px; height: 36px; background: rgba(0, 0, 0, .55) !important; border-radius: 50% !important; }
	.dosc-vw .dosc-vw-close .dosc-ico { width: 20px; height: 20px; }
	.dosc-vw .dosc-vw-head { padding: 10px 14px; }
	.dosc-vw .dosc-vw-scroll { padding: 12px 14px; }
	.dosc-vw .dosc-vw-foot { padding: 4px 14px 0; }
	.dosc-vw .dosc-vw-cform, .dosc-vw .dosc-vw-login { margin: 0 -14px; padding-right: 14px; padding-left: 14px; padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
	.dosc-vw .dosc-vw-cform input { font-size: 16px; }
}

/* ===== bottom of the window: same Instagram layout as the feed ===== */
.dosc-vw .dosc-vw-actions { justify-content: space-between; }
.dosc-vw .dosc-vw-actions-left { display: flex; align-items: center; gap: 4px 20px; min-width: 0; }
.dosc-vw .dosc-vw-act { gap: 7px; }
.dosc-vw .dosc-vw-cc { font-size: 15px; font-weight: 500; }
.dosc-vw .dosc-vw-ptitle { margin: 0 0 14px; font: 700 20px/1.3 "EB Garamond", Georgia, serif; overflow-wrap: anywhere; }
.dosc-vw .dosc-vw-foot .dosc-caption { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.dosc-vw .dosc-cap-name, .dosc-vw .dosc-cap-name:hover { margin-right: 6px; color: #000; font-weight: 700; text-decoration: none; }
.dosc-vw .dosc-cap-more, .dosc-vw .dosc-cap-more:hover, .dosc-vw .dosc-cap-more:focus { display: inline; margin: 0; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; color: #737373 !important; font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; }
.dosc-vw .dosc-vw-foot .dosc-cap-time { margin: 5px 0 10px; color: #737373; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.dosc-vw .dosc-vw-foot .dosc-cap-full { max-height: 120px; display: inline-block; overflow-y: auto; vertical-align: top; }
@media (max-width: 560px) { .dosc-vw .dosc-vw-actions-left { gap: 2px 14px; } }

/* Repost is a profile page feature (Instagram profile tab); the community page post window stays as it was */
.dosc-vw .dosc-vw-act.dosc-vw-repost { display: none; }
