/* Custom CSS fixes */
.csl-entry {
    word-wrap: break-word;
}

/* Warn editor when there is an empty link */
.slate-editor-link.external > span:first-child > span > span[data-slate-length="0"]::before {
  content: "Empty external link ";
  color: red;
}

.slate-editor-link.internal  > span:first-child > span > span[data-slate-length="0"]::before {
  content: "Empty internal link ";
  color: red;
}

/*.column-grid .styled-item {
margin-bottom: 2rem;
} */

/* remove top and bototm margin from column-grid that has items since they already have 2rem gap */
.ui.grid.column-grid:has(.items) {
    margin-top: 0;
    margin-bottom: 0;
}

.ui.items > .item > .content {
    padding-left: 2rem;
}

.item img.big {
width: 64px !important;
height: 64px !important;
}

img.me {
    width: 100%;
}
.image-block-container.center {
    display: block;
}

/* Fix metadata preview_image width in columns */
.metadata.preview_image.image img {
    width: 100%;
}

/* Fix for image size on enlarge https://www.eea.europa.eu/en/analysis/publications/healthy-seas-thriving-fisheries */
.ui.modal.enlarge-modal.enlarge-embed-embed-content-static .content {
    overflow: auto;
   -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.ui.modal.enlarge-modal.enlarge-embed-embed-content-static .content img {
    max-width: inherit !important;
}

@media (max-width:768px) {
    .ui.modal.enlarge-modal.enlarge-embed-embed-content-static .content img {
        width: auto;
    }
}
@media (min-width:769px) {
    .ui.modal.enlarge-modal.enlarge-embed-embed-content-static .content img {
        height: auto;
    }
}

/* END Fix for image size on enlarge */

/* temporary fix for SVG display, refs #276923 */
.block.image img {
  width: 100% !important;
  height: auto;
}

/* Remove border left on description block on PDF Report 
   See: https://taskman.eionet.europa.eu/issues/259256#note-24
*/
.contenttype-report_pdf .eea.callout {
    border-left: none;
    padding: 0;
}

.contenttype-report_pdf #page-document > .styled-columnsBlock:first-of-type .content-box:before {
    content: none;
}

.contenttype-report_pdf #page-document > .styled-columnsBlock:first-of-type .content-box-inner {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}