/* Подпись поверх одиночного фото — общий файл для сайта и редактора блоков (подключается через enqueue_block_assets).
   В редакторе нет обёртки .entry-content, содержимое лежит в .editor-styles-wrapper. */
/* Одиночное фото с подписью — подпись поверх снимка внизу, как в галерее и в шапке похода (09.10.2026).
   Только для фото во всю колонку: у фото слева/справа/по центру подпись остаётся под снимком. */
:root { --phdl-caption-ink: #fff; --phdl-caption-shade: rgba(10, 20, 16, .72); }
:is(.entry-content, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.wp-block-gallery figure):not(.phdl-hero figure):not(.phdl-photo):has(> figcaption) { position: relative; }
:is(.entry-content, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.wp-block-gallery figure):not(.phdl-hero figure):not(.phdl-photo):has(> figcaption) img,
:is(.entry-content, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.wp-block-gallery figure):not(.phdl-hero figure):not(.phdl-photo):has(> figcaption) > a { display: block; }
:is(.entry-content, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.wp-block-gallery figure):not(.phdl-hero figure):not(.phdl-photo) > figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2rem 1.2rem 1rem; background: linear-gradient(transparent, var(--phdl-caption-shade)); color: var(--phdl-caption-ink); font-size: .85rem; line-height: 1.4; text-align: left; }
:is(.entry-content, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.wp-block-gallery figure):not(.phdl-hero figure):not(.phdl-photo) > figcaption a { color: inherit; text-decoration: underline; }
