/**
 * Gallery 3 Wind Theme Screen Styles
 *
 * @requires YUI reset, font, grids CSS
 *
 * Sheet organization:
 *   1)  Font sizes, base HTML elements
 *   2)  Reusable content blocks
 *   3)  Page layout containers
 *   4)  Content blocks in specific layout containers
 *   5)  States and interactions
 *   6)  Positioning and order
 *   7)  Navigation and menus
 *   8)  jQuery and jQuery UI
 */

/** *******************************************************************
 *  1) Font sizes, base HTML elements
 **********************************************************************/

@-ms-viewport {
    width: device-width;
}

body, html {
    margin: 0 auto;
    /*  max-width: 1260px;    -- pridano - nastavuje velikost hlavniho "ramu" pri zvetsovani okna -- (predchozi varianta 1300px) --
      min-width: 1015px;    -- pridano - nastavuje velikost hlavniho "ramu" pri zmensovani okna -- */
    background-color: #fff; /* original -- #ccc; */
    font-family: 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body.modal-open {
    /*overflow: hidden;
    position: fixed;*/
}

#bd {
    position: relative;
}

p {
    margin-bottom: 1em;
}

em {
    font-style: oblique;
}

h1, h2, h3, h4, h5, strong, th {
    font-weight: bold;
}

h1 {
    font-size: 1.1em; /* original -- font-size: 1.7em; */
}

#g-dialog h1 {
    font-size: 1.1em;
}

h2 {
    font-size: 1.2em; /* font-size: 1.4em; */
}

#g-sidebar .g-block h2 {
    font-size: 13px !important; /* original -- font-size: 1.2em; */
    color: #000; /* -- pridano --- */
    background-color: #eeeded;
    padding: 3px 10px;
}

/*zmizely ramecky - posunout text tak, aby byl zaroven s fotkou*/
/*#g-code-block h2 {
  padding: 0px 10px 3px !important;
  margin-top: -3px;
}*/

#g-sidebar .g-block li {
    margin-bottom: 2px;
}


#g-site-menu /* -- pridano --- */
{
    font-size: 1.2em;
}

/* -- konec --- pridano -- */


#g-content
    /* #g-site-menu, */ /* -- odebrano -- */
h3 {
    font-size: 1em; /* font-size: 1.2em; */
}

#g-sidebar,
.g-breadcrumbs {
    font-size: .9em;
}

#g-banner,
#g-footer,
.g-message {
    font-size: .8em;
}

#g-album-grid .g-item,
#g-item #g-photo,
#g-item #g-movie {
    font-size: .7em;
}

/* Links ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

a,
.g-menu a,
#g-dialog a,
.g-button,
.g-button:hover,
.g-button:active,
a.ui-state-hover,
input.ui-state-hover,
button.ui-state-hover {
    /* -- ORIGINAL --  #5382bf -- */
    /*color: #009;*/
    /*backup barva*/
    color: #000;
    cursor: pointer !important;
    text-decoration: none;
    -moz-outline-style: none;
}

a:hover,
#g-dialog a:hover {
    text-decoration: underline;
}

.g-menu a:hover {
    text-decoration: none;
}

.g-menu ul li a font {
    color: #6b6b6b;
    font-weight: bold;
}

.g-menu ul li a font:hover {
    /*color: #009;*/
    /*backup barva*/
    color: #000;
}

#g-dialog #g-action-status li {
    width: 434px;
    white-space: normal;
    padding-left: 32px;
}

/* Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

ul.g-text li,
.g-text ul li {
    list-style-type: disc;
}

ol.g-text li,
.g-text ol li {
    list-style-type: decimal;
}

.g-text li,
.g-text li {
    margin-left: 1em;
}

/* Forms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

form {
    margin: 0;
}

fieldset {
    border: 1px solid #878787; /* original -- #ccc; */
    padding: 0 1em .8em 1em;
}

#g-banner fieldset,
#g-sidebar fieldset {
    border: none;
    padding: 0;
}

legend {
    font-weight: bold;
    margin: 0;
    padding: 0 .2em;
}

#g-banner legend,
#g-sidebar legend,
input[type="hidden"] {
    display: none;
}

input.textbox,
input[type="text"],
input[type="password"],
textarea {
    border: 1px solid #ccc; /* original -- #e8e8e8; */
    clear: both;
    color: #333;
    width: 50%;
}

textarea {
    height: 12em;
    width: 97%;
}

input:focus,
input.textbox:focus,
input[type=text]:focus,
textarea:focus,
option:focus {
    background-color: #ffc;
    color: #000;
}

input.checkbox,
input[type=checkbox],
input.radio,
input[type=radio] {
    float: left;
    margin-right: .4em;
}

.max-file-size {
    padding: 14px 3px;
    font-size: 11px;
    position: relative;
    top: 3px;
}

/* Form layout ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

form li {
    margin: 0;
    padding: 0 0 .2em 0;
}

form ul {
    margin-top: 0;
}

form ul ul {
    clear: both;
}

form ul ul li {
    float: left;
}

input,
select,
textarea {
    display: block;
    clear: both;
    padding: .2em;
}

input[type="submit"],
input[type="reset"] {
    display: inline;
    clear: none;
    float: left;
}

/* Forms in dialogs and panels ~~~~~~~~~ */

#g-dialog ul li {
    padding-bottom: .8em;
}

#g-dialog fieldset,
#g-panel fieldset {
    border: none;
    padding: 0;
}

#g-panel legend {
    display: none;
}

input[readonly] {
    background-color: #F4F4FC;
}

#g-dialog input.textbox,
#g-dialog input[type=text],
#g-dialog input[type=password],
#g-dialog textarea {
    width: 97%;
}

/* Short forms ~~~~~~~~~~~~~~~~~~~~~~~ */

.g-short-form legend,
.g-short-form label {
    display: none;
}

.g-short-form fieldset {
    border: none;
    padding: 0;
}

.g-short-form li {
    float: left;
    margin: 0 !important;
    padding: 2px 0;
}

.g-short-form .textbox,
.g-short-form input[type=text] {
    color: #666;
    padding: 4px 6px; /* -- uprava JZ >> 5px 10px; -- uprava DL >> .3em .6em; -- */
    width: 100%;
}

/* -- pridano - uprava JZ -- */
/*
.g-short-form input[type=text] {
  height: 14px;
}
*/
/* -- konec pridano - uprava JZ -- */

.g-short-form .textbox.g-error {
    border: 1px solid #f00;
    color: #f00;
    padding-left: 24px;
}

#g-error {
    height: 400px;
}

#g-error #g-login, #g-error h2 {
    display: none !important;
}

.g-short-form .g-cancel {
    display: block;
    margin: .3em .8em;
}

#g-sidebar .g-short-form li {
    padding-left: 0;
    padding-right: 0;
}

/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

table {
    width: 100%;
}

#g-content table {
    margin: 1em 0;
}

caption,
th {
    text-align: left;
}

th,
td {
    border: none;
    border-bottom: 1px solid #878787; /* original -- #ccc; */
    padding: .5em;
}

td {
    vertical-align: top;
}

/* Text ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.g-text-small {
    font-size: .8em;
}

.g-text-big {
    font-size: 1.2em;
}

.g-text-right {
    text-align: right;
}

/** *******************************************************************
 *  2) Reusable content blocks
 *********************************************************************/

.g-block-content {
    margin-top: 1em;
}

/** *******************************************************************
 *  3) Page layout containers
 *********************************************************************/

/* Dimension and scale ~~~~~~~~~~~~~~~~~~~ */

.g-one-quarter {
    width: 25%;
}

.g-one-third {
    width: 33%;
}

.g-one-half {
    width: 50%;
}

.g-two-thirds {
    width: 66%;
}

.g-three-quarters {
    width: 75%;
}

.g-whole {
    width: 100%;
}

/* View container ~~~~~~~~~~~~~~~~~~~~~~~~ */

.g-view {
    /* -- original --
      background-color: #fff;
      border: 1px solid #ccc;
      border-bottom: none;
    */
    /* -- prepracovany original - viz vyse -- */
    padding-right: 3px;
    padding-left: 3px;
    background-color: #fff;
    box-shadow: 0 0px 0px 0px white, 0 0px 0px 0px white, 5px 0 12px -6px rgba(0, 0, 0, 0.3), -5px 0 12px -6px rgba(0, 0, 0, 0.3);
}

/* Layout containers ~~~~~~~~~~~~~~~~~~~~~ */

#g-header {
    margin-bottom: 26px;
    position: relative;
    /*overflow: hidden;*//*Nemuze byt kvuli menu*/
}

.hp #g-header {
    margin-bottom: 30px;
}

#g-header .insert.wrapper {
    display: none;
}

.mobile #g-header.editable {
    margin-bottom: 0px;
}

.mobile #g-header .insert.wrapper {
    display: block;
    height: 30px;
    width: 100%;
    margin: 0;
    line-height: 30px;
    text-align: right;
}

.mobile #g-header .insert.wrapper .g-dialog-link {
    font-size: 12px;
}

#g-banner {
    background-color: #fff; /* original -- #e8e8e8; */
    /*height: 39px;*/ /* original -- 5em; */
    height: 65px;
    padding: 10px 0 15px;
    position: relative;
    border: none;
    /*border-bottom: 16px solid #e8e8e8;*/
}

a#g-logo {
    position: relative;
    top: 20px;
}

#g-content {
    position: relative;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

#g-content-alba {
    padding-left: 0px;
}

#g-content-alba.rofiles #g-album-header, #g-content-alba.profiles #g-album-header {
    display: none;
}

#g-sidebar {
    padding: 0 15px; /* original -- padding: 0 20px; */
    width: 220px;
}

#g-footer {
    background-color: #fff;
    text-align: left;
    padding: 30px 0;
    border: none;
    position: relative;
}

#g-footer div:first-child {
    float: left;
}

ul#g-login-menu-footer {
    position: absolute;
    top: 55.5px;
    left: -18.9px;
}

/* --- PRIDANO ---- nastavuje pozici cookie tlacitka  ---  */
#cookie-odkaz {
    position: absolute;
    left: -0.5px;
    bottom: 4px;
}

/* --- PRIDANO ---- po najeti mysi zobrazuje popis  ---  */
#mouse-over span {
    display: none;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: normal;
}

#mouse-over:hover span {
    position: absolute;
    bottom: 10px;
    left: 26px;
    display: inline;
}

/* --- KONEC PRIDANO --- */

#g-footercopycolor {
    color: #6e6e6e;
    padding: 0;
    float: right;
    text-align: right;
    /*  border: 1px solid #878787; */
}

#g-subfooter {
    background-color: #eeeded;
    margin-top: 8px; /* PUVODNE 30PX, POKUS 16PX */
    padding: 0;
    height: 22px;
    border: none;
}

/** *******************************************************************
 *  4) Content blocks in specific layout containers
 *********************************************************************/

/* Header  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

/* -- pridano do modules/search/views/search_link.html -- vyska submitu -- */

/* -- KONEC pridano -- */

#g-content .g-block h2 {
    background-color: transparent;
    padding-left: 0;
}

/* Sidebar  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-sidebar .g-block-content {
    padding-left: 1em;
}

#g-sidebar #g-image-block {
    overflow: hidden;
}

/* Album content ~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-content #g-album-grid {
    margin: 0;
    position: relative;
    z-index: 1;
    /*max-width: 950px;*/
}

#g-content #g-album-grid .g-count-0 {
    display: none; /*skryta prazdna alba*/
}

#g-content #g-album-grid .g-item h2 {
    margin: 14px 0;
    overflow: hidden;
    height: 14px;
}

#g-content .g-photo h2,
#g-content .g-item .g-metadata {
    display: none;
    margin-bottom: 1.4em; /* original -- .6em; */
}

#g-content #g-album-grid .g-album {
    background-color: #e0e0e0; /* original -- #e8e8e8; */
}


#g-content #g-album-grid .g-album h2 span.g-album {
    /* -- NEPOUZIVA SE --
      background: transparent url('../images/ico-album.png') no-repeat top left;
      display: inline-block;
      height: 16px;
      margin-right: 5px;
      width: 16px;
    ---------------------- */
    height: 16px; /* -- PRIDANO --*/
}


#g-content #g-album-grid .g-hover-item {
    border: 1px solid #ccc; /* original -- border: 1px solid #000; --- #e0e0e0*/
    background-color: #F0F0F0;
    position: absolute !important;
    z-index: 1000 !important;
}

#g-content .g-hover-item h2,
#g-content .g-hover-item .g-metadata {
    display: block;
}

#g-content #g-album-grid #g-place-holder {
    position: relative;
    visibility: hidden;
    z-index: 1;
}

/* Search results ~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-content #g-search-results h1 {
    margin-top: 1em;
}

#g-content #g-search-results h1 + div {
    margin-bottom: 10px;
}

/* Individual photo content ~~~~~~~~~~~~~~ */

#g-item {
    position: relative;
    width: 100%;
}

#g-item #g-photo,
#g-item #g-movie {
    padding: 0 0 30px;
    position: relative;
}

#g-item img.g-resize,
#g-item a.g-movie {
    display: block;
    margin: 0 auto;
}

.metaInfo0 {
    display: block;
    margin: 5px 0 10px;
    float: none;
    width: 100%;
    height: 12px;
}

#g-photo-info .name {
    font-weight: bold;
    float: left;
}

#g-photo-info .inserted {
    float: right;
    visibility: hidden; /*skryto pro neprihlasene*/
}

.logged.admin #g-photo-info .inserted {
    visibility: visible;
}

#g-photo-info .viewCount {
    visibility: hidden; /*skryto pro neprihlasene*/
}

.logged.admin #g-photo-info .viewCount {
    visibility: visible;
}

.metaInfo1 {
    float: left;
    font-size: 12px;
    font-weight: normal;
}

.metaInfo2 {
    display: block;
    float: right;
}

.ratings-bp {
    padding-top: 15px !important;
}

.rabidRating {
    max-width: 100%;
    height: auto !important;
}

.rabidRating .ratingText {
    max-width: 100%;
    float: none;
}

.rabidRating #stars {
    display: block;
}

#g-content #g-comments {
    margin: -19px 0 15px 0;
}


.itemDescription {
    font-size: 13px;
    font-weight: normal;
    float: left;
    width: 100%;
    word-wrap: break-word;
    word-break: normal;
    overflow: hidden;
    white-space: pre-wrap;
}

/* Footer content ~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-footer #g-credits li {
    padding-right: 1.2em;
}

/* In-line editing  ~~~~~~~~~~~~~~~~~~~~~~ */

#g-in-place-edit-message {
    background-color: #fff;
}

/* Permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-edit-permissions-form td {
    background-image: none;
}

#g-edit-permissions-form fieldset {
    border: 1px solid #878787; /* original -- #ccc; */
}

#g-permissions .g-denied {
    background-color: #fcc;
}

#g-permissions .g-allowed {
    background-color: #cfc;
}

#g-permissions .g-breadcrumbs a {
    border: 1px solid #fff;
}

#g-permissions .g-active a {
    border: 1px solid #ddd;
    background: #eee;
}

/** *******************************************************************
 *  5) States and interactions
 **********************************************************************/

.g-active,
.g-enabled,
.g-available,
.g-selected,
.g-highlight {
    font-weight: bold;
}

.g-inactive,
.g-disabled,
.g-unavailable,
.g-uneditable,
.g-locked,
.g-deselected,
.g-understate {
    color: #ccc;
    font-weight: normal;
}

.g-editable {
    padding: .2em .3em;
}

.g-editable:hover {
    background-color: #ffc;
    cursor: text;
}

.g-error,
.g-info,
.g-success,
.g-warning {
    padding-left: 30px;
}

form li.g-error,
form li.g-info,
form li.g-success,
form li.g-warning {
    background-image: none;
    padding: .3em .8em .3em 0;
}

.g-short-form li.g-error {
    padding: 2px 0;
}

form.g-error input[type="text"],
li.g-error input[type="text"],
form.g-error input[type="password"],
li.g-error input[type="password"],
form.g-error input[type="checkbox"],
li.g-error input[type="checkbox"],
form.g-error input[type="radio"],
li.g-error input[type="radio"],
form.g-error textarea,
li.g-error textarea,
form.g-error select,
li.g-error select {
    border: 2px solid #f00;
    margin-bottom: .2em;
}

.g-error,
.g-denied,
tr.g-error td.g-error,
#g-add-photos-status .g-error {
    background: #f6cbca url('../images/ico-error.png') no-repeat .4em 50%;
    color: #f00;
}

.g-info {
    background: #e0e0e0 url('../images/ico-info.png') no-repeat .4em 50%; /* original -- #e8e8e8; */
}

#g-info {
    display: none; /* Nezobrazujeme nadpisy v albech  - nahrazeno nasledujicim <h1> nebo lze pro odsazeni pouzit nasledujici div */
}

textarea#g-info {
    display: block;
}

#g-photo-info {
    display: block;
    /*float: left;*/
}


.g-success,
.g-allowed,
#g-add-photos-status .g-success {
    background: #d9efc2 url('../images/ico-success.png') no-repeat .4em 50%;
}

tr.g-success {
    background-image: none;
}

tr.g-success td.g-success {
    background-image: url('../images/ico-success.png');
}

.g-warning,
tr.g-warning td.g-warning {
    background: #fcf9ce url('../images/ico-warning.png') no-repeat .4em 50%;
}

form .g-error {
    background-color: #fff;
    padding-left: 20px;
}

.g-open {
}

.g-closed {
}

.g-installed {
    background-color: #eeeeee;
}

.g-default {
    background-color: #c5dbec;
    font-weight: bold;
}

.g-draggable {
    cursor: move;
}

.g-draggable:hover {
    border: 1px dashed #000;
}

.ui-sortable .g-target,
.ui-state-highlight {
    background-color: #fcf9ce;
    border: 2px dotted #999;
    height: 2em;
    margin: 1em 0;
}

/* Ajax loading indicator ~~~~~~~~~~~~~~~~ */

.g-loading-large,
.g-dialog-loading-large {
    background: #e0e0e0 url('../images/loading-large.gif') no-repeat center center !important; /* original -- #e8e8e8; */
}

.g-loading-small {
    background: #e0e0e0 url('../images/loading-small.gif') no-repeat center center !important; /* original -- #e8e8e8; */
}

/** *******************************************************************
 *  6) Positioning and order
 **********************************************************************/

.g-left {
    clear: none;
    float: left;
}

.g-right {
    clear: none;
    float: right;
}

.g-first {
}

.g-last {
}

.g-even {
    background-color: #fff;
}

.g-odd {
    background-color: #eee;
}

/** *******************************************************************
 *  7) Navigation and menus
 *********************************************************************/

/* Login menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-banner #g-login-menu {
    color: #999;
    float: right;
}

#g-banner #g-login-menu li {
    padding-left: 1.2em;
}

/*#g-banner #g-login-menu li:nth-child(2) {
  display: none;
}*/
#g-register-menu {
    display: none;
}

/* Site Menu  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-site-menu {
    /*bottom: 16px;*/
    bottom: 22px;
    left: 320px; /* -- ORIGINAL -- 140px -- */
    position: absolute;
}

#g-site-menu * {
    background-color: #fff !important;
    border: none;
}

#g-photo-edit {
    display: none;
}

#g-site-menu ul {
    margin-bottom: 0 !important;
}

#g-mobile-site-menu, #g-mobile-site-menu-content {
    display: none;
}

/* Icon 3 */
#nav-icon1, #nav-icon2, #nav-icon3, #nav-icon4 {
    width: 30px;
    height: 22px;
    position: relative;
    margin: 0 auto;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon1 span, #nav-icon3 span, #nav-icon4 span {
    display: block;
    position: absolute;
    height: 6px;
    width: 100%;
    background: #000099;
    border-radius: 0px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {
    top: 0px;
}

#nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) {
    top: 8px;
}

#nav-icon3 span:nth-child(4) {
    top: 16px;
}

#nav-icon3.open span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

#nav-icon3.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

/* Context Menu  ~~~~~~~~~~~~~~~~~~~~~~~~~ */

.g-context-menu {
    background-color: #fff;
    bottom: 0;
    left: 0;
    position: absolute;
}

.g-item .g-context-menu, .g-hover-item .g-context-menu {
    display: none !important;
}

#g-item .g-context-menu ul {
    display: none;
}

.g-context-menu li {
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.g-context-menu li a {
    display: block;
    line-height: 1.6em;
}

.g-hover-item .g-context-menu {
    display: block;
}

.g-hover-item .g-context-menu li {
    text-align: left;
}

.g-hover-item .g-context-menu a:hover {
    text-decoration: none;
}

#g-site-status {
    display: none;
}

/* View Menu  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-view-menu {
    margin-bottom: 0.9em; /* original -- margin-bottom: 1em; */
}

#g-view-menu a {
    background-repeat: no-repeat;
    background-position: 50% 50%;
    height: 28px !important;
    width: 43px !important;
}

#g-view-menu #g-slideshow-link {
    background-image: url('../images/ico-view-slideshow.png');
}

#g-view-menu .g-fullsize-link {
    background-image: url('../images/ico-view-fullsize.png');
}

#g-view-menu #g-comments-link {
    background-image: url('../images/ico-view-comments.png');
}

#g-view-menu #g-print-digibug-link {
    background-image: url('../images/ico-print.png');
}

.dropzone {
    min-height: 150px;
    border: 1px dashed #ccc;
    background: white;
    padding: 15px;
    margin-bottom: 5px;
}

.dz-drag-hover .dropzone {
    border: 2px dashed #ccc;
}

.dropzone .dz-preview {
    display: block;
    margin: 0 auto;
    width: 90%;
}

.dropzone .dz-preview .dz-image {
    border-radius: 0px;
    overflow: hidden;
    width: auto;
    height: 150px;
    max-width: 400px;
    max-height: 150px;
    position: relative;
    display: block;
    z-index: 10;
}

.dropzone .dz-preview .dz-progress {
    opacity: 0;
}

.dropzone .dz-preview.dz-processing .dz-progress {
    opacity: 1;
}

.dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
    z-index: 1001;
}

.dropzone .dz-preview .dz-remove {
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.dropzone .dz-complete .dz-remove {
    visibility: hidden;
}

.dropzone .dz-preview .dz-image img {
    width: auto;
    height: 100%;
    margin: 0 auto;
}

.dropzone .dz-preview:hover .dz-image img {
    -webkit-transform: scale(1.0, 1.0);
    -moz-transform: scale(1.0, 1.0);
    -ms-transform: scale(1.0, 1.0);
    -o-transform: scale(1.0, 1.0);
    transform: scale(1.0, 1.0);
    -webkit-filter: blur(3px);
    filter: blur(3px);
}

.choose-files-info {
    font-size: .9em;
    margin-bottom: 15px;
}

/** *******************************************************************
 *  8) jQuery and jQuery UI
 *********************************************************************/

/* Generic block container ~~~~~~~~~~~~~~~ */

.g-block {
    clear: both;
    margin-bottom: 2.5em;
}

.g-block-content {
}

/* Superfish menu overrides ~~~~~~~~~~~~~~ */
#g-site-menu > .g-menu > li > a {
    line-height: 1.0;
    font-size: 1.1em;
    font-weight: bold;
}

.sf-menu > li > ul {
    width: 14em;
    padding: .5em 0;
}

.sf-menu > li > ul li ul {
    width: 14em;
    padding: .5em 0;
    top: -.5em;
}

ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
    left: 14em;
}

ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
    left: 14em;
}

.sf-menu li li,
.sf-menu li li ul li {
    background-color: #E0E0E0;
    border-left: 1px solid #D0D0D0;
    padding: .5em .35em .5em .35em;
}

.sf-menu li li a {
    padding: .25em 1em;
}

.sf-menu li:hover {
    background-color: #F9F9F9; /* -- ORIGINAL -- background-color: #dfe9ff; -- */
}

#g-site-menu .sf-menu a {
    color: #6b6b6b !important;
    font-size: 1.1em;
}

.sf-menu > li.sfHover > a.sf-with-ul, .sf-menu a:hover, .sfHover > a, .sfHover .sfHover a:hover {
    /*color: #009 !important;*/
    /*backup barva*/
    color: #000 !important;
}

.sf-menu > li > a.sf-with-ul {
    color: #6b6b6b !important;
}

#g-site-menu .sf-with-ul:after {
    position: absolute;
    display: block;
    top: 12.5px !important;
    width: 10px !important;
    height: 10px !important;
    text-indent: -999em !important;
    overflow: hidden !important;
    background: url('../images/arrows-ffffff.png') no-repeat -10px -100px;
    border: none !important;
}

#g-site-menu > ul > li > .sf-with-ul:after {
    /* prvni uroven menu */
    top: 15.5px !important;
}

#g-site-menu .sf-arrows ul .sf-with-ul:after {
    background-position: 0 0;
}

.sf-shadow ul {
    background: none;
    -moz-border-radius-bottomleft: 0;
    -moz-border-radius-topright: 0;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    border-radius: 0;
    box-shadow: 0 0px 0px 0px white, 0 0px 0px 0px white, 5px 0 12px -6px rgba(0, 0, 0, 0.3), -5px 0 12px -6px rgba(0, 0, 0, 0.3);
}

.sf-shadow ul ul {
    background: none;
    -moz-border-radius-bottomleft: 0;
    -moz-border-radius-topright: 0;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    border-radius: 0;
    box-shadow: 0 0px 0px 0px white, 0 0px 0px 0px white, 5px 0 12px -6px rgba(0, 0, 0, 0.3), 0px 0 12px -12px rgba(0, 0, 0, 0.3);
    width: 110px;
}

.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl {
    border-radius: 0px;
}

.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br {
    border-radius: 0px;
}

.ui-icon-seek-next {
    background-position: -32px -158px;
}

.ui-icon-seek-end {
    background-position: -64px -158px;
}

.ui-icon-seek-prev {
    background-position: -48px -158px;
}

.ui-icon-seek-first {
    background-position: -80px -158px;
}

/* jQuery UI Dialog ~~~~~~~~~~~~~~~~~~~~~~ */

.ui-widget {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 1.1em;
}

.ui-widget-overlay {
    background: #000;
    opacity: .7;
}

/* Buttons ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */


.g-button, .ui-state-default.g-button, .ui-state-disabled.g-button {
    display: inline-block;
    line-height: 22px;
    padding: 0px 8px;
    height: 20px; /*+1 +1 ramecek*/
    border: 1px solid #ccc;
    background-color: #eeeded;
    background-image: none !important;
    color: #666;
}

.g-button,
.g-button:hover,
.g-button:active {
    cursor: pointer !important;
    outline: 0;
    text-decoration: none;
    -moz-outline-style: none;
    font-weight: normal;
}

.g-button:hover {
    background-color: #ccc;
    color: #666;
}

.g-button.ui-state-disabled {
    cursor: not-allowed !important;
    background-color: transparent;
}

/*header search*/
#g-banner #g-quick-search-form {
    clear: right;
    float: right;
    margin-top: 0;
    position: relative;
    top: 15px;
}

.not-logged #g-banner #g-quick-search-form {
    top: 27px;
}

#g-banner #g-quick-search-form input[type='text'] {
    width: 186px; /* TODO hlidat sirku pri responzivnim designu */
    height: 20px;
    font-size: 10px;
    padding: 0 6px;
}

#g-search-submit {
    height: 22px;
    border: 1px solid #ccc;
    border-left: none;
    background-color: #eeeded;
    background-image: none !important;
    padding: 0 5px;
    font-size: 10px;
    color: #333;
    cursor: pointer;
    font-weight: normal;
}

#g-search-submit:hover {
    background-color: #ccc;
    color: #333;
}

/* Tlacitko Prihlaseni */
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border: 1px solid #878787;
    background: #e0e0e0 url('/themeroller/images/ui-bg_glass_75_e0e0e0_1x400.png') 50% 50% repeat-x;
    font-weight: normal;
    color: #434343;
}

#g-dialog .g-cancel {
    margin: 0.4em 1em 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    background: none;
    text-decoration: none;
}

#g-dialog .g-cancel:hover {
    text-decoration: underline;
}

.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: Verdana, Arial, sans-serif;
    font-size: 1em;
}

.ui-dialog .ui-dialog-titlebar-close {
    border: none;
}

/*search page*/
#g-search-form .textbox, #g-search-form input[type=text] {
    color: #666;
    padding: 0px 6px;
    width: 100%;
    height: 20px;
    font-size: 10px;
}

#g-search-submited {
    height: 22px;
    border: 1px solid #ccc;
    background-color: #eeeded;
    background-image: none !important;
    padding: 0 5px;
    font-size: 10px;
    color: #333;
}

#g-search-submited:hover {
    background-color: #ccc;
    color: #333;
}

@-moz-document url-prefix() {
    #g-search-submited {
        height: 26px;
    }
}

button {
    padding: 2px 4px 2px 4px;
}

#g-fullsize-overlay {
    opacity: 0.9 !important;
}

/* jQuery UI ThemeRoller buttons ~~~~~~~~~ */

.g-buttonset {
    padding-left: 1px;
}

.g-buttonset li {
    float: left;
}

.g-buttonset .g-button {
    margin: 0;
}

.ui-icon-left .ui-icon {
    float: left;
    margin-right: .2em;
}

.ui-icon-right .ui-icon {
    float: right;
    margin-left: .2em;
}

/* Rotate icon, ThemeRoller only provides one of these */

.ui-icon-rotate-ccw {
    background-position: -192px -64px;
}

.ui-icon-rotate-cw {
    background-position: -208px -64px;
}

.g-progress-bar {
    height: 1em;
    width: 100%;
    margin: .5em 0;
    display: inline-block;
}

/* Status and validation messages ~~~~ */

.g-message-block {
    background-position: .4em .3em;
    border: 1px solid #878787; /* original -- #ccc; */
    padding: 0;
}

#g-action-status {
    margin-bottom: 1em;
}

#g-action-status li,
p#g-action-status,
div#g-action-status {
    padding: .3em .3em .3em 30px;
}

#g-site-status li {
    border-bottom: 1px solid #878787; /* original -- #ccc; */
    padding: .3em .3em .3em 30px;
}

.g-module-status {
    clear: both;
    margin-bottom: 1em;
}

.g-message {
    background-position: 0 50%;
}

/* Breadcrumbs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.g-breadcrumbs {
    display: inline-block;
    width: 100%;
    clear: both;
    padding: 0;
    background-color: #eeeded;
    /*height: 22px;*/
    min-height: 22px;
    border: none;
}

.g-breadcrumbs li {
    background: transparent url('../images/ico-separator.gif') no-repeat scroll left center;
    float: left;
    /*  padding: 1em 8px 1em 18px; */ /* -- original -- */
    padding: 3px 4px 3px 10px; /* -- pridano -- */
}

.g-breadcrumbs li.g-active {
    padding: 3px 4px 3px 12px;
}

.g-breadcrumbs li.g-active.g-first {
    padding: 3px 4px 3px 10px;
}

.g-breadcrumbs .g-superfirst {
    display: none;
}

.g-breadcrumbs .g-first {
    background: none;
    /*padding-left: 0;*/ /*proc?*/
}

.g-breadcrumbs .g-superfirst {
    background: none;
    padding: 1px;
}

.g-breadcrumbs .superlast {
    background: none;
    padding: 3px 8px 3px 0px;
}

.g-breadcrumbs li a,
.g-breadcrumbs li span {
    display: block;
}

#g-dialog ul.g-breadcrumbs {
    margin-left: 0;
    padding-left: 0;
}

/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.g-paginator {
    padding: .2em 0;
    width: 100%;
}

.g-paginator li {
    float: left;
    width: 32.5%;
}

.g-paginator .g-info {
    background: none;
    padding: .2em 0;
    text-align: center;
    width: 35%;
}

/* Reklama HAD ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#g-reklama-had {
    background-color: #eeeded;
    height: 19px;
    border: none;
    font-size: 11px !important;
    padding-left: 10px;
    padding-top: 3px;
}

.hp-spaceup {
    padding-left: 0px;
    padding-top: 32px;
    max-width: 950px;
    /* border: 1px solid green; */
}

.hp-spaceupnone {
    display: none !important;
    visibility: hidden;
}

.hp-spacebetween {
    padding-top: 12px;
}

.exhib-spaceup {
    padding-left: 0px;
    padding-top: 29px;
    max-width: 950px;
    /* border: 1px solid green; */
}

/* Dialogs and panels ~~~~~~~~~~~~~~~~~~ */

#g-dialog {
    text-align: left;
}

#g-dialog legend {
    display: none;
}

#g-dialog .g-cancel {
    margin: .4em 1em;
}

#g-panel {
    display: none;
    padding: 1em;
}

/* Inline layout  ~~~~~~~~~~ */

.g-inline li {
    float: left;
    margin-left: 1.8em;
    padding-left: 0 !important;
}

.g-inline li.g-first {
    margin-left: 0;
}

/* Autocomplete  ~~~~~~~~~~ */

.ac_loading {
    background: white url('../images/loading-small.gif') right center no-repeat !important;
}

.hp .g-paginator .g-info {
    visibility: hidden;
}

/*Nezobrazovat strankovani na HP*/
.hp .g-paginator {
    display: none !important;
    visibility: hidden;
}

/*Nezobrazovat komentare v profilu uzivatele*/
#g-user-profile .g-block.kome {
    display: none;
}

#g-user-profile th {
    vertical-align: top;
}

#g-edit-user-form .loading {
    width: 16px;
    height: 16px;
    display: inline-block;
    float: right;
    background-color: #FFF !important;
}

.g-block.info table, .g-block.info tr, .g-block.info td {
    max-width: 100%;
}

/*Profil uzuvatele - stylovani tabuly, pretekajici text*/
#g-user-profile table {
    table-layout: fixed; /*nutnost, aby fungoval word-wrap: break-word;*/
}

#g-user-profile th {
    width: 177px;
}

.user-profile-info {
    word-wrap: break-word;
    word-break: normal;
    overflow: hidden;
    white-space: pre-wrap;
}

.user-profile-info a {
    text-decoration: underline;
}

.user-profile-link {
    text-decoration: underline;
}

.g-breadcrumbs span.profiles {
    color: #000;
    font-weight: normal;
    margin-left: -2px;
}

.g-breadcrumbs span.profiles span {
    font-weight: bold;
    display: inline-block;
}

.profiles .g-thumbnail-wrapper a + h2 {
    display: none !important;
}

/* Responsive */
/* http://blog.invisionapp.com/large-desktop-experience-responsive-design/ */
/* Media queries */

/*-----------------------*/
body {
    width: 100%;
    background-color: #f8f8f8;
}

#doc3 {
    margin: 0 auto;
    padding: 0 30px;
    width: 1220px;
    max-width: 100%;
}

.yui-t5 #yui-main .yui-b {
    margin: 0 !important;
}

#yui-main {
    width: 980px; /*950 fotka + 30 margin k sidebaru*/
    margin: 0 !important;
}

#g-sidebar {
    width: 240px;
    margin: 0;
    padding: 0 0px 0 0;
}

#g-sidebar a img, #g-sidebar a img.g-thumbnail {
    width: auto; /*zachovani proporci*/
    height: auto;
    max-width: 100%;
    max-height: 450px;
}

.g-view #g-content #g-album-grid .g-item {
    width: 33.3333%;
    height: 259px !important;
    position: relative;
    background-color: #fff;
    float: left;
    padding: 0;
    margin: 5px 0;
    position: relative;
    text-align: center;
    z-index: 1;
}

.g-view .page-41 #g-content #g-album-grid .g-item {
    height: 353px !important;
}

.g-view #g-content #g-album-grid .g-item .wrapper {
    margin: 0 8px 0 0;
    padding: 0px;
    border: 1px solid #ccc; /*#e0e0e0*/
    height: 100%;
    overflow: hidden;
}

.g-view #g-content #g-album-grid .g-item .wrapper .g-align {
    padding-top: 14.75px;
}

.g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
    width: 280px;
    /*pomer stran nahledu fotek*/
    height: calc(280px * 0.67);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.g-view .page-41 #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
    height: calc(280px * 1);
}

/*stejna sirka popisu - zarovnani vlevo*/
.g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
    width: 280px;
    margin: 0 auto;
    text-align: left;
}

#g-content #g-album-grid .g-item .g-photodesc a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: 280px;
    padding-top: 2px;
}

/*.g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper:before {
  content: ' ';
  display: inline-block;
  vertical-align: middle;   vertical alignment of the inline element 
  height: 100%;
}*/
.g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper a.navysku {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex; /* add */
    justify-content: center; /* add to align horizontal */
    align-items: center; /*add to align vertical*/
}

.g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper a > img {

}

.g-thumbnail-wrapper a {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail {
    /*width: initial;*/
    /*width: 100%;*/
    /*height: auto;*/
    /*/*min-height: 120px;*/
    /*min-height: 150px;*/
    /*overflow: hidden;*/
    /*max-width: none;*/

    width: 100%;
    height: 100%;
    object-fit: cover;
    /*image-rendering: pixelated;*/
    overflow: hidden;
}

/*Pro alba puvodni zpusob, kde nehrozi rozmazani*/
/*.g-view #g-content #g-album-grid .g-item.g-album .wrapper .g-align .g-thumbnail {
  width: 100%;
  width: initial;
  height: auto;
  min-height: 100px;
  overflow: hidden;
  max-width: none;
}*/
.ie .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail {
    width: initial;
    height: auto;
    min-height: 150px;
    overflow: hidden;
}

#g-content img {
    width: 100%;
    max-width: 950px;
    height: auto;
}

#g-content #g-content-alba img {
    width: initial; /* Sibik fotky 600px */
    max-width: 100%;
}

#g-content #g-album-grid .g-item .g-valign {
    margin-top: 10px !important;
    height: 100%;
}

#g-content #g-album-grid .g-hover-item .g-valign .g-photodesc {
    width: 100%;
    height: 40%;
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-transition: all .5s;
    transition: all .5s;
}

#g-content #g-album-grid .g-item .g-valign .g-photodesc a {
    color: #000 !important;
}

#g-content #g-album-grid .g-item .g-photodesc a:hover {
    text-decoration: underline;
}

#g-content #g-album-grid .g-hover-item .g-valign .g-photodesc a {
    color: #000 !important;
}

#g-content #g-album-grid .g-item .g-valign h2 {
    position: absolute;
    bottom: 10px;
    text-align: center;
    width: 100%;
}

#g-content #g-album-grid .g-hover-item .g-valign h2 {
    position: absolute;
    bottom: calc(100% - 30px);
    text-align: center;
    width: 100%;
}

#g-content #g-album-grid .g-item .g-valign .g-metadata {
    position: absolute;
    width: 100%;
    display: none;
}

#g-content #g-album-grid .g-hover-item .g-valign .g-metadata {
    position: absolute;
    top: 8px;
    text-align: center;
    width: 100%;
    display: block;
}

#g-content .g-item.g-photo .g-photodesc {
    position: relative;
    top: -2px;
}

#g-content .g-item.g-album .g-photodesc, #g-content .profiles .g-item.g-photo .g-photodesc {
    position: relative;
    top: 6px; /*8px*/
}

#g-content .g-photo .g-photodesc {
    position: relative;
}

#g-content .g-photo h2 {
    display: block;
    margin: 0;
}

#g-content .g-item .g-metadata {
    display: block;
    position: absolute;
    margin: 0;
    width: 100%;
    top: 18px;
}

.g-item .g-item-view-count {
    display: none;
}

.g-item .g-item-author, .g-item .g-item-date-added {
    display: inline-block;
}

.g-item .g-item-date-added .sep:before {
    display: inline-block;
    content: "|";
    width: 16px;
    height: 10px;
    color: #333;
    text-align: center;
}

#g-sidebar .g-block-content {
    padding: 0 10px;
}

#g-adsense .g-block-content {
    text-align: left;
}

#g-adsense .g-block-content img {
    display: block;
    margin: 0 auto;
    max-width: 99.5%;
}

#g-adsense .g-block-content .padding {
    padding-left: 10px;
    padding-right: 10px;
}

#g-adsense .g-block-content .border {
    padding-top: 15px;
    border: 1px solid #ccc;
    font-size: 13px;
}

#g-adsense .g-block-content .ul-advert {
    font-size: 13px;
}

#g-adsense .g-block-content .text-decoration {
    text-decoration: underline;
    font-weight: bold;
}

#g-adsense .g-block-content ul li {
    list-style: disc;
    margin-left: 30px;
}

#g-intro ul li {
    list-style: disc;
    margin-left: 15px;
}

#g-image-block .g-block-content {
    text-align: center;
}

.rabidRating .ratingFill {
    /*background-color: #0000B5 !important;*/
}

.rabidRating .ratingFill.ratingError {
    /*background-color: #C9C9C9 !important;*/
}

@media (min-width: 961px) {
    /* Plati pouze pro nemobilni zobrazeni */
    #g-sidebar #g-adsense.g-block h2 {
        height: 8px;
        font-size: 9px !important;
        font-weight: normal;
        text-align: right;
        margin: 0;
        padding: 0;
        position: relative;
        top: -10px;
        background-color: #fff;
    }

    #g-adsense .g-block-content {
        padding: 0;
        margin: 0;
        position: relative;
        top: -7px;
        margin-bottom: -8px;
        text-align: left;
    }
}

.g-thumbnail {
    /*  max-width: 185px;
      height: auto;
      max-height: 180px;
      width: auto;*/
}

#g-content #g-album-grid .g-album {
    background-color: #fff;
}

#g-content #g-album-grid.album, #g-content #g-album-grid.dynamic, #g-search-results #g-album-grid {
    margin: -4px -8px 30px 0;

}

#g-content .hp-photo {
    margin-bottom: 30px;
}

#g-content .hp-photo, #g-content #g-content-alba, #g-action-status {
    max-width: 950px;
}

#g-content .hp-foto-wrapper .popis {
    margin: 4px 0 0;
    font-size: 10px;
}

#g-quick-search-form-mobile {
    display: none;
}

#bd #login-form {
    display: none;
}

.mobile #bd #login-form {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.95;
    z-index: 999;
}

.mobile #bd #login-form #g-login {
    margin: 0 auto;
    display: block;
    width: 50vh;
    max-width: 90%;
    height: 100%;
}

.mobile #bd #login-form #g-login #g-login-form {
    width: 100%;

}

.mobile #bd #login-form #g-login #g-login-form fieldset {
    border: none;
    padding: 0;
}

.mobile #bd #login-form #g-login #g-login-form legend {
    padding: 10px 0;
    font-size: 14px;
}

.mobile #bd #login-form #g-login #g-login-form ul li input[type="text"], .mobile #bd #login-form #g-login #g-login-form ul li input[type="password"] {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
}

#g-login .submit.g-button.ui-state-default {
    line-height: initial;
    padding: .2em;
    height: auto;
}

#g-login .submit.g-button.ui-state-default:hover {
    border: 1px solid #d0d0d0;
    background: #f0f0f0;
}

.grecaptcha-badge {
    visibility: collapse !important;
}

.ui-widget-overlay {
    width: 100% !important;
    height: 100% !important;
    background-color: #000;
    opacity: 0.7;
    top: 0 !important;
}

.mobile > .ui-dialog.ui-widget.ui-widget-content.ui-corner-all {
    max-width: 95% !important;
    /*height: 225px !important;*/
    /*left: 0 !important;*/
    /*top: 100px !important;*/
    margin: 0 auto;
    right: 0;
    max-width: 375px;
}

#g-register-form {
    width: 350px;
    max-width: 100%;
}

#g-login-form, #g-add-user-form #g-edit-user-form, #g-delete-user-form, #g-user-admin {
    width: 270px;
    max-width: 100%;
}

.mobile .ui-draggable .ui-dialog-titlebar {
    cursor: auto;
}

.ui-dialog .ui-dialog-titlebar {
    padding: 10px 13px 10px 12px;
}

.mobile .ui-dialog .ui-dialog-titlebar {
    padding: 10px 13px 10px 12px;
}

.ui-dialog .ui-dialog-titlebar-close {
    position: relative;
    right: 0;
    top: 0;
    float: right;
    margin: 0;
    padding: 0;
}

.mobile .ui-dialog .ui-dialog-titlebar-close {
    width: 26px;
    height: 26px;
}

.mobile .ui-icon {
    width: 26px;
    height: 26px;
}

.mobile .g-paginator .ui-icon, .mobile #g-comments .ui-icon {
    width: 16px;
    height: 16px;
}

fieldset {
    border: 1px solid #878787;
    padding: 0 0;
}

#g-content #g-comment-form {
    position: relative;
}

#g-comment-form-anchor {
    display: none;
}

#g-add-comment, #g-add-comment-not-allowed {
    position: absolute;
    right: 0;
    top: 2px;
    cursor: pointer;
}

.g-add-comment-not-allowed.msg {
    padding: 10px 0;
    color: red;
}

#g-content legend {
    padding: 0;
}

#g-content #g-comment-form legend {
    display: none;
}

.logged #g-content #g-comment-form ul li:nth-child(-n+3) {
    display: none;
}

#g-content #g-text {
    display: block;
    clear: both;
    width: calc(100% - 14px);
    max-width: 100%;
    resize: vertical;
    padding: 6px 6px;
}

#g-content #g-comments ul li {
    margin: 0;
}

#g-content #g-comment-form input[type="submit"] {
    display: block;
    clear: both;
    float: right;
    height: 22px;
    margin-top: 15px;
}

#g-content #g-comments #g-comment-detail ul li {
    margin: 0;
}

#g-content #g-comments #g-comment-detail ul li > label {
    margin: 15px 0 0;
    display: block;
}

#g-content #g-comments #g-comment-detail ul li:last-child {
    margin-bottom: 30px;
}

#g-content #g-comments #g-comment-detail ul li.g-no-comments {
    margin-bottom: 0;
}

#g-content #g-comments .g-author {
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
    color: #999;
    height: 28px;
    line-height: 28px;
}

#g-content #g-comments .comment {
    padding: 0;
    margin-bottom: 10px;
}

.ui-widget-header .ui-icon {
    background-image: url(../images/close_btn.png) !important;
    background-size: contain;
    background-position: 0 0;
}

.ui-dialog .ui-dialog-title {
    float: left;
    margin: 0;
    height: 16px;
    line-height: 16px;
    position: relative;
    top: 1px;
}

.mobile .ui-dialog .ui-dialog-title {
    height: 26px;
    line-height: 26px;
    top: 0;
}

.ui-widget-header .ui-state-focus, .ui-widget-header .ui-state-hover {
    border: none;
    background: none !important;
    background-color: transparent;
    font-weight: normal;
    color: #434343;
}

.ui-widget-header {
    border: 1px solid #aaaaaa;
    background: transparent;
    background-color: #eeeded;
    color: #222222;
    font-weight: bold;
}

.Architektura .g-paginator .g-info {
    visibility: hidden;
}

.g-paginator .total {
    padding-left: 5px;
}

.mobile .g-paginator .total {
    /*display: block;*/
}

.mobile .g-paginator .count {
    display: none;
}

#g-comment-form fieldset {
    border: none;
}

.g-page-block-content {
    padding: 0 10px;
}

ul.g-breadcrumbs > .mobile-header {
    font-weight: bold;
    padding: 3px 4px 3px 10px;
    font-size: 13px !important;
    background: none;
}

.g-breadcrumbs {
    font-size: 13px !important;
}

#g-user-profile .avatar-image {
    max-height: 170px;
}

#g-user-profile .avatar-image.default {
    position: relative;
    overflow: hidden;
}

#g-user-profile .avatar-image .g-avatar {
    position: relative;
    height: 100%;
    width: auto;
    left: 7px;
    padding-bottom: 30px;
    top: -22px;
    margin-bottom: -35px;
}

#g-user-profile .avatar-image.default .g-avatar {
    position: relative;
    left: -84px;
    padding-bottom: 0px;
    margin-bottom: -55px;
}

@media (max-width: 1280px) {
    /* hi-res laptops and desktops */
    #doc3 {
        width: 984px; /*984 + 20 + 20*/
        padding: 0 20px;
    }

    #yui-main {
        width: 744px; /*724 + 20*/
        float: left;
    }

    #yui-main .hp-foto-wrapper {
        max-width: 724px;
    }

    #g-content .hp-photo, #g-content #g-content-alba, #g-action-status {
        max-width: 724px;
    }

    #g-sidebar {
        width: 240px;
        float: left;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 33.333333%;
        height: 198px !important;
        position: relative;
        background-color: #fff;
        float: left;
        padding: 0;
        position: relative;
        text-align: center;
        z-index: 1;
    }

    .g-view .page-41 #g-content #g-album-grid .g-item {
        height: 266px !important;
    }

    #g-content .g-item .g-metadata {
        display: block;
        position: absolute;
        margin: 0;
        width: 100%;
        /*    top: 18px;rychly nahled*/
        top: 17px;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align {
        padding-top: 15px;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: 204px;
        height: calc(204px * 0.67);
        position: relative;
        margin: 0 auto;
        overflow: hidden;
    }

    .g-view .page-41 #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        height: calc(204px * 1);
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 204px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 204px;
        line-height: 100%;
        padding-top: 3px;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail {
        /*width: 100%;*/
        /*width: initial;*/
        /*height: auto;*/
        /*min-height: 100px;*/
        /*overflow: hidden;*/
        /*max-width: none;*/

        width: 100%;
        height: 100%;
        object-fit: cover;
        /*image-rendering: pixelated;*/
        overflow: hidden;
    }

    /*Pro alba puvodni zpusob, kde nehrozi rozmazani*/
    /*  .g-view #g-content #g-album-grid .g-item.g-album .wrapper .g-align .g-thumbnail {
        width: 100%;
        width: initial;
        height: auto;
        min-height: 100px;
        overflow: hidden;
        max-width: none;
      }*/
    .ie .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail {
        width: 100%;
        width: initial;
        height: auto;
        min-height: 100px;
        overflow: hidden;
        max-width: none;
    }

    #g-content #g-album-grid .g-item h2 {
        margin: 10px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #g-content .g-item.g-album .g-photodesc, #g-content .profiles .g-item.g-photo .g-photodesc {
        position: relative;
        top: 5px;
    }

    #g-subfooter2 {
        margin-left: 7.5px;
    }

    /* VYHODIT
        #cookie-bar > p {
            float: none !important;
            clear: both;
        }
    */
}

@media (min-width: 961px) and (max-width: 1280px) {
    .hp #g-header {
        margin-bottom: 29.5px;
    }
}

@media (max-width: 1024px) {
    /* big landscape tablets, laptops, and desktops */
    #doc3 {
        width: 920px; /*max 960 = 920 + 20 + 20*/
        padding: 0 20px;
    }

    #yui-main {
        width: 744px;
        float: left;
    }

    #g-sidebar {
        width: 176px;
        float: left;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 33.333333%;
        height: 198px !important;
    }
}

/* tablet, landscape iPad, lo-res laptops ands desktops */
/*max 750 = 710 + 20 + 20*/
@media (min-width: 751px) and (max-width: 960px) {
    #doc3 {
        width: 710px;
    }

    #yui-main {
        width: 100%;
        float: none;
    }

    #g-content {
        margin-bottom: 10px;
    }

    #g-sidebar {
        width: 100%;
        float: left;
        margin-top: 0;
    }

    #yui-main .hp-foto-wrapper {
        max-width: 100%;
    }

    #g-content .hp-photo, #g-content #g-content-alba {
        max-width: 100%;
    }

    #g-sidebar .g-block {
        clear: none;
        margin-bottom: 2.5em;
        width: 48%;
        float: left;
    }

    #g-sidebar .g-block:nth-child(1),
    #g-sidebar .g-block:nth-child(3),
    #g-sidebar .g-block:nth-child(5),
    #g-sidebar .g-block:nth-child(7),
    #g-sidebar .g-block:nth-child(9),
    #g-sidebar .g-block:nth-child(11),
    #g-sidebar .g-block:nth-child(13) {
        margin-right: 4%;
        clear: both;
    }

    .g-paginator {
        padding: 5px 0 30px;
    }

    #g-banner #g-quick-search-form input[type='text'] {
        width: 80px;
    }
}

@media (min-width: 480px) and (max-width: 750px) {
    #g-adsense {
        width: 100%;
        float: none;
        margin: 0 auto;
        text-align: center;
        margin-bottom: 20px;
    }

    #g-image-block {
        width: 100%;
        float: none;
    }

    #g-sidebar .g-image-block {
        text-align: center;
    }

    #g-sidebar a img, #g-sidebar a img.g-thumbnail {
        width: auto; /*zachovani proporci*/
        height: auto;
        max-width: 450px;
        max-height: 450px;
    }
}

@media (max-width: 960px) {
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    #doc3 {
        /*width: calc(100% - 20px);*/ /*zde padding uz jen 2x 10px*/
        width: 726px;
        padding: 0 10px;
    }

    #yui-main {
        width: 100%;
        float: none;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 33.333333%;
        height: 198px !important;
    }

    #g-sidebar {
        width: 100%;
        float: left;
        margin-top: 0;
    }

    a#g-logo {
        position: relative;
        top: 20px;
        margin: 0 auto;
        display: block;
        width: 252px;
        float: none;
    }

    #g-site-menu, #g-quick-search-form {
        display: none; /*todo*/
    }

    #g-photo-edit {
        display: inline-block;
        width: 100%;
        margin-bottom: 20px;
    }

    #g-photo-edit .wrapper {
        display: block;
        float: right;
    }

    #g-photo-edit a {
        display: inline-block;
        margin: 0 6px 0 6px;
        font-size: 12px;
    }

    #g-photo-edit a:hover {
        text-decoration: none
    }

    #g-photo-edit a:last-child {
        margin-right: 0;
    }

    #g-mobile-site-menu {
        display: block;
        float: left;
    }

    #g-mobile-site-menu-content {
        /*display: block;*/
        visibility: hidden;
        overflow: hidden;
        list-style: none;
        background-color: #4f4b48;
        opacity: 0.4;
        width: 300px;
        height: calc(100% - 75px);
        height: 602px;
        position: absolute;
        top: 75px;
        margin-bottom: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        -webkit-transition: all .9s cubic-bezier(0.75, 0, 0.25, 1);
        transition: all .9s cubic-bezier(0.75, 0, 0.25, 1);
        transform-origin: top right;
        -webkit-transform: translateX(300px);
        transform: translateX(300px);
        /*-webkit-transform: scale(0);
        transform: scale(0);*/
    }

    #g-mobile-site-menu-content.logged {
        height: 639px;
    }

    #g-mobile-site-menu-content.open {
        display: block;
        visibility: visible;
        opacity: 0.95;
        -webkit-transform: translateX(0px);
        transform: translateX(0px);
        /*-webkit-transform: scale(1);
        transform: scale(1);*/
    }

    #g-mobile-site-menu-content .wrapper {
        /*padding: 20px;*/
        padding: 18px 15px;
    }

    #g-mobile-site-menu-content ul {
        padding: 0;
    }

    #g-mobile-site-menu-content ul li:first-child {
        display: inline-block;
    }

    #g-mobile-site-menu-content ul li a.sf-with-ul:after {
        content: "\2013";
        background-image: none !important;
        display: inline-block;
        width: 10px;
        height: 25px;
        line-height: 25px;
        text-align: center;
        cursor: none !important;
    }

    #g-mobile-site-menu-content ul .sf-sub-indicator {
        display: none;
    }

    #g-mobile-site-menu-content ul > li > ul {
        display: inline-block !important;
        visibility: visible !important;
        padding: 0;
        margin: 0;
    }

    #g-mobile-site-menu-content ul > li > ul li {
        border-bottom: none;
        display: inline-block;
        width: auto;
        width: unset;
        height: 25px;
        padding: 0;
    }

    #g-mobile-site-menu-content ul > li > ul li:first-child {
        margin-right: 0;
        width: auto;
        width: unset;
    }

    #g-mobile-site-menu-content ul > li > ul li:first-child:after {
        content: "";
        border-right: 1px solid #fff;
        padding: 3px 3px;
        margin-right: 2px;
        height: 12px;
        top: 11px;
        display: block;
        float: right;
        width: unset;
        position: relative;
    }

    #g-mobile-site-menu-content ul > li > ul li a {
        text-transform: lowercase;
        padding: 0 5px;
    }

    #g-mobile-site-menu-content li {
        height: 41px;
        line-height: 41px;
        text-align: left;
        padding: 0;
        display: inline-block;
        border-bottom: 1px solid #fff;
        width: 100%;
    }

    #g-mobile-site-menu-content li a {
        font-size: 13px !important;
        color: #ddd;
        width: 100%;
        display: block;
        padding: 0;
        margin: 0;
        font-weight: normal;
        text-decoration: none;
        cursor: pointer;
    }

    #g-mobile-site-menu-content li a font {
        color: #fff !important;
    }

    #g-quick-search-form-mobile {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        border: none;
        z-index: 1000;
        opacity: 1;
    }

    #g-quick-search-form-mobile .wrap {
        background-color: #eeeded;
        width: 100%;
        height: 45px;
        display: block;
        position: relative;
    }

    #g-quick-search-form-mobile .wrap ul li:first-child {
        width: calc(100% - 82px);
        float: left;
        padding: 0;
        overflow: hidden;
    }

    #g-quick-search-form-mobile .wrap ul li:last-child {
        width: 70px;
        float: right;
    }

    #g-quick-search-form-mobile .close {
        display: none !important;
    }

    #g-quick-search-form-mobile #g-search-mobile {
        width: 100%;
        height: 27px;
        margin: 3px 0 3px 5px;
    }

    #g-quick-search-form-mobile #g-search-submit-mobile {
        height: 37px;
        margin: 1px 0 3px 5px;
        font-size: 13px;
        width: 77px;
        position: relative;
        left: -17px;
    }

    .mobile .search-overlay {
        display: none !important;
    }

    .mobile #g-search-form {
        display: none;
    }

    /*.mobile #g-quick-search-form-mobile .close {
      display: block !important;
      width: 20px;
      height: 20px;
      float: right;
      background-color: #000099;
      position: absolute;
    }*/
    body .search-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0.5;
        z-index: 999;
        top: 0;
        left: 0;
    }

    ul#g-login-menu .pre-text {
        display: none;
    }

    .avatar-image .g-avatar {
        top: 10px;
        margin-bottom: 0px;
    }

    .avatar-image.default .g-avatar {
        top: -22px;
        margin-bottom: -55px;
    }

    .metaInfo1 {
        padding-bottom: 7px;
    }

    /*mobilni menu*/
    #g-login-menu {
        position: relative;
        top: -45px;
    }

    #g-login-menu li {
        float: none;
        padding: 5px 10px !important;
        margin: 0 0 4px 0;
        background-color: #eeeded;
        width: 52px;
        text-align: center;
    }

    #g-banner {
        height: 75px;
    }

    ul#g-login-menu-mobile {
        margin: 0;
        padding: 0 !important;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #fff;
        width: 100%;
        float: left;
    }

    #g-login-menu-mobile li {
        display: inline-block;
        float: left;
        width: auto;
        width: unset;
        height: 25px;
        line-height: 25px;
        margin: 8px 0;
        padding: 0;
        padding-right: 10px;
        margin-right: 10px;
        border: none;
        /*border-right: 1px solid #fff;*/
        text-align: center;
    }

    #g-login-menu-mobile li.logged {
        width: 100%;
        border-right: none;
    }

    #g-login-menu-mobile li.logged .pre-text {
        float: left;
        color: #ddd;
    }

    #g-login-menu-mobile li.logged .pre-text:after {
        content: ":";
        display: block;
        float: right;
        padding-right: 5px;
    }

    #g-login-menu-mobile li a {
        height: 25px;
        line-height: 25px;
    }

    #g-login-menu-mobile li:last-child {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    #g-login-menu-mobile li:nth-child(2) {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    #g-login-menu-mobile #mobile-search {
        float: right;
    }

    #g-mobile-site-menu-content .category-header {
        color: #fff;
        text-align: left;
        margin: 15px 0 0;
        padding: 8px 0;
        height: 25px;
        line-height: 25px;
        border-bottom: 1px solid #fff;
        display: inline-block;
        width: 100%;
    }

    /*  #g-banner #g-quick-search-form {
        display: block;
        top: -45px;
      }
      #g-quick-search-form.mobile {
        height: 22px;
      }
      #g-quick-search-form.mobile ul li:first-child {
        display: none;
        height: 22px;
        padding: 0;
      }
      #g-quick-search-form.mobile input.text {
        height: 20px;
        padding: 0;
        font-size: 13px;
        padding: 0 5px;
      }
      #g-quick-search-form ul li:last-child {
            padding: 5px 10px !important;
            margin: 0 0 4px 0;
            width: 52px;
            text-align: center;
            background-color: #eeeded;
        padding: 0;
      }
      #g-quick-search-form #g-search-submit {
            border: none;
            font-size: 11px;
            color: #000;
            margin: 0;
            padding: 0;
            width: 100%;
            height: auto;
        border: 1px solid #ccc;
        background-color: #eeeded;
        background-image: none !important;
      }
      #g-quick-search-form #g-search-submit:hover {
        background-color: #eeeded;
        text-decoration: underline;
      }
      #g-quick-search-form-link {
        display: block;
        float: right;
        position: relative;
        top: -9px;
        font-weight: bold;
      }
      #g-quick-search-form-link {
        background-color: #eeeded;
        top: 32px;
        left: 144px;
        color: #000;
        font-weight: normal;
        text-decoration: none !important;
      }*/
    #g-mobile-site-menu {
        display: block;
        float: right;
        position: relative;
        top: -12px;
        font-weight: bold;
    }

    #g-quick-search-form-link, #g-login-menu {
        /*TODO docasne*/
        display: none !important;
    }

    #g-mobile-site-menu .border-menu {
        display: none;
    }

    #g-mobile-site-menu .border-menu.open {
        display: block;
    }

    #doc3 {
        min-height: 100%;
        background-color: #fff;
        position: relative;
        top: 0;
        bottom: 100%;
        left: 0;
        z-index: 1;
    }

    .g-paginator {
        padding: 5px 0 30px;
    }

    #reklama-had-wrapper {
        overflow: hidden;
        width: 100%;
    }

    #reklama-had-wrapper .reklama-had img {
        max-width: 100%;
    }
}

@media (max-width: 780px) {
    #doc3 {
        width: 600px;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 33.333333%;
        height: 169px !important;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: 163px;
        height: calc(163px * 0.67);
    }

    .g-view .page-41 #g-content #g-album-grid .g-item {
        height: 224px !important;
    }

    .g-view .page-41 #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        height: calc(163px * 1);
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 163px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 163px;
    }
}

@media (max-width: 640px) {
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    #doc3 {
        /*width: calc(100% - 20px);*/ /*zde padding uz jen 2x 10px*/
        width: 440px;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: 184px;
        height: calc(184px * 0.67);
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 184px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 184px;
    }

    #yui-main {
        width: 100%;
        float: none;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: calc(100% / 2);
        height: 185px !important;
    }

    #g-footer div:first-child {
        float: none;
        text-align: center;
    }

    ul#g-login-menu-footer {
        left: 0;
        width: 100%;
    }

    ul#g-login-menu-footer > li {
        float: none;
        text-align: center;
        margin-left: 0;
    }

    ul#g-login-menu-footer > li #g-login-link {
        font-size: 10.4px;
    }

    #g-footercopycolor {
        float: none;
        text-align: center;
        padding: 22px 0 0;
    }

    #g-subfooter2 {
        text-align: center;
        margin: 0;
    }

    /*tlacitka dalsi a prvni a predchozi a posledni */
    .g-paginator .g-button {
        width: 81px;
        margin: 3px 0;
    }

    .g-paginator .g-button.ui-icon-left {
        text-align: left;
    }

    #g-user-profile .ui-helper-clearfix {
        margin-bottom: 45px;
    }

    .g-paginator .g-button.ui-icon-right {
        text-align: right;
    }

    /*prehozeni poradi Prvni a Predchozi*/
    .g-paginator .g-first {
        display: flex;
        flex-direction: column-reverse;
    }

    .g-paginator .g-text-right {
    }

    .g-paginator .g-info {
        padding: 9px 0;
    }

    .g-paginator .g-info .spacer {
        display: block;
    }

    #g-error {
        height: 100px;
    }
}

@media (max-width: 480px) {
    /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
    #doc3 {
        /*zde padding uz jen 2x 10px*/
        width: calc(100% - 20px);
        /*width: 340px;*/
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: 174px;
        height: calc(174px * 0.67);
    }

    .g-view .page-41 #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        height: calc(174px * 1);
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 174px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 174px;
    }

    #yui-main {
        width: 100%;
        float: none;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 50%;
        height: 177px !important;
    }

    .g-view .page-41 #g-content #g-album-grid .g-item {
        height: 235px !important;
    }

    #g-sidebar .g-block {
        clear: both;
        margin-bottom: 2.5em;
        width: 100%;
        float: left;
    }

    a#g-logo {
        position: relative;
        top: 20px;
        margin: 0;
        display: block;
        width: 252px;
        float: none;
        max-width: calc(100% - 92px);
    }

    #g-user-profile th, #g-user-profile td {
        border: none;
        display: block;
        text-align: left;
    }

    a#g-logo img {
        max-width: 100%;
    }

    .g-paginator li {
        width: 27.5%;
    }

    .g-paginator .g-info {
        width: 45%;
    }
}

@media (max-width: 420px) {
    #doc3 {
        /*zde padding uz jen 2x 10px*/
        width: calc(100% - 20px);
        /*width: 340px;*/
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: 144px;
        height: calc(144px * 0.67);
    }

    .g-view .page-41 #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        height: calc(144px * 1);
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 144px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 144px;
    }

    #yui-main {
        width: 100%;
        float: none;
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 50%;
        height: 155px !important;
    }

    .g-view .page-41 #g-content #g-album-grid .g-item {
        height: 204px !important;
    }
}

@media (max-width: 380px) {
    #doc3 {
        width: calc(100% - 20px); /*zde padding uz jen 2x 10px*/
    }

    .g-view #g-content #g-album-grid .g-item {
        width: 50%;
        height: 151px !important;
    }

    .g-view .page-41 #g-content #g-album-grid .g-item {
        height: 195px !important;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: 134px;
        height: calc(134px * 0.67);
    }

    .g-view .page-41 #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        height: calc(134px * 1);
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 134px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 134px;
    }

    .g-paginator li {
        width: 40%;
    }

    .g-paginator .g-text-right {
        float: right;
    }

    .g-paginator .g-info {
        width: 10%;
    }
}

@media (max-width: 320px) {
    /* smartphones, iPhone, portrait 480x320 phones */
    #doc3 {
        width: calc(100% - 20px); /*zde padding uz jen 2x 10px*/
    }

    #yui-main {
        width: 100%;
        float: none;
    }

    .hp .g-view #g-content #g-album-grid .g-item, .g-view #g-content #g-album-grid .g-item,
    .g-view #g-content #g-album-grid .g-item, .g-view #g-content #g-album-grid .g-item,
    .g-view .page-41 #g-content #g-album-grid .g-item, .g-view #g-content #g-album-grid .g-item {
        width: 100%;
        height: auto !important;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-thumbnail-wrapper {
        width: auto;
        height: auto !important;
        max-width: 90%;
        position: relative;
        margin: 0 auto;
        overflow: hidden;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper {
        padding-bottom: 15px;
    }

    .g-view #g-content #g-album-grid .g-item .wrapper .g-align .g-photodesc {
        width: 90%;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 184px;
    }

    #g-content #g-album-grid .g-item .g-photodesc a {
        font-size: 11px;
    }

    .avatar-image.default .g-avatar {
        left: -64px;
    }

    .g-paginator li {
        max-width: 39%;
    }

    .g-paginator .g-info {
        width: 0;
    }
}

@media (max-width: 220px) {
    /* smartphones, iPhone, portrait 480x320 phones */
    #g-content #g-album-grid .g-item .g-photodesc a {
        width: 140px;
    }
}