 /* obsahy stránek */
 #podbody:not(.pgkt-uv)  {
  background: linear-gradient( to bottom, #ede6da 0, #ede6da 90px, #fff 20% );
}

#podbody[class*="pgkt-cn"] #portmain .sct-std:first-of-type {
 background-color: #ede6da;
 
  padding: 180px 8vw 10px 8vw;
  border-radius: max(40vw, 400px) max(40vw, 400px) 0 0;
  box-sizing: border-box;
  background-image: url("/muzeumkt/user/svg/spacer.svg");
  background-repeat: no-repeat;
  background-position: center 50px;
  background-size: auto 80px;
  width: max(70vw, 800px);
}

#podbody[class*="pgkt-cnsksh"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnmumh"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnblbh"] #portmain .sct-std:first-of-type { 
 background-image: url("/muzeumkt/user/svg/history_white.svg");  
}
#podbody[class*="pgkt-cnsksv"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnmumv"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnblbv"] #portmain .sct-std:first-of-type { 
 background-image: url("/muzeumkt/user/svg/eyes_white.svg");  
}
#podbody[class*="pgkt-cnskso"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnmumo"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnblbo"] #portmain .sct-std:first-of-type  { 
 background-image: url("/muzeumkt/user/svg/clock_white.svg");  
}
#podbody[class*="pgkt-cnskss"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnmums"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnblbs"] #portmain .sct-std:first-of-type  { 
 background-image: url("/muzeumkt/user/svg/ticket_white.svg");  
}
#podbody[class*="pgkt-cnsksf"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnmumf"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnblbf"] #portmain .sct-std:first-of-type  { 
 background-image: url("/muzeumkt/user/svg/photo_white.svg");  
}
#podbody[class*="pgkt-cnsksr"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnmumk"] #portmain .sct-std:first-of-type, #podbody[class*="pgkt-cnblbk"] #portmain .sct-std:first-of-type  { 
 background-image: url("/muzeumkt/user/svg/kontakt_white.svg");  
}

#portmain .subpagenavig +  #pgsc-1  {
 
 margin-top: 50px;
}

#podbody:not(.pgkt-uv) #portmain .subpagenavig:not(:has(ul)) +  #pgsc-1, #podbody:not(.pgkt-uv) #portmain #pgsc-1:not(.subpagenavig + #pgsc-1) {
 
 margin-top: -20px;
}

/* transformace */

div#podbody:not([class^="pgkt-omoooa"]) #pgsc-1 {
    opacity: 0;
    transform: translateY(180px);
    transition:
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.8s ease;
    will-change: transform, opacity;
}

div#podbody:not([class^="pgkt-omoooa"]) #pgsc-1.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pgkt-ba #hornitext {
    opacity: 0;
    transform: translateY(180px);
    transition:
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.8s ease;
    will-change: transform, opacity;
}

.pgkt-ba #hornitext.is-visible {
    opacity: 1;
    transform: translateY(0);
}



@media (prefers-reduced-motion: reduce) {
    #pgsc-1 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* end - transformace */
/* fotogalerie 300668 */
.pgkt-cnblbf .vbody, .pgkt-cnsksf .vbody {
    display: grid;
   
     grid-template-columns: 1fr;
  gap: 1rem;
 
    }

    @media only screen and (min-width: 550px) {
        .pgkt-cnblbf .vbody, .pgkt-cnsksf .vbody {
 grid-template-columns: repeat(auto-fit, minmax(min(250px, 30%), 1fr));
 
 }
        }

        @media only screen and (min-width: 1200px) {
        .pgkt-cnblbf .vbody, .pgkt-cnsksf .vbody {

 padding: 0 max(10vw, 150px);
 }
        }


    .pgkt-cnblbf .vbody .ftg_item, .pgkt-cnsksf .vbody .ftg_item {
  float: none;
  width: 100%;
    }
table.upper {

    text-align: left;
  
}

/* ---sirka obsahu - */
@media only screen and (min-width: 923px) {
#podbody:not(.pgkt-uv) .sct-std, #podbody:not(.pgkt-uv) #dolnitexttext {
  width: 90%;
 margin-left: auto;
margin-right: auto;
}

 #podbody.pgkt-ot .sct-std:not(#pgsc-1),  #podbody.pgkt-vs .sct-std:not(#pgsc-1){
    width: max(700px, 55%);
    background-color: #ede6da;
    padding: 70px 100px 20px;
    border-radius: 900px 900px 5px 5px;
  }

   #podbody.pgkt-ot .sct-std:not(#pgsc-1) .vbody,  #podbody.pgkt-vs .sct-std:not(#pgsc-1) .vbody {
    text-align: center;
  }
   #podbody.pgkt-ba #hornitext , #podbody.pgkt-do .sct-std:not(#pgsc-1) {
    width: max(500px, 30%);
    background-color: #551a57;
    border-radius: 900px 900px 5px 5px;
    padding: 100px 70px 60px;
     margin-left: auto;
    margin-right: auto;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.5em;
  }




#podbody:not(.pgkt-uv):not(.pgkt-cnmums):not(.pgkt-cnblbs):not(.pgkt-cnsksr) .sct-std .textbox {
 text-align: justify;
}
table.upper {
margin: 0 auto;
    text-align: justify;
    width: max(35vw,500px);
}

}
/* ---vypisy - */
.pgkt-psep #portmain .art-middle .typ-vypis-1 .vtitle {
 
  text-align: center;

  }

.pgkt-psep #portmain .art-middle .typ-vypis-1 .vmini img {
 width: auto;
  display: block;
  margin: auto;
  }

  /* animace - co navstivit - */
.stridani-obrazku {
    position: relative;
    width: min(200px, 50vw);
    aspect-ratio: 1 / 1;
   margin: -140px auto 30px;
    /* Vytvoří prostorový dojem */
    perspective: 900px;
}

.stridani-obrazku img {
 position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;

    opacity: 0;
    transform: rotateY(-90deg) scale(0.85);
    transform-origin: center bottom;
    backface-visibility: hidden;
    will-change: transform, opacity;

    animation: otaceni-obrazku 9s infinite ease-in-out;
}

.stridani-obrazku img:nth-child(1) {
    animation-delay: 0s;
}

.stridani-obrazku img:nth-child(2) {
    animation-delay: 3s;
}

.stridani-obrazku img:nth-child(3) {
    animation-delay: 6s;
}

@keyframes otaceni-obrazku {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) scale(1);
    }

    /* Obrázek se otočí čelem k uživateli */
    8% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }

    /* Chvíli zůstane zobrazený */
    25% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }

    /* Otočením zmizí na druhou stranu */
    33% {
        opacity: 0;
        transform: rotateY(90deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: rotateY(90deg) scale(1);
    }
}

/* Vypnutí animace, pokud ji uživatel nechce */
@media (prefers-reduced-motion: reduce) {
    .stridani-obrazku img {
        animation: none;
        transform: none;
    }

    .stridani-obrazku img:first-child {
        opacity: 1;
    }
}
/* end */
/* dekorace vypisu */
.pgkt-cnmumh .vnomini .vtitle {
    position: relative;
    padding-top: 70px; /* prostor pro obrázek */
}

 .pgkt-cnmumh .vnomini .vtitle::before {
    content: "";
    display: block;

    width: 50px;
    height: 50px;

   margin: 0 0;

    background-image: url("svg/scroll.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.pgkt-om .vnomini .vtitle {
    position: relative;
    padding-top: 70px; /* prostor pro obrázek */
}

 .pgkt-om .vnomini .vtitle::before {
    content: "";
    display: block;

    width: 50px;
    height: 50px;

   margin: 0 0 10px 0;

    background-image: url("svg/file-lines.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.pgkt-omoo #portmain .art-middle .typ-vypis-1 .vmini img {
   max-height:50px;
   object-fit: contain;
   object-position: left;
   border-radius: 0;
}

.pgkt-omoooa #portmain .art-middle .typ-vypis-1 .vsubj a  {
 width: auto;
 background-color: #3e0440;
color: white;
display: inline;
padding: 15px 30px 15px 20px;
border-radius: 5px 30px 30px 5px;
}

.pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vsubj a  {
 width: auto;
 background-color: #3e0440;
color: white;
display: inline;
padding: 15px 30px 15px 20px;
border-radius: 5px 30px 30px 5px;
}

.pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vsubj a:hover  {

color: #e9e9e9 !important;

}

[class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vsubj a  {
 width: auto;
 background-color: #3e0440;
color: white;
display: inline;
padding: 15px 30px 15px 20px;
border-radius: 5px 30px 30px 5px;
}


.pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vitem:nth-of-type(1) .vsubj a, .pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vitem:nth-of-type(5) .vsubj a { 
 background-color: #260428;
}

[class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vitem:nth-of-type(1) .vsubj a, [class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vitem:nth-of-type(5) .vsubj a { 
 background-color: #260428;
}

.pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vitem:nth-of-type(3) .vsubj a, .pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vitem:nth-of-type(6) .vsubj a { 
 background-color: #d7a463;
}
[class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vitem:nth-of-type(3) .vsubj a, [class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vitem:nth-of-type(6) .vsubj a { 
 background-color: #d7a463;
}

.pgkt-omoooa  #portmain .art-middle .typ-vypis-1 .vitem:nth-of-type(4) .vsubj a { 
 background-color: #bda591;
}
[class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vitem:nth-of-type(4) .vsubj a { 
 background-color: #bda591;
}

#podbody.pgkt-omoooa #portmain .onecol.art-middle .typ-vypis-1 .vitem,  [class^="pgkt-omoooa"]  #portmain .art-middle #pgsc-2 .typ-vypis-1 .vitem {
 width: fit-content;
}

/* end */
/* Kontakty */


.tablekont1 > tbody  {
  gap: 20px;
 display: flex;
  flex-wrap: wrap;
}

.tablekont1 > tbody > tr, .tablekont1 > tbody > td {
 display: block; 
}
.tablekont1 > tbody > tr {
 display: flex; 
 min-width: 100%;
}


.tablekont1 > tbody > tr > td {
 background-color: #ede6da;
 padding: 20px;
 border-radius: 5px;
 text-align: left;
}

.tablekont1 table tbody  {
display: grid;
  
  grid-template-columns: 1fr;
  gap: 20px;
}

.tablekont1 table tbody tr {
display: grid;
grid-template-columns: 1fr;
}

.goldtongue {
background-color: #d7a463;
  padding: 10px 20px;
  display: inline;
  border-radius: 5px 20px 20px 5px;
  width: fit-content;
  text-decoration: none !important;
  font-weight: bold;
}

@media only screen and (min-width: 600px)  {
.pgkt-omkokt .tablekont1 > tbody > tr > td {

 padding: 20px 150px 20px 20px;
 border-radius: 5px 300px 300px 5px;
}

}
@media only screen and (min-width: 924px)  {
  
.tablekont1 table tbody tr {
display: grid;
grid-template-columns: 60% 1fr;
}

.pgkt-omkopr .tablekont1 > tbody > tr > td {

 padding: 20px 150px 20px 20px;
 border-radius: 5px 300px 300px 5px;
}


}
/* end */








@media only screen and (max-width: 923px) {
#port-middle .subpagenavig_level_2 .level2, #portmain .art-middle .typ-vypis-cubes4, #portmain .art-middle .typ-vypis-cubes3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.flexslider .slides > li::before {
 
 z-index:auto;
}
.flexslider .slides img {
   height: 45vh;
   min-height: 400px;
  }

#portmain section.r-box-pack {
 
  padding: 0 0px;
  
}

#portmain section#hor {
 
  border-radius: 10px;
 
}

#podbody[class*="pgkt-cn"] #portmain .sct-std:first-of-type {
 
  width: 100%;
}

/* tabulky na titulce - otevírací doby */
.flex-mbody {

  border-radius: 0 9999px 9999px 0;
  padding: 10px 30px 20px 10px;
  max-width: 90%;
  box-sizing: border-box;
  font-size: min(2.5vw, 100%);
  margin-bottom: 3vw;
}
.flex-mbody h2 {
margin: 5px 0;
}
.flex-caption {

  justify-content: flex-end;

  flex-direction: column;
  gap: 0px;
}
/*  breadcrump */
.breadcrump {
    gap: 5px;
  margin: 5px 0;
 }
 .breadcrump .bcitem:not(.bcitem-nolink) > * {
 
  min-height: 25px;
   padding: 0 10px;
  font-size: min(15px, 3vw);
    text-transform: none;
}
.breadcrump .bcitem > span {
 
  min-height: 36px;
  padding: 0 12px;
  text-transform: uppercase;
  text-transform: none;
  font-size: min(20px, 6vw);
  
}

.breadcrump .bcseparator::before {
 
  font-size: 14px;
 
}
@media only screen and (max-width: 420px)  {
.breadcrump:has(> :nth-child(5):last-child) {
  flex-wrap: wrap;
}

.breadcrump:has(> :nth-child(5):last-child)::before {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 1;
}

.breadcrump:has(> :nth-child(5):last-child) > :nth-child(-n+3) {
    order: 0;
}

.breadcrump:has(> :nth-child(5):last-child) > :nth-child(n+4) {
    order: 2;
}

/* odsazení šipky na druhém řádku */
.breadcrump:has(> :nth-child(5):last-child) > :nth-child(4) {
    margin-left: 0px;
}
}


    }