html {
	font-size: 16px;
}

body {
    font-size: 0.8em;
    line-height: 1.2em;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    margin: 0px 0px 5px 0px;
    padding: 0px;
    text-align: center;
    background-color: #fff;
}

h1 {
    color: #990000;
    margin: 0px 0px 25px -5px;
    border-bottom: 1px solid #990000;
    font-size: 2em;
    line-height: 1.2em;
    font-weight: normal;
    padding: 5px;

}

h2 {
	font-size: 1.6em;
    color: #990000;
    margin: 10px 0px 5px -5px;
    border-bottom: 1px solid #990000;
    padding: 5px;
    line-height: 1.2em;
    font-weight: normal;
    display: block;
    -webkit-margin-before: 0.83em;
    -webkit-margin-after: 0.83em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}

p {
	padding-bottom: 10px;
	margin: 0px 0px 5px 0px;
	display: block;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
}

a:link {
	font-weight: bold;
	color: #009;
	text-decoration: none;
}

a:visited {
	font-weight: bold;
	color: #227;
}

a:hover {
	font-weight:bold;
	color: #900;
	text-decoration: underline;
}

#topBarInstitute {
	height: 25px;
	background-color: #990000;
	margin-bottom: 15px;
}

#pageContainer {
	/*width: 1248px;*/
    width: 80%;
	text-align: center;
	margin: 0px auto;
	border: solid 1px #fff;
	border-width: 0px 1px;
	min-width: 60px;
	position: relative;
	padding: 0px 10px 0px 10px;
}

/* Clearfix to fix float issues inside pageContainer */
#pageContainer::after {
  content: "";
  display: table;
  clear: both;
}

#greyBar {
	height: 17px;
    background-color: #efefef;
    margin: 10px 0px 17px 0px;
}

#leftColumn {
    width: 220px;
    float: left;
}

#logo {
	width: 180px;
}

#lang-switch {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;

  font-size: 18px;
  font-family: inherit;
  color: #990000;

  user-select: none;
}

#lang-switch button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;

  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

#lang-switch button:hover {
  color: #aaa;
}

#lang-switch button.active {
  color: #990000;
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

@media (max-width: 768px) {
  #lang-switch {
    right: 12px;
    top: 12px;
  }
}



/*
** Nav SideBar
*/

#naviMainContainer {
	margin-top: 16px;
}

#naviMainContainer ul {
	margin: 0px 0px 8px 0px;
    padding: 0px 0px 0px 0px;
    list-style-type: none;
}

.nav1 a {
    border: 0px;
    display: block;
    padding: 5px 5px 6px 1px;
    width: 200px;
    color: #000;
    background-color: #fff;
    font-weight: normal;
	text-decoration: none;
}

.nav1 a:hover {
	color: #000;
	background-color: #efdfdf;
}

.nav2 a {
    margin-bottom: 0px;
    border-bottom: 2px solid #ffffff;
    background-color: #efefef;
	padding-left: 8px;
    width: 180px;
}

.nav3 a {
    background-color: #fff;
    padding-left: 16px;
    width: 184px;
}


#naviMainContainer ul.nav3 {
    margin-bottom: 1px;
}

.nav2act > a {
    color: red;
}
.nav3act > a {
    color: red;
}


/*
** Rest
*/

#middleColumn {
	border-left: 1px solid #000000;
    /*border-right: 1px solid #000000;*/
    width: 1006px;
    min-height: 700px;
	position: relative;
    float: left;
    padding: 0px 0px 0px 20px;
}

#pageHeader {
    width: 985px;
    height: 250px;
    overflow: hidden;
}

.pathway {
    padding-bottom: 8px;
    font-weight: normal;
    font-size: 0.8em;
    line-height: 1.2em;
    color: #666;
    padding-top: 8px;
	margin-bottom: 16px;
}

.pathway a {
	text-decoration: none;
    color: #666;
}

.pathway a:hover {
    /*font-weight: normal;*/
    color: #0c619d;
    text-decoration: underline;
}

#footer {
    text-align: center;
	padding-top: 40px;
    clear: both;
}

/* Gallery */
.atonGalleryItem {
    position: relative;
    display: inline-block;
    vertical-align: top;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    border-radius: 10px;

    margin: 5px;
    padding: 0px;

    background-color: rgba(0, 0, 0, 0.2);
}

.atonCover {
    border: 0px;
    display: inline-block;
    cursor: pointer;

    text-align: center;
    vertical-align: middle;

    padding: 0px;
    margin: 0px;

    outline: none;
}

.atonCover img {
    border-radius: 15px;
    transition: all .1s ease-in-out;
}
.atonCover img:hover {
    box-shadow: 0 0px 10px rgba(255, 255, 255, 1.0);
    transform: scale(1.1);
}

.atonBlurBG {
    position: relative;

    left: 0;
    right: 0;
    z-index: -10;
    /*
    display: block;
    */
    /*background-image: url();*/
    width: 100%;
    height: 100%;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /*background-color: rgba(0, 0, 0, 0.5);*/
    opacity: 0.5;

    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -o-filter: blur(10px);
    -ms-filter: blur(10px);
    filter: blur(10px);

}

.atonKeyword {
    display: inline-block;
    border-radius: 5px;

    text-decoration: none;

    font-size: smaller;
    text-shadow: none;

    color: black;
    background-color: rgba(255, 255, 255, 0.5);

    box-shadow: 0 0px 5px rgba(0,0,0, 0.5);

    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;

    margin: 3px;
    padding: 4px;
}

.atonKeywordActivable {
    cursor: pointer;
    box-shadow: 0 0px 5px rgba(0,0,0, 0.5);
}

.atonKeywordActivable:hover {
    box-shadow: 0 0px 5px rgba(255, 255, 255, 1.0);
}

.atonBlockSubTitle {
    display: block;
    position: relative;

    text-align: center;

    text-decoration: none;

    color: whitesmoke;
    background-color: rgba(0,0,0, 0.3);
    border-radius: 10px;

    padding: 10px;
    margin: 0px;
    margin-left: 2px;
    margin-right: 2px;

    font-weight: bold;

    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.5);
    /*border: 2px solid black;*/
}

/* Gallery */

.atonKeywordCount {
    border-radius: 5px;
    color: white;
    background-color: rgba(0,0,0, 0.5);
    padding: 4px;
    margin: 0px;
    font-size: x-small;
    font-weight: bold;
}

.atonAuthor {
    text-shadow: 0px 0px 4px black;
    text-align: center;
    padding: 8px;
}

.atonCircled {
    display:inline-block;

    border-radius: 50%;
    background-color: rgba(0,0,0, 0.2);
    padding: 5%;
}

.atonCircledSmall {
    display:inline-block;

    border-radius: 50%;
    background-color: rgba(0,0,0, 0.2);
    padding: 10px;
}

.atonKey {
    display: inline-block;
    border-radius: 5px;

    text-shadow: none;
    font-weight: bold;

    color: black;
    background-color: rgba(255,255,255, 0.5);

    box-shadow: 0 0px 5px rgba(0,0,0, 0.5);

    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;

    margin: 3px;
    padding: 3px;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.large-row img {
  height: 200px;
  display: block;
}

.small-row img {
  height: 70px;
  display: block;
}

.container1 {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .column {
    flex: 1;
  }

#galleryWrapper {
  position: relative;
  max-height: 550px;  /* adjust based on row height * 1.5 or 2 */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

#fadeOverlay {
  position: absolute;
  bottom: 0px; /* height of the fade + button area */
  left: 0;
  right: 0;
  height: 150px; /* height of the fade effect */
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  display: block;
}

#showMoreWrapper {
  text-align: center;
  margin-top: 10px;
}

#showMoreBtn {
  padding: 8px 16px;
  font-size: 22px;
  cursor: pointer;
  color: #990000;
  margin: 10px 0px 5px -5px;
  border-bottom: none;
  border-top: 1px solid #990000;
  padding: 5px;
  line-height: 1.2em;
  font-weight: normal;
  display: block;
  -webkit-margin-before: 0.83em;
  -webkit-margin-after: 0.83em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
}

#mainContent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}