.cbody {
  background-color: lightgray;
  margin: 1rem 0rem 1rem 0rem;
}




details{
  display: block;
  background: #fff;
  width: calc( 100% - 0.6rem );
  box-shadow:
    0 10px 15px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  overflow:hidden;
  margin: 0px 0.3rem 0px 0.3rem;
}
summary {
   #display:block;
   padding: 0.3em 1em 0.3em 0.9em;
   border-bottom: 1px solid #e2e8f0;
   #font-size:1.4em;
   cursor: pointer;
   position: relative;
   background-color: rgb(241, 241, 241);
}







.cmainheader {
  display: block;
  margin-left: 0rem;
  margin-right: auto;
  //width: 100%;
  float: left;
  text-align: left;
}

.headfpholder {
  max-width: 4rem;
  max-height: 2rem;
  margin: 0.3rem 0.2rem 0px 0px;
  float: right;
}
.headfpbtn {
  max-width: 1.5rem;
  max-height: 2rem;
  margin: 0.3rem 0.2rem 0px 0px;
}


.pagsblock {
  display: flex;
  align-content: center;
  justify-content: center;
}

.pagelistitem {
  float: left;
  display: block;
  cursor: pointer;
  padding: 0px 0.4rem 0px 0.4rem;
  margin: 0px 0.1rem 0px 0.1rem;
  font-weight: bolder;
  color: black;
  border-width: thin;
  border-radius: 1rem;
  //border-block: medium none bisque;
  border-color: black;
  border-style: solid;
  color: black;
  background-color: darkgray;
}

.pagelistinaitem {
  float: left;
  display: block;
  cursor: pointer;
  padding: 0px 0.2rem 0px 0.2rem;
  margin: 0px 0.1rem 0px 0.1rem;
  font-weight: bolder;
  color: black;
  //border-width: thin;
  //border-radius: 1rem;
  //border-block: medium none bisque;
  //border-color: black;
  //border-style: solid;
  color: black;
  //background-color: darkgray;
}

.pagelistactitem {
  float: left;
  display: block;
  cursor: default;
  padding: 0px 0.4rem 0px 0.4rem;
  margin: 0px 0.1rem 0px 0.1rem;
  font-weight: bolder;
  color: black;
  border-width: thin;
  border-radius: 1rem;
  //border-block: medium none bisque;
  border-color: black;
  border-style: solid;
  background-color: #dddddd;
}

.newsblock {
  display: grid;
  grid-gap: 0.5rem 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  grid-template-rows: repeat(auto, auto);
  overflow: hidden;
}
.newsblockh {
  display: grid;
  grid-gap: 0.5rem 0.5rem;
  //grid-template-columns: 1fr 2fr;
  grid-template-columns: 66vh auto;
  grid-template-rows: (auto, auto);
  overflow: hidden;
  height: 100vh;
}
.newsblockv {
  display: grid;
  grid-gap: 0.5rem 0.5rem;
  //grid-template-columns: 1fr 2fr;
  grid-template-columns: auto;
  grid-template-rows: (auto, auto);
  overflow: hidden;
  //height: 100vh;
}
/*
.newsblockh > .newsimgblock > .newsimg {
  top: 50%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}
.newsblockv > .newsimgblock > .newsimg {
  top: 50%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}
*/
.newsblockminih {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));
  overflow-y: scroll;
  grid-auto-flow: dense;
  overflow: auto;
  grid-auto-rows: max-content;
}
.newsblockminiv {
  //-moz-column-count: 2;
  -webkit-column-count: 2;
  column-count: 2;
  //column-gap: 20px;
  page-break-inside: avoid;
  break-inside: avoid-column;
  //padding: 20px;
  width: 100vw;
  height: auto;
}
//grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
//@media (max-width: 28rem) {
//  .newsblockminiv {
//    grid-template-columns: repeat(6, 1fr);
//  }
//}
.newsblockv {
  display: grid;
  grid-gap: 0.5rem 0.5rem;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(auto, auto);
  overflow: hidden;
}




.visual-hide {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.text-desc {
  #background-color: white;
  padding: 0.5rem 0.2rem 0.5rem 0.2rem;
}

/**
соотношение ширины картинки умноженное на 100 к её высоте известно = К
осталосл выставить всем элементам в флоувьюере grid-row-span равный округлению вверх от (300/К)
*/
.flowviewer {
  max-width: 100vw;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-gap: 0.3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%/2, 12rem), 1fr));
  //grid-template-columns: 1fr, repeat(auto-fit, minmax(10rem,1fr));
  //grid-auto-rows: minmax(20px, 30px);
  //grid-template-columns: repeat(auto-fit, minmax(min(100%/3, max(64px, 100%/5)), 1fr)); // 3-5 cols 64px min
  grid-auto-rows: minmax(2rem, auto);
  justify-content: center;
  overflow-y: scroll;
}

.flowviewer > * {
  width: 12rem;
  /* only for older non-grid browsers: */
  float: left;  
  /* only for older non-grid browsers: */
  margin: 0.3rem;
}

@supports (display: grid) {
  .flowviewer > * {
    /* modern browser -- grid-gap takes care of us: */
    margin: 0 auto;
  }
}

/* cosmetics only from here on down */
.flowviewer > * {
  background-color: #ddd;
}
.flowviewerimg {
  max-width: 100%;
  width: 100%;
}
.flowviewer > * span {
  font-size: 125%;
  color: #cc3333;
  font-family: 'CCWebFont';
}
.nbmd {
  border-radius: 2rem;
  overflow: hide;
}
.flowelmbig {
  background-color: RGB(230,230,230);
}
.listimgblk {
  position: relative;
}
.listimglink {
  //background-image: url('/img/bhd.png');
  //background-repeat: no-repeat;
  //background-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  bottom: 0.5rem;
  right: 0;
  z-order: 9;
  background-color: lightgray;
}



.newscontainer {
  width: 100%;
  //height: 100vh;
  //height: calc( 100vh - 2rem );
  background-color: gray;
  margin: 0.1rem 0 1rem 0;
  border-radius: 1rem 0px 1rem 1rem;
  position: relative;
}
.newsheader {
  word-break: break-word;
  //font-size: larger;
  //margin: 0rem 1rem 0rem 1rem;
  padding: 0rem 0.1rem 0rem 0.1rem;
  text-align: center;
  border-style: none none dotted none;
  border-bottom-color: darkgray;
  border-block-end-width: 0.15rem;
  //background-image: url('img/logo2.png');
  //background-repeat: no-repeat;
  //background-size: 1.5rem;
  //background-position-x: 0.2rem;
  //background-position-y: 50%;
  min-height: 2rem;
}
.newsimgblock{
  //width: 100%;
  //height: 100%;
  //display: flex;
  //align-items: center;
  //justify-content: center;
  //background-color: gray;  
  //position: relative;
  min-width: 100%;
  min-height: 75vh;
  //min-height: calc( 100vh - 4rem );
  display: flex;
  align-items: center;
  justify-content: space-around;
  //background-color: gray;
  position: relative;
}
.newsimgblockr{
  transform: rotate(90deg) scale(65%);
}
.newsimgblockrhv{
  //rotate: 90deg;
  //scale: 1.25;
}
.newsimg {
  max-width: 100%;
  max-height: 100vh;
  margin: auto;
  display: block;
  //position: absolute;
  //top: 50%;
  //left: 50%;
  //transform: translate(-50%, -50%);
  //-webkit-transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 3rem 0rem 3rem 0;
  overflow: hidden;
}
.newsimgmini {
  max-width: 100%;
  border-radius: 1rem 1rem 1rem 0rem;
  overflow: hidden;
  //max-width: 5rem;
  //max-height: 100%;
  //scroll-margin-top: 50vh;
  //scroll-margin-bottom: 50vh;
}
.newsimg-testtop {
max-width: 100%;
max-height: 100%;
margin: auto;
display: block;
position: absolute;
top: 0;
left: 0;
pointer-events: none;
right: 0;
}
.newsimgh{
  width: 1px;
  height: 1px;
  max-width: 1px;
  max-height: 1px;
  margin: 0px;
  display: none;
}
.newsimghp{
  max-width: 25%;
  max-height: 25%;
  margin: 0px;
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  border-style: inset;
  border-radius: 1rem;
}
.newsimghn{
  max-width: 25%;
  max-height: 25%;
  margin: 0px;
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  border-style: inset;
  border-radius: 1rem;
}
.newsbtnhp{
  //width: 10%;
  //height: 30%;
  max-width: 10%;
  max-height: 10%;
  margin: 0px;
  position: absolute;
  display: block;
  bottom: 50%;
  left: 0;
  opacity: 70%;
  //border-style: inset;
  //border-radius: 1rem;
}
.newsbtnhn{
  //width: 10%;
  //height: 10%;
  max-width: 10%;
  max-height: 10%;
  margin: 0px;
  position: absolute;
  display: block;
  bottom: 50%;
  right: 0;
  opacity: 70%;
  //border-style: inset;
  //border-radius: 1rem;
}
.newsbtnhd{
  //width: 10%;
  //height: 10%;
  max-width: 2rem;
  max-height: 2rem;
  margin: 0px;
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  opacity: 70%;
  //border-style: inset;
  //border-radius: 1rem;
}
.newsbtnhm{
  //width: 10%;
  //height: 10%;
  max-width: 2rem;
  max-height: 2rem;
  margin: 0px;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  opacity: 70%;
  //border-style: inset;
  //border-radius: 1rem;
}
.newsrecpopup {
  position: absolute;
  left: 0.5rem;
  top: 1rem;
}
.newseditorbtn {
  display: inline-block;
  position: absolute;
  right: 0.2rem;
}

.newsvoteblk{
  //width: 10%;
  //height: 10%;
  //max-width: 10rem;
  max-height: 1rem;
  margin: 0px;
  position: absolute;
  display: block;
  background-color: RGBA(255,255,255,0.5);
  border-radius: 0px 0px 0.5rem 0.5rem;
  //border-style: inset;
  //border-radius: 1rem;
  //padding: 0px 1rem 0.5rem 1rem;
  //padding: 0px 0.5rem 0.5rem 0.5rem;
  //font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
  padding: 0px 0px 0.5rem;
  font-size: 1rem;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}

.newsftcblk{
  //width: 10%;
  //height: 10%;
  max-width: 10rem;
  max-height: 1rem;
  margin: 0px;
  position: absolute;
  display: block;
  background-color: RGBA(255,255,255,0.5);
  border-radius: 0.5rem 0.5rem 0px 0px;
  //left: 50%;
  //border-style: inset;
  //border-radius: 1rem;
  //padding: 0px 1rem 0.5rem 1rem;
  padding: 0px 0.5rem 0.5rem 0.5rem;
  font-size: 1rem;
  cursor: default;
  color: black;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}

.newsshort{
  word-break: break-word;
  text-align: justify;
  background-color: gray;
  //margin: 0.5rem 0.2rem 0.5rem 0.2rem;
  //margin: 0.5rem 1rem 0.5rem 1rem;
  padding: 0.1rem 2rem 0.5rem 0.5rem;
  border-style: dotted none none none;
  border-top-color: darkgray;
  border-block-start-width: 0.15rem;
  background-image: url('img/logo2.png');
  background-repeat: no-repeat;
  background-size: 1.5rem;
  background-position: 100% 0.5rem;
  min-height: 1rem;
}
.newsdesc{
  word-break: break-word;
  text-align: justify;
  background-color: gray;
  margin: 0.5rem 0.2rem 0.5rem 0.2rem;
  //margin: 0.5rem 1rem 0.5rem 1rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  //border-style: dotted none none none;
  //border-top-color: darkgray;
  //border-block-start-width: 0.15rem;
  display: none;
}

.limitw {
  width: 100%;
}
.limith {
  height: 100%;
}








.ffcontainer {
  background-color: lightgrey;
  width: 100%;
  height: 100%;
  //opacity: 0.5;
  background-color: RGB(50,50,50,0.5);
  position: fixed;
  left: 0px;
  top: 0px;
  display: none;
  //touch-action: pinch-zoom;
  //touch-action: pinch-zoom pan-x pan-y;
}
.ffstage {
  height: 100%;
  width: 100%;
  overflow: hidden;
  //touch-action: pinch-zoom;
  //touch-action: pinch-zoom pan-x pan-y;
}
.paper {
  #background: #fff;
  box-shadow:
    0 -1px 1px rgba(0,0,0,0.15),
    0 -10px 0 -5px #eee,
    0 -10px 1px -4px rgba(0,0,0,0.15),
    0 -20px 0 -10px #eee,
    0 -20px 1px -9px rgba(0,0,0,0.15);
  #padding: 30px 0px 0px 0px;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  #background-color: light-dark;
  #background-color: light-dark;
  background-color: RGB( 250, 250, 250 );
  position: relative;
}
.paper-mini {
  height: 7rem;
}
.histblock {
  position: relative;
  overflow: hidden;
}
.histblockmin {
  height: 7rem;
}
.histcover {
  height: 5rem;
  #background-image: linear-gradient(transparent 0px, rgba(255,255,255,0.9) 52px, #fff 80px);
  background-image: linear-gradient(transparent 0px, rgba(255,255,255,0.9) 3.5rem, #fff 5rem);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.histcoverbtn {
  position: absolute;
  left: 0;
  bottom: 0;
  border-color: gray;
  border-radius: 0.5rem;
  border-style: solid;
  padding: 0.2rem 0.5rem;
  cursor: default;
}
#image {
  transform-origin: 0 0;
  height: auto;
  width: calc( 100% - 0.7rem );
  cursor: grab;
  border-width: 0.3rem;
  border-style: solid;
  //border-color: white;
  border-color: transparent;
  //touch-action: pinch-zoom pan-x pan-y;
  z-index: 9;
  position: absolute;
}
#imagef {
  transform-origin: 0 0;
  height: auto;
  width: 80%;
  //cursor: grab;
  display: none;
}
#imagef0 {
  transform-origin: 0 0;
  height: auto;
  width: 80%;
  //cursor: grab;
  display: none;
}
#imagef2 {
  transform-origin: 0 0;
  height: auto;
  width: 80%;
  //cursor: grab;
  display: none;
}
.actions {
  display: flex;
  position: sticky;
  bottom: 0;
  left: 0;
  height: 3rem;
  width: 100%;
  background-color: lightgrey;
}
.action {
  margin-right: 1rem;
}
.progress-bar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, white 15%, transparent 80% 100%), conic-gradient(hotpink 75%, pink 0);
  position: absolute;
  left: calc( 50% - 1.5rem );
  bottom: 0;
  z-index: 10;
}
.viewerpanel {
  height: 3rem;
  //border-radius: 0.5rem;
  background: RGBA(240,240,240,0.2);
  position: absolute;
  left: 0;
  right: 100%;
  //transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  z-index: 10;
  //display: grid;
  //grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.viewerbtn {
  float: left;
  max-height: 3rem;
  margin: 0 0.5rem;
}
