/**
 * @file    css/_tmpl-singular.css
 * @brief   Singular stylesheet.
 *
 * @ingroup BLNG_CSS
 */

/**
 * Table of Contents
 *
 * 1.0 - Common
 * 2.0 - Counters
 *   2.1 - Figures
 */

/*===========================================================================*/
/* 1.0 Common                                                                */
/*===========================================================================*/
#blng-single-wrap {
  padding: var(--blng-content-padding-block) 0;
  background-color: var(--blng-pe-azure-3g);
}

#blng-single {
  width: calc(100% - 2*var(--blng-content-padding-side));
  max-width: 1200px;
  margin: auto;
  padding: var(--blng-content-padding-block) var(--blng-content-padding-side);
  background-color: var(--blng-pe-brand-midnight-2g);
  border-radius: 5px;
}

#blng-single a {
  font-weight: 600;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  #blng-single-wrap {
    padding: 0;
    background-color: white;
  }

  #blng-single {
    width: 100%;
  }
}

/*===========================================================================*/
/* 2.0 Counters                                                              */
/*===========================================================================*/

#blng-single {
  counter-reset: figure tables;
}

/**
 * 2.1 - Figures
 */
#blng-single .wp-block-video figcaption,
#blng-single .wp-block-image figcaption {
  counter-increment: figure;
}

#blng-single .wp-block-video figcaption:before,
#blng-single .wp-block-image figcaption:before {
content: "Figure "counter(figure)" - ";
  font-weight: 600;
}

/**
 * 2.2 - Tables
 */
 
#blng-single figure.wp-block-table {
  overflow: hidden;
}
 
#blng-single figure.wp-block-table figcaption {
  counter-increment: tables;
}

#blng-single figure.wp-block-table figcaption:before {
  content: "Table "counter(tables)" - ";
  font-weight: 600;
}