.parentlink {
margin: 5px 0 20px 0;
}
.gallery {
margin: 0 auto;
}
.gallery .refitem {
display: relative;
margin: 0 15px 15px 0;
float: left;
}
.gallery .refitem a {
width: 300px;
height: 200px;
background-color: #bbb;
position: relative;
overflow: hidden;
}
.gallery .refitem .overlay {
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
 transition: all 0.3s ease 0s;
}
.gallery .refitem .overlay span {
position: absolute;
top: 10px;
left: 10px;
color: #FFFFFF;
 transition: all 0.3s ease 0s;
text-shadow: 0 0 6px #000000;
}
.gallery .refitem .dir .overlay span {
top: 50%;
left: 0;
right: 0;
text-align: center;
font-size: 1.6em;
margin-top: -14px;
}
.gallery .refitem:hover .overlay {
background-color: rgba(204, 0, 127, 0.7);
background-color: rgba(0, 0, 0, 0.5);
}
.gallery .refitem img {
width: auto;
height: auto;
max-width: 100%;
max-height; 100%;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.gallery .uthevet {
width: 625px;
height: 495px;
}
.gallery a {
display: block;
position: relative;
 transition: opacity 0.3s ease 0s;
}
.gallery img {
display: block;
}
.refitem .selected:after {
    border-left: 15px solid rgba(0, 0, 0, 0);
    border-right: 15px solid rgba(0, 0, 0, 0);
    border-bottom: 15px solid #ddd;
    bottom: -15px;
    content: " ";
    height: 0;
    left: 50%;
    margin-left: -15px;
    position: absolute;
    width: 0;
    z-index: 200;
}
.pristotallinje {
font-size: 1.4em;
line-height: 1.4em;
}
.notSelected {
opacity: 0.4;
}
.notSelected:hover {
opacity: 1.0;
}
#cardImg {
width: 100%;
padding: 15px 0;
}
#cardImg img {
display: block;
max-width: 100%;
max-height: 300px;
width: auto;
height: auto;
margin: 0;
}
#selectCardFormat {
width: 100%;
}
#selectCardFormat a {
width: 20%;
float: left;
 transition: opacity 0.3s ease 0s;
}
#selectCardFormat img {
width: 100%;
height: auto;
}
#selectCardType {
float: left;
width: 100%;
margin-bottom: 15px;
}
@media screen and (max-width: 630px) {
#cardImg img {
    height: auto;
    max-height: 400px;
    max-width: 400px;
    width: 100%;
}
.gallery .refitem {
    float: left;
    margin: 0 0 15px 0;
width: 100%;
}
.gallery .refitem a {
width: 100%;
height: auto;
}
.gallery .refitem img {
position: relative;
}
}