/* JOURNAL sticker collage (post 1953 „Руда, която прилича на сребро“). Stickers = die-cut images
   with white borders, drop shadows, washi tape. Positions are % of the collage width, so it scales. */
.yva-collage {
	position: relative; width: 100%; padding-top: 84%; margin: 10px 0 46px;
}
.yva-collage .yst { position: absolute; display: block; margin: 0; line-height: 0; }
.yva-collage .yst img,
.yva-diary .yst-f img {
	display: block; width: 100%; height: auto; max-width: none !important; margin: 0 !important;
	filter: drop-shadow(0 4px 7px rgba(10, 20, 50, .28)) drop-shadow(0 1px 1px rgba(0, 0, 0, .18));
	transition: transform .35s ease;
}
@media (hover: hover) {
	.yva-collage .yst:hover img, .yva-diary .yst-f:hover img { transform: translateY(-4px) scale(1.02); }
}
/* washi tape */
.yva-collage .yst.tape::before, .yva-diary .yst-f.tape::before {
	content: ""; position: absolute; z-index: 2; left: 50%; top: -14px; width: 38%; min-width: 70px; height: 26px;
	transform: translateX(-50%) rotate(-4deg);
	background: repeating-linear-gradient(45deg, rgba(0, 71, 171, .55) 0 7px, rgba(255, 255, 255, .55) 7px 14px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12); opacity: .72;
	-webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px));
	        mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px));
}
.yva-collage .yst.tape-pink::before, .yva-diary .yst-f.tape-pink::before {
	background: repeating-linear-gradient(90deg, rgba(248, 196, 196, .85) 0 10px, rgba(242, 166, 166, .85) 10px 12px);
	transform: translateX(-50%) rotate(5deg);
}
.yva-collage .yst.tape-corner::before, .yva-diary .yst-f.tape-corner::before {
	left: auto; right: -10px; top: 4px; width: 64px; min-width: 0; transform: rotate(42deg);
}

/* real rope fishing net (photo, keyed to transparent holes) */
.yva-collage .yc-net, .yva-diary .yc-net {
	position: absolute; pointer-events: none;
	background: url("/wp-content/plugins/yva-media-assets/collage/net-real.webp?v=2") center / contain no-repeat;
	filter: drop-shadow(0 2px 2px rgba(90, 70, 40, .28));
	opacity: 1;
}

/* top collage placement */
.yva-collage .yc-net   { left: -6%; top: 26%; width: 112%; height: 78%; transform: rotate(-5deg); z-index: 0; }
.yva-collage .yc-vg    { left: 0;   top: 6%;  width: 50%; transform: rotate(-7deg); z-index: 1; }
.yva-collage .yc-yva   { left: 33%; top: 0;   width: 33%; transform: rotate(2deg);  z-index: 3; }
.yva-collage .yc-kosta { right: 1%; top: 12%; width: 31%; transform: rotate(6deg);  z-index: 2; }
.yva-collage .yc-plate { left: 6%;  top: 52%; width: 28%; transform: rotate(-14deg); z-index: 4; }
.yva-collage .yc-co    { left: 64%; top: 66%; z-index: 5; transform: rotate(-6deg); }

/* „Co 27“ element sticker */
.yva-collage .yc-co {
	position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 17%; aspect-ratio: 1 / 1.1; background: #0047AB; color: #fff; border: 5px solid #fff; border-radius: 6px;
	box-shadow: 0 4px 9px rgba(10, 20, 50, .3); font-family: "Forum", serif; line-height: 1;
}
.yva-collage .yc-co b { align-self: flex-start; margin-left: 10%; font-weight: 400; font-size: clamp(10px, 1.6vw, 14px); opacity: .85; }
.yva-collage .yc-co strong { font-weight: 400; font-size: clamp(26px, 5.4vw, 46px); letter-spacing: .02em; }
.yva-collage .yc-co i { font-style: normal; font-size: clamp(9px, 1.5vw, 13px); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* floating stickers inside the diary paper (they overhang the page edge) */
.yva-diary .yst-f { position: relative; display: block; line-height: 0; width: 40%; margin-top: 6px; margin-bottom: 14px; }
.yva-diary .yst-f.r { float: right; margin-right: -9%; margin-left: 16px; transform: rotate(6deg); }
.yva-diary .yst-f.l { float: left;  margin-left: -11%; margin-right: 18px; transform: rotate(-6deg); }
.yva-diary .yst-f.s { width: 30%; }
.yva-diary .yst-f.xs { width: 24%; }
.yva-diary .yst-f.r.tilt2 { transform: rotate(-4deg); }
.yva-diary .yst-f.l.tilt2 { transform: rotate(5deg); }
.yva-diary::after { content: ""; display: block; clear: both; }
.yva-diary { position: relative; }
.yva-diary .yc-net.end { right: -8%; bottom: -60px; width: 70%; height: 240px; transform: rotate(8deg); }

.yva-credits { font-family: "Forum", serif !important; font-size: 13px !important; line-height: 1.5 !important; color: #8a8a8a !important; margin-top: 18px !important; }

@media (max-width: 600px) {
	.yva-collage { padding-top: 86%; margin-bottom: 26px; }
	.yva-collage .yc-plate { top: 54%; width: 32%; left: 3%; }
	.yva-collage .yc-co { border-width: 3px; width: 20%; left: 62%; top: 68%; }
	.yva-collage .yc-co i { font-size: 8px; letter-spacing: .04em; }
	.yva-collage .yst.tape::before { height: 18px; top: -10px; min-width: 46px; }
	.yva-diary .yst-f { width: 34%; }
	.yva-diary .yst-f.s { width: 29%; }
	.yva-diary .yst-f.xs { width: 25%; }
	.yva-diary .yst-f.r { margin-right: -13%; margin-left: 6px; }
	.yva-diary .yst-f.l { margin-left: -15%; margin-right: 6px; }
	.yva-diary .yst-f.tape::before { height: 18px; top: -10px; min-width: 46px; }
}

/* die-cut figures: tape only where it lands on the sticker */
.yva-collage .yc-kosta.tape::before { display: none; }
.yva-collage .yc-yva.tape::before { top: -6px; }

/* hand-drawn „Co“ sticker */
.yva-collage .yc-co2 { left: 63%; top: 63%; width: 17%; transform: rotate(-8deg); z-index: 5; }
@media (max-width: 600px) { .yva-collage .yc-co2 { left: 61%; top: 66%; width: 21%; } }

/* diary paper: subtle sea waves instead of notebook rules */
body.single-post .entry-content .yva-diary {
	background: #fbfaf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' preserveAspectRatio='none'%3E%3Cpath d='M0 37 C20 33 40 33 60 37 S100 41 120 37 S150 33 160 36' fill='none' stroke='%230047AB' stroke-opacity='.16' stroke-width='1.3'/%3E%3C/svg%3E") repeat !important;
	background-size: 160px 40px !important;
	border-left: none !important;
	border-radius: 3px;
}
@media (max-width: 600px) {
	body.single-post .entry-content .yva-diary { background-size: 140px 34px !important; }
}

.yva-collage { overflow-x: clip; }

/* no washi tape on stickers (user preference) */
.yva-collage .yst.tape::before, .yva-diary .yst-f.tape::before { display: none !important; }

/* wide sticker on its own row between stanzas (no text wrapping around it) */
.yva-diary .yst-f.b { float: none; width: 86%; margin: 6px auto 26px; transform: rotate(-2deg); }
@media (max-width: 600px) { .yva-diary .yst-f.b { width: 100%; margin: 4px 0 20px -4%; } }
