:root {
  --gallery_progress_time:4s;
  --gallery_navigation_side_width:2rem;
}

* {
  margin: 0;
  padding: 0;
}

p {
  all: unset;
}

:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: black;
}

#page_main_left_cont {
  padding-right: 1rem;
}


#gallery_cont {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 90%;
  /*height: calc(90*var(--vh));*/
  overflow: hidden;
  border-radius: 0.2rem 0.2rem 0 0;
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px 1px black;
  background: rgb(65, 65, 65);
}

#gallery_cont:hover > #left_arrow_cont {
  left: 0px;
}

#gallery_cont:hover > #right_arrow_cont {
  right: 0px;
}

#left_arrow_cont {
  left: calc(-1 * var(--gallery_navigation_side_width));
  justify-content: flex-start;
}

#right_arrow_cont {
  right: calc(-1 * var(--gallery_navigation_side_width));
  justify-content: flex-end;
}

@media (hover: none) {
  #left_arrow_cont {
    left: 0;
  }
  #right_arrow_cont {
    right: 0;
  }
}
.gallery_arrow_cont {
  display: flex;
  position: absolute;
  height: 100%;
  width: var(--gallery_navigation_side_width);
  align-items: center;
  opacity: 1;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

.gallery_arrow_bg {
  opacity: 0.2;
  transition: all 0.2s;
}

.gallery_arrow_cont:hover > .gallery_arrow_bg {
  opacity: 0.35;
}

.gallery_arrow_cont:active > #gall_arrow_img_left {
  transform: rotate(180deg) translateX(calc(0.2 * var(--gallery_navigation_side_width)));
}

.gallery_arrow_cont:active > #gall_arrow_img_right {
  transform: rotate(0deg) translateX(calc(0.2 * var(--gallery_navigation_side_width)));
}

@media screen and (max-width: 480px) {
  .gallery_arrow_cont {
    opacity: 0.5;
  }
}
.gallery_arrow_bg {
  z-index: 1;
  position: absolute;
  height: 100%;
  width: 100%;
}

.gallery_arrow_bg_left {
  background: linear-gradient(90deg, rgb(255, 255, 255) 20%, rgba(0, 0, 0, 0) 100%);
}

.gallery_arrow_bg_right {
  background: linear-gradient(270deg, rgb(255, 255, 255) 20%, rgba(0, 0, 0, 0) 100%);
}

#gall_arrow_img_left {
  transform: rotate(180deg);
  margin-left: -0.1em;
}

#gall_arrow_img_right {
  transform: rotate(0deg);
  margin-right: -0.1em;
}

.arrow_img {
  z-index: 2;
  margin: 0.5em;
  transition: all 0.1s;
  width: 2em;
  height: 2em;
}

#pause_img {
  position: absolute;
  width: 3rem;
  height: 3rem;
  opacity: 0;
  z-index: 5;
  transition: 0.2s;
  pointer-events: none;
  width: 2rem;
  transform: scale(0, 0);
}

@media (hover: none) {
  #pause_img {
    opacity: 0.4;
    transform: scale(1, 1);
  }
}
#gallery_img:hover ~ #pause_img {
  opacity: 0.7;
  transform: scale(1, 1);
}

#gallery_img:active ~ #pause_img {
  opacity: 0.8;
  transform: scale(1.15, 1.15);
}

#gallery_img {
  max-height: 100%;
  max-width: 100%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  transition: all 0.5s;
  cursor: pointer;
  z-index: 0;
}

#gallery_progress_cont {
  top: 0;
  left: 0;
  position: absolute;
  height: 0.3rem;
  width: 0%;
  background-color: brown;
  z-index: 1;
}

.anim_playing {
  -webkit-animation: play_anim var(--gallery_progress_time) linear;
          animation: play_anim var(--gallery_progress_time) linear;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  -webkit-animation-timing-function: ease-out;
          animation-timing-function: ease-out;
}

#gallery_desc_cont {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  justify-content: center;
  z-index: 2;
}

#gallery_desc_text {
  position: absolute;
  color: rgb(187, 187, 187);
  background-color: rgba(0, 0, 0, 0.2);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 0.4) 75%, rgba(0, 0, 0, 0) 100%);
  text-align: center;
  width: 100%;
  text-shadow: -1px 1px 3px black;
}

#sidebar_cont {
  overflow-x: hidden;
  font-size: 0.7rem;
  padding: 0.5rem;
  padding-top:0;
  transition: 0.2s;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.4rem 0.4rem 0 0;
}

#latest_news_body_cont {
  padding-right: 1rem;
  overflow-y: hidden;
  overflow-x: hidden;
  box-shadow: inset 0 2px 2px 0px black;
  padding-top: 0.5rem
}

#latest_news_title_cont {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 0.5rem 0 0 0.5rem;
    /* background: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%);*/
    padding: 0.4rem;
    padding-top: 0;
    background-color: rgba(91, 111, 124, 0.4);
    pointer-events: none;
}


#latest_news_title_p {
    text-align: center;
    font-size:larger;

}

.new_cont {
  cursor: pointer;
  padding: 0.5em;
  margin: 0.5em;
  height: 10rem;
  /*box-shadow: 0 0 0.2em 0.1em rgba(0, 0, 0,0.4);
  box-shadow: -2px 0 0.2em 0.1em rgba(0, 0, 0,0.4);*/
  border-left: solid rgba(0,0,0,0.1) 0.1rem;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  transition: all 0.2s;
  overflow: hidden;
}

.new_cont:hover {
  border-left: solid var(--navbar_cont_bg) 0.2rem;
  background-color: rgba(255, 175, 0, 0.05);
  color:var(--navbar_cont_bg);
}

.new_cont:hover > .arthro_wrap > .new_image_cont > img{
    transform: scale(1.1);
}

.new_image_cont {
  width: 6rem;
  height: 6rem;
  float: left;
  border: solid 0.1em black;
  border-radius: 0.2rem;
  margin-right: 0.6rem;
  overflow:hidden
}



.new_image {
  width: 100%;
  height: 100%;
  transition: all 0.2s;
  -o-object-fit: cover;
     object-fit: cover;
}

.new_title_title {
  width: 100%;
  font-weight: bold;
  font-size: 1.3em;
  line-height: 0.9;
  margin-bottom: 0.3em;
}


.new_text {
    padding: 0.5rem;
    font-size: 1.05em;
    text-align: justify;
    text-justify:inter-word;
    /* -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; */
    
}

.new_date_cont {
  display: flex;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.date_time_clock {
  height: 100%;
}

.new_title_date {
  font-size: 0.9em;
  font-style: italic;
}

@-webkit-keyframes play_anim {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes play_anim {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}