body
{
    color: #000 !important;
    line-height: 1.5em;
}

.wp-block-columns
{
    margin-bottom: 0px;
}

main h1, main h2, main h3, main h4, main h5, main h6
{
    font-family: "AvenirCondensedWeb", sans-serif;
}


h1
{
	font-size: 90px;
	line-height: 100%;
	margin-bottom: 0px;
    opacity: 0;
}

h1.visible
{
    opacity: 1;
}

h1 span
{
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 10px, 0px);
    transition: opacity .3s linear, transform .5s ease;
}

h1.visible span
{
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}

h1.visible span:nth-of-type(2)
{
    transition-delay: .2s;
}

h1.visible span:nth-of-type(3)
{
    transition-delay: .4s;
}

h1.visible span:nth-of-type(4)
{
    transition-delay: .6s;
}


h1::before
{
  content: "";
  margin-bottom: -0.04em;
  display: table;
}

h1::after
{
  content: "";
  margin-top: -0.25em;
  display: table;
}



.spc-section
{
	max-width: 1310px;
	width: 92%;
	margin: 0px auto 150px auto;
    line-height: 1.7em;
    /**/
}

.spc-section.spc-full-width
{
    max-width: none;
    width: 100%;
}

header.spc-section
{
    margin-top: 100px;
    margin-bottom: 0px;
}

.spc-hero
{
    margin-top: 75px;
}

.ark-40-grid.is-layout-grid
{
    gap: 0px;
    margin: 0px auto 60px auto;
}

.ark-40-grid > .wp-block-group
{
    opacity: 0;
    transition: opacity .3s linear
}

.ark-40-grid > .wp-block-group.visible
{
    opacity: 1;
}

.ark40-product-info
{
    position: absolute;
    bottom: 16px;
    left: 0px;
    right: 0px;
    text-align: center;
    font-family: "AvenirCondensedWeb", sans-serif;
    opacity: 0;
    transition: opacity .2s linear;
}


.ark40-product-info h2
{
    font-size: 18px;
    margin: 0px 0px 8px 0px;
}

.ark40-product-info h2::before 
{
  content: "";
  margin-bottom: -0.2em;
  display: table;
}

.ark40-product-info h2::after 
{
  content: "";
  margin-top: -0.35em;
  display: table;
}

.ark40-product-info p
{
    font-size: 10px;
    line-height: 1.3em;
    text-wrap: balance;
    margin: 0px 8px;
}

/*.ark40-product-info p::before 
{
  content: "";
  margin-bottom: -0.9em;
  display: table;
}

.ark40-product-info p::after 
{
  content: "";
  margin-top: -0.85em;
  display: table;
}*/


.ark-40-grid .wp-block-group__inner-container
{
    position: relative;
}

.ark-40-grid .wp-block-group__inner-container figure
{
    position: relative;
    height: 0px;
    overflow: hidden;
    padding-bottom: 169%;
}

.ark-40-grid .wp-block-group__inner-container figure:nth-of-type(2)
{
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: 0;
    transition: opacity .3s linear;
}

@media all and ( pointer: fine ){



    .ark-40-grid .wp-block-group:hover .ark40-product-info
    {
        opacity: 1;
    }

    .ark-40-grid .wp-block-group:hover .wp-block-group__inner-container figure:nth-of-type(2)
    {
        opacity: 1;
    }
}



.wp-block-post-featured-image
{
	width: 100%;
    height: 0px;
    overflow: hidden;
    padding-bottom: 53.18%;
}

.wp-block-post-featured-image img
{
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: transform .75s ease,opacity 1s ease;
    transform: translate3d(0, 50px, 0);
}

.wp-block-post-featured-image img.lazy-loaded
{
    opacity: 1;
    transform: translate3d(0, 0px, 0);
}

.spc-main
{

  	margin: 0 auto;
  	/*transform: translate3d(0,-34px,0);*/
  	background-color: #FFF;
  	padding: 0px;
  	box-sizing: border-box;
    max-width: 862px;
    width: 92%;
}

.spc-podcast-main
{
    max-width: 862px;
}

.spc-main .wp-block-columns
{
    margin-bottom: 45px;
}

.spc-main h2
{
	font-size: 60px;
	line-height: 110%;
}

.spc-profile-main h2
{
    font-size: 60px;
    line-height: 100%;
}

.spc-profile-main .spc-profile-intro
{
    width: 68.6%;
    margin-bottom: 40px;
}

.spc-profile-main .profiles
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 68px 2.7%;
    margin-bottom: 0px;
}

.spc-profile-main .profile
{
    flex-basis: 22.975%;
    font-size: 14px;
    line-height: 130%;
}

.ark-load-profiles
{
    margin-bottom: 0px;
    width: 100%;
    flex-basis: 100%;
}

.ark-load-profiles button
{
    appearance: none;
    color:#000;
    background-color: transparent;
    padding: 0px;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;

    background-repeat: no-repeat,no-repeat;
    transition: background-position 1s ease, color 1s linear;
    background-image: linear-gradient(#FFF, #FFF), linear-gradient(#000, #000), linear-gradient(#000, #000);
    background-size: 100px 1px, 100% 1px, 0 1px;
    background-position: calc(100px * -1) 100%, 100% 100%, 0 100%;
    padding-bottom: 2px;
    border-bottom: 0px;

}

.ark-load-profiles button:hover
{
    background-size: 100px 1px, 0 1px, 100% 1px;
    background-position: calc(100% + 100px) 100%, 100% 100%, 0 100%;
}

.spc-profile-main .profile a
{
    border-bottom: none;
}

.spc-profile-main .profile figure
{
    margin-bottom: 20px;
    height: 0px;
    overflow: hidden;
    padding-bottom: 126.7%;
}

.spc-profile-main .profile h3
{
    font-size: 24px;
    line-height: 110%;
    margin-bottom: 16px;
}

.spc-profile-main .profile h3::before 
{
  content: "";
  margin-bottom: 0em;
  display: table;
}

.spc-profile-main .profile h3::after 
{
  content: "";
  margin-top: -0.35em;
  display: table;
}

.spc-explore
{
    width: 78.9%;
}

.spc-header
{
    width: 40%;
    margin-bottom: 100px;
}


.spc-toggle-group > .wp-block-group__inner-container
{
    display: flex;
    flex-direction: column;
    gap: 40px;

}

.spc-toggle-item
{
    border-bottom: 1px solid #000;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.7s all ease;
}

.spc-toggle-item h4
{
    font-size: 24px;
}

.spc-toggle-item.visible
{
    opacity: 1;
    transform: translateY(0px);
}

.spc-toggle-item .wp-block-group
{
    height: 0px;
    overflow: hidden;
    transition: height .5s ease;
}

.spc-toggle-item .wp-block-group > .wp-block-group__inner-container
{
    padding-bottom: 48px;
}

.spc-toggle-item header.wp-block-group
{
    height: auto;
    padding-bottom: 0px;
    position: relative;
}

.spc-toggle-item header.wp-block-group figure
{
    position: absolute;
    right: 16px;
    top: 5px;
}

.spc-toggle-group h3
{
    font-size: 24px;
    text-transform: uppercase;
    position: relative;
    font-weight: 400;
    cursor: pointer;
}

.spc-toggle-group h3 figure
{
    width: 16px;
    height: 16px;
    position: absolute;
    right: 5px;
    top: -4px;
    margin: 0px;
}

.spc-toggle-group h3 figure svg
{
    width: 100%;
}

.spc-toggle-group h3 figure path
{
    transition: transform 1s ease;
    
    transform: rotateX(-180deg) translateY(-100%);
}

.spc-toggle-group h3.open figure path
{
    transform: rotateX(0deg) translateY(0);
}

.fadeinup p,
.fadeinup h2,
.fadeinup h3,
.fadeinup li,
.fadeinup figure
{
    opacity: 0;
    -webkit-transform: translateY(15px);
    transform: translateY(15px);
    -webkit-transition: 0.7s all ease;
    transition: 0.7s all ease;
}

.fadeinup p.fadein,
.fadeinup h2.fadein,
.fadeinup h3.fadein,
.fadeinup li.fadein,
.fadeinup figure.fadein
{
    opacity: 1;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
}

/*.spc-toggle-group h2::after
{
    display: block;
    content: '';
    background-image: url('/wp-content/themes/arkitektura22/images/arrows/toggle-arrow.svg');
    background-position: center;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 16px;
    top: 5px;
    transition: transform .5s ease;
    transform: rotate(0deg);
}*/

.spc-toggle-group h2.open::after
{
    transition: transform .5s ease;
    transform: rotate(180deg);
}


.profile-overlay
{
    position: fixed;
    top: 120px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: #FFF;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s linear;
    z-index: 1000;
    
}

.profile-overlay .inner
{
    width: 100%;
    max-width: 1310px;
    margin: 0px auto;
    position: relative;
    
}

.profile-overlay header .inner
{
    width: 95%;
}

.profile-overlay > .inner
{
    padding-bottom: 100px;
    padding-right: 40px;
    height: calc(100% - 155px);
    overflow: auto;
    box-sizing: border-box;
    padding-top: 26px;
}

.profile-overlay h1
{
    opacity: 1;
    font-size: 36px;
    max-width: 1310px;
    width: 100%;
    margin: 0px auto 36px auto;

}

.profile-overlay .inner figure,
.profile-overlay .inner p
{
    opacity: 0;
    transform: translateY(15px);
    transition: .7s all ease;
}

.profile-overlay .inner figure.visible,
.profile-overlay .inner p.visible
{
    opacity: 1;
    transform: translateY(0px);
}

body.admin-bar .profile-overlay
{
    top: 152px;
}

.profile-overlay.visible
{
    opacity: 1;
    pointer-events: visible;
}

.ark-profile-header
{
    border: 1px solid #F4F4F4;
    margin-bottom: 0px;
}

.ark-profile-header h1
{
    margin: 0px;
    padding: 36px 0px;
    font-family: "AvenirCondensedWeb", sans-serif;
}

.profile-overlay .wp-block-column:nth-of-type(2)
{
    padding-top: 76px;
}



.profile-overlay .close-btn
{
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 17px;
    height: auto;
    padding: 0px;
    border: none;
    cursor: pointer;
    line-height: 0;
}

.profile-overlay .close-btn svg
{
    width: 100%;
}

@media all and (max-width: 900px)
{
    
    .spc-profile-main .spc-profile-intro
    {
        width: 100%;
    }


    .profile-overlay > .inner .wp-block-column:first-child
    {
        flex-basis: 46%;
    }

    .profile-overlay > .inner .wp-block-column:nth-of-type(2)
    {
        flex-basis: 54%;
    }
}

@media all and (max-width: 781px){

    .ark-profile-header
    {
        margin-bottom: 0px;
    }

    .profile-overlay > .inner
    {
        padding-right: 0px;
        padding-top: 0px;
        height: 100%;
    }

    .profile-overlay .wp-block-column:nth-of-type(2)
    {
        padding-top: 40px;
    }

}

.mejs-container
{
    max-height: 30px !important;
}

.mejs-container, .mejs-container .mejs-controls, .mejs-embed, .mejs-embed body
{
    background: transparent !important;
}

.podcast-directory
{
    
    position: relative;
    width: 100%; /*(78.9%;*/
    margin-bottom: 100px;
    margin-top: 100px;
}

.podcast-directory.other-episodes
{
    max-height: 375px;
    overflow: auto;
    padding-bottom: 70px;
}

.spc-podcast-list
{
    position: relative;
}

.spc-podcast-list::after
    {
        content: '';
        display: block;
        position: absolute;
        bottom: 0px;
        left:0px;
        right: 0px;
        height: 70px;
        pointer-events: none;
        background-image: linear-gradient(
            to bottom, 
            rgba(255,255,255, 0),
            rgba(255,255,255, .75) 50%,
            #FFF 70%);
        z-index: 10;
    }


.podcast-directory:last-of-type
{
    margin-bottom: 0px;
    margin-top: 0px;
}

.podcast-directory h3,
.podcast-directory h4,
.podcast-directory .ark-episode
{
    opacity: 1;
    transform: translateY(15px);
    transition: .7s all ease;
}

.podcast-directory h3.visible,
.podcast-directory h4.visible,
.podcast-directory .ark-episode.visible
{
    opacity: 1;
    transform: translateY(0px);
}

.pod-heading
{
    font-size: 25px;
    margin-bottom: 27px;
}

.ark-episode img
{
    opacity: 1 !important;
    transform: translate3d(0px, 0px, 0px) !important;
    transition: opacity .3s linear, transform .5s ease !important; 
}

.ark-episode img.lazy-loaded,
.ark-episode.visible img
{
    opacity: 1 !important;
    transform: translate3d(0px, 0px, 0px) !important;
}

.ark-episode.featured
{
    margin-bottom: 34px;
}

.ark-episode.featured p
{
    font-size: 20px;
    font-family: "AvenirCondensedWeb", sans-serif;
}

.ark-episode p
{
    margin: 0px;
}

.episode-info
{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.episode-info figure
{
    width: 86px;
    margin: 0px;
    overflow: hidden;
    border-radius: 100%;
}

.mejs-button > button
{
    background: transparent url("/wp-content/themes/arkitektura/images/play-sprite.svg") !important;
    width: 26px !important;
    height: 26px !important;
    background-size: 52px auto !important;
    background-repeat: no-repeat !important;
}

.mejs-button.mejs-pause > button 
{
    background-position: -26px !important;
}

.mejs-time
{
    color: #000 !important;
}

.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total, .mejs-controls .mejs-time-rail .mejs-time-total
{
    background-color: #F4F4F4 !important;
    height: 2px !important;
}

.mejs-volume-button,
.mejs-controls a.mejs-horizontal-volume-slider
{
    display: none !important;
}

.mejs-time-rail
{
    position: absolute !important;
    left: 0px !important;
    top: 7px !important;
    width: 90% !important;
    margin: 0px !important;
}

.mejs-controls .mejs-time-rail .mejs-time-current
{
    height: 2px !important;
    background-color: #FF8D46 !important;
}

.mejs-controls .mejs-time-rail .mejs-time-loaded
{
    height: 2px !important;
    background-color: transparent !important; /* #c4c4c4 */
}

.mejs-time.mejs-currenttime-container
{
    padding:0px !important;
    right: 37px !important;
    position: absolute !important;
    top: 19px !important;
    position: relative;
    overflow: visible;
}

.mejs-time.mejs-currenttime-container::after
{
    content: '/';
    display: block;
    position: absolute;
    top: 0px;
    left: 30px;
}

.mejs-time-handle
{
    display: none !important;
}

.mejs-controls
{
    padding: 0px !important;
}

.mejs-button.mejs-playpause-button
{
    position: absolute !important;
    right: 21px !important;
    top: -31px !important;
    margin: 0 !important;
    width: 25px;
    height: 25px;
}

.mejs-button.mejs-playpause-button button
{
    width:100% !important;
    margin: 0px !important;
}

.mejs-time.mejs-duration-container
{
    position: absolute !important;
    right: 0px !important;
    padding: 0px !important;
    top: 19px !important;
}

.mejs-time.mejs-currenttime-container
{

}


@media all and ( max-width: 767px ){
    h1
    {
        font-size: 42px;
    }

    .ark40-product-info
    {
        display: none;
    }

    .ark-episode.featured p
    {
        width: 50%;
    }

    .ark-40-grid.is-layout-grid
    {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .spc-main
    {
      width: 92%;
      margin: 0 auto;
      font-size: 15px;
      padding: 0px;
    }

    .spc-main h2
    {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .spc-profile-main h2
    {
        font-size: 28px;
    }

    .spc-main .wp-block-columns
    {
        width: 100%;
    }

    .spc-profile-main .spc-profile-intro
    {
        width: 100%;
        gap: 12px;
        font-size: 15px;
        margin-bottom: 48px;
    }

    .spc-profile-main .profiles
    {
        gap:68px 4%;

    }

    .spc-profile-main .profile
    {
        flex-basis: 48%;
    }

    .spc-header
    {
        width: 100%;
        font-size: 18px;
        line-height: 1.5em;
    }

    .podcast-directory
    {
        width: 100%;

    }

    .mejs-time-rail
    {
        width: 65% !important;
    }

    .spc-explore
    {
        width: 100%;
    }


    .profile-overlay .wp-block-column:nth-of-type(2) p
    {
        width:90%;
        margin: 0px auto 28px auto;
    }

    .ark-profile-header h1
    {
        width: 82%;
    }

}


.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr;
    gap: 72px 2.675%;
    grid-template-areas: ". . . . . . . . . . . .";
    position: fixed;
    height: 100%;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    max-width: 1310px;
    width: 95%;
}

.grid-container.visible {
    opacity: 0;
}

.grid-container div {
    background-color: #ffc0cb4f;
}

