/*
Theme Name: Ramon
Theme URI: https://wordpress.org/themes/twentytwentytwo/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Full Site Editing features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments

Twenty Twenty-Two WordPress Theme, (C) 2021 WordPress.org
Twenty Twenty-Two is distributed under the terms of the GNU GPL.
*/

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
	text-decoration-style: dashed;
}

a:active {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/*
 * Search and File Block button styles.
 * Necessary until the following issues are resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/36444
 * https://github.com/WordPress/gutenberg/issues/27760
 */

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 0;
	border: none;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/*
 * Button hover styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.90;
}

/*
 * Alignment styles.
 * These rules are temporary, and should not be relied on or
 * modified too heavily by themes or plugins that build on
 * Twenty Twenty-Two. These are meant to be a precursor to
 * a global solution provided by the Block Editor.
 *
 * Relevant issues:
 * https://github.com/WordPress/gutenberg/issues/35607
 * https://github.com/WordPress/gutenberg/issues/35884
 */

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
body > .is-root-container > .wp-block-cover,
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container .wp-block[data-align="full"] {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

/* Blocks inside columns don't have negative margins. */
.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
/* We also want to avoid stacking negative margins. */
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
	margin-left: auto !important;
	margin-right: auto !important;
	width: inherit;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}


/*
 * Basic overrides 
 */



.home h1 {
  display: none;
}

a,
a:hover {
  color: red;
}

a {
  text-decoration: none;
}

h1.wp-block-post-title {
  font-family: var(--wp--preset--font-family--system-font);
}    

h2 {
  font-family: var(--wp--preset--font-family--system-font);
  font-size: 3rem;
}    

h1.alignwide.wp-block-post-title {
  margin-bottom: 0 !important;
}

.wp-container-7 {
  /* max-width: 1000px; */
}

/*
 * Portfolio 
 */

.wp-block-post-featured-image {
  margin: 0;
}

.wp-block-post-featured-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  vertical-align: bottom
}

.wp-block-post-featured-image.alignwide img {
  width: 100%
}

.portfolio-grid {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 100%;
  list-style: none;
  padding: 0
}

.portfolio-grid.is-flex-container {
  flex-direction: row;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25em
}

.portfolio-grid.is-flex-container li {
  margin: 0;
  width: 100%
}

@media (min-width:600px) {

  .portfolio-grid.is-flex-container.columns-2 > li {
    width: calc(50% - .625em)
  }

  .portfolio-grid.is-flex-container.columns-3 > li {
    width: calc(33.33333% - .83333em)
  }

  .portfolio-grid.is-flex-container.columns-4 > li {
    width: calc(25% - .9375em)
  }

  .portfolio-grid.is-flex-container.columns-5 > li,
  .wp-block-query-loop.is-flex-container.columns-5 > li {
    width: calc(20% - 1em)
  }

  .portfolio-grid.is-flex-container.columns-6 > li {
    width: calc(16.66667% - 1.04167em)
  }
}


.portfolio-item { 
  position: relative;
  cursor: pointer;

  /* overflow: hidden; */
}

.portfolio-item img {
  border:1px solid #ccc;
  border-radius: 0px;
  /* filter: brightness(100%); */

  
}


/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  background-color: transparent;
  width: 233px;
  height: 233px;
  /* border: 1px solid #f1f1f1; */
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.3s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  transition-duration: 0.5s;
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color: orangered;
  background-color: rgb(255, 68, 0);
  background-color: rgba(255, 0, 0, 0.116);
  color: white;
  color: black;
  transform: rotateY(180deg);
  cursor: default !important; 
}

.flip-card-back div {
  cursor: default !important; 
  
}

.portfolio-info {

  position: absolute;
  top: 50%;
  /* move up by half of its height so that its middle is in the middle of outer container */
  transform: translateY(-50%);

  width: 100%;

}

.portfolio-info-inner {
  width: 80%;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 4px;


  border-color: 1px solid red;
  background: rgba(255,0,0,0.8);
  color: #fff;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  /* transition: visibility 0s, opacity 0.5s linear;   */
  /* display: none; */
}

.flip-card-back {
  /* padding-left: 11px;
  padding-right: 11px; */

}
.flip-card-back h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--system-font);
  
}
.flip-card-back h3, 
.flip-card-back .artist,
.flip-card-back .excerpt,
.flip-card-back .skills {
  padding-left: 11px;
  padding-right: 11px;
}

.flip-card-back .artist {
  font-size: 0.9rem;
  font-weight: 500;
}

.flip-card-back .excerpt {
  font-size: 0.9rem;
}


.portfolio-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.portfolio-item.is-active  {
/* box-shadow: 2px 2px red; */
}

.portfolio-item.is-active img {
    /* filter: grayscale(100%); */
    /* filter: blur(1px); */
  /* filter: brightness(125%); */
  /* filter: opacity(60%); */
  /* filter: grayscale(50%); */

  /* transition-property: transform; */
  /* transform: scale(1.03,1.03); */
  


  /* filter: brightness(0%);    
  border-color: red;
  transition-duration: 0.2s;
  transition-timing-function:  ease-in-out;
  transform: scaleX(-1); */
}

.portfolio-item.is-active .portfolio-info-inner {
  /* transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function:  linear;

    
  visibility: visible;
  opacity: 1;
  display: block; */

}

.portfolio-item .smaller {
  font-size:small;
}

/* 
@media (max-width: 600px) {
  .flip-card {
    width: 233px;
    height: 233px;
    color: red;
  }
  
} */

@media (min-width:600px) and (max-width:1120px) {

  .portfolio-grid.is-flex-container.columns-4 > li {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .flip-card {
    width: 100%;
    height: 440px;
    color: red;
  }

  .portfolio-item img {
    height: 400px;
    width: 400px;
    /* object-fit:none !important; */
  }

  .flip-card-back h3 {
    margin-top: 4rem;
  }  


}


@media (max-width:600px) {

  .portfolio-grid.is-flex-container.columns-4 > li {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .flip-card {
    width: 100%;
    height: 440px;
    color: red;
  }

  .portfolio-item img {
    height: 400px;
    width: 400px;
  }

  .flip-card-back h3 {
    margin-top: 4rem;
  }  

}



/* Others */ 

.mail-info {
  position: relative;
  bottom: 100px;
  height: 50px;
  padding-top: 2rem;
  background: #fff;
  color: #bbb;
}


/* Footer */ 
footer {
  font-size: 1rem;
  color: #999;
}

footer .wp-block-site-title a {
  font-size: 1rem;
  color: #333; 
  font-style: normal;
}


/* Play icon */ 

.portfolio-video {
  margin-top: 0.5rem;
}

.portfolio-video a {
  display: inline-block;
  position: relative; 
  z-index: 1;  
}
.portfolio-video span {
  display: inline-block;
}
.portfolio-video object {
  position: relative; 
  z-index: -1;  
}


