
/* mark with differing style */
.mark {
    font-weight: 400;
}
/* nav */
.galery {
    list-style: none;
}
.galery li {
    float: left;
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    margin: 0 3.5px;
    box-shadow: inset rgba(255,255,255,0.4) 0px 1px 0px, inset rgba(255,255,255,0.2) 0px 0px 0px 1px, rgba(0,0,0,0.5) 0px 1px 3px;
    border-radius: 3px;
}
/* круглые края */
.galery > li:first-of-type {
    border-radius: 3px;
    padding: 5px;
    margin-right: 3.5px;
    box-shadow: inset rgba(255,255,255,0.4) 0px 1px 0px, inset rgba(255,255,255,0.2) 0px 0px 0px 1px, rgba(0,0,0,0.5) 0px 1px 3px;
}
.galery > li:last-of-type {
    border-radius: 3px;
    padding: 5px;
    margin-left: 3.5px;
    box-shadow: inset rgba(255,255,255,0.4) 0px 1px 0px, inset rgba(255,255,255,0.2) 0px 0px 0px 1px, rgba(0,0,0,0.5) 0px 1px 3px;
}
/* блоки ссылок */
.galery li a {
    display: block;
    text-decoration: none;
    color: #654C22;
    padding: 3px 7px 4px 7px;
    border-radius: 3px;
    font-size: 16.7px;
}
/* выпадающее меню */
.sub-nav {
    position: absolute;
    border-top: 15px solid transparent;
    left: -9999px;
    list-style:none;
    padding:0;
    z-index: 1;
    border-radius: 3px;
}
.sub-nav li {
	background-color: #FFF;
	box-shadow: none;
	border-radius: 0;
}
.dropdown li {
	background-color: #FFF;
	box-shadow: none;
	border-radius: 0;
	padding: 0 5px;
}
/* make submenu reappear */
.galery li:hover .sub-nav {
    left: 0;
}
.galery li:hover .dropdown {
    left: 0;
}
.galery .dropdown {
  visibility: hidden;
  opacity: 0;
}
.galery li:hover .dropdown {
  visibility: visible;
  opacity: 1;
}
.galery a:hover, a:focus, a:active .dropdown {
	color: #96622a;
	text-decoration: underline;
}
/* triangle */
.triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgb(251, 246, 241);
    position: absolute;
    margin-top: 5px;
    left: -9999px;
}
/* reappear */
.galery li:hover .triangle {
    left: 15px;
}
/* prevent multi line links */
.sub-nav li {
    white-space: nowrap;
}
/* закругленные края */
.sub-nav > li:first-of-type {
    border-radius: 3px 3px 0 0;
}
.sub-nav > li:last-of-type {
    border-radius: 0 0 3px 3px;
}
/* верхний уровень при наведении */
.galery > li:hover > a {
    background-color: rgba(0,0,0,0.10);
    transition: background ease .5s;
    text-decoration: none;
}
/* ссылки подменю */
.sub-nav a {
    font-size: 90%;
    margin: 1px 3px;
    transition: background ease .3s;
}
.sub-nav a:hover {
    background-color: rgba(0,0,0,0.2);
	color: #fff;
}
