.buttonset {
    display: inline-block;
    margin: 0 auto;
    border-radius: 25px;
    box-shadow: 0 2px 6px 2px rgba(0,0,0,.15);
}

.buttonset a {
    display: inline-block;
    padding: 10px 30px;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    color: #fff;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 16px;
}

.buttonset a:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.buttonset a:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-right: 1px solid #333;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.buttonset a.current {
    background-color: #B9AB52;
    color: #FFF;
}


.gallery {
    /*padding: 50px 0;*/
    text-align: center;
    margin-top: 35px;
}

.gallery div.images { padding: 40px 0; }

.gallery div.images a { display:inline; }

.gallery div.images img {
    padding: 10px;
    box-sizing: border-box;
    display: inline-block;
}

@media all and (min-width: 481px) and (max-width: 640px) {
    .gallery div.images img { width: 50%; }
}

@media all and (min-width: 641px) and (max-width: 940px) {
    .gallery div.images img { width: 33.333333333%; }
}

@media all and (min-width: 941px) {
    .gallery div.images img { width: 25%; }
}

/* popup */
.mgGallery {
    height: 100%;
}

.mgGallery .slider {
    height: 100%;
}

.mgGallery .slider .slide {
    text-align: center;
    position: relative;
    box-sizing: border-box;
    float: left;
    width: 100%;
    height: 100%;
}

.mgGallery .slider .slide img {
    /*height: 100%;*/
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.mgGallery .slider .slide span {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mgGallery .slider .slide.fade {
    position: absolute;
    top: 0;
    left: 0;
    /* z-index: -1; */
}

.mgGallery .slider .slide h3 {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.5);
    line-height: 60px;
    font-family: sans-serif;
}

/* *** */

/* !!! ako ima frame w .mgGallery ne e neobhodimo da ima position: relative; overflow: hidden; */
.mgGallery .frame {
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* controls */

.mgGallery .arrow {
    color: #8e8e8e;
    position: absolute;
    top: 50%;
    padding: 10px;
    font-size: 24px;
    line-height: 40px;
    width: 40px;
    text-align: center;
    text-decoration: none;
    margin-top: -30px;
    cursor: pointer;

    /*display: none;*/

    opacity: 0;
    transition: all 0.5s;

    /* disable text selection highlighting */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

.mgGallery .arrow:hover {
    background-color: rgba(0,0,0,0.1);
    color: #FFF;
}

.mgGallery .arrow.left {
    left: -40px;
}

.mgGallery .arrow.right {
    right: -40px;
}

.mgGallery:hover a.arrow.left {
    opacity: 1;
    left: 0;
}

.mgGallery:hover a.arrow.right {
    opacity: 1;
    right: 0;
}

/* *** */
.mgGallery .items {
    display: none;
}

@media all and (min-width: 601px) {
    .mgGallery .slider .slide { padding: 40px; }
}
