/*
Theme Name: Wox Child
Theme URL: https://themeforest.net/item/wox-one-page-portfolio-wordpress-theme/22262960
Description: Child theme of Wox — lineacapelli.gr site customizations (moved out of the parent theme during the 2026 upgrade).
Author: webRedox WordPress team / lineacapelli.gr
Template: wox
Version: 1.0.0
Text Domain: wox-child
*/
/*******Add Your Css Below This Line*********/

/* Visual Portfolio 3.x (gallery): κράτα το layout της 1.14.
   Η 1.14 έδινε στο κουτί της εικόνας το ratio των attributes width/height (πλήρες μέγεθος).
   Η 3.x το ξαναϋπολογίζει από το αρχείο του srcset (π.χ. 1024x682 αντί για 1800x1200),
   οπότε κάθε εικόνα μετακινείται ~0.25px και η μετατόπιση αθροίζεται. */
.vp-portfolio__item-img img[width][height] {
	aspect-ratio: attr(width type(<number>)) / attr(height type(<number>));
	height: auto;
	object-fit: cover;
}

/* Visual Portfolio 3.x: η 1.14 έβαζε will-change στο gallery. Χωρίς αυτό ο Chrome ζωγραφίζει τις εικόνες
   χωρίς ξεχωριστό layer και το snap στο pixel διαφέρει κατά 1px (0.757% στο gallery-mobile). */
.vp-portfolio__items-wrap { will-change: opacity, visibility; }
.vp-portfolio__items { will-change: height, transform; }
.vp-portfolio__item-img img { will-change: transform, opacity; }

/* WPBakery 9.x (bundled με Wox 3.9.4): το «Read more» του grid στο blog (template με vc_btn color="juicy-pink")
   βγαίνει γκρι (#ebebeb/#666) γιατί η μετατροπή vc_btn3 → wpb_btn χάνει το χρώμα. Χρώματα της 6.0.3: */
.vc_grid-item .wpb_btn.wpb_btn-style-flat {
	background-color: #f4524d !important;
	color: #fff !important;
}
.vc_grid-item .wpb_btn.wpb_btn-style-flat:hover,
.vc_grid-item .wpb_btn.wpb_btn-style-flat:focus {
	background-color: #f23630 !important;
	color: #f7f7f7 !important;
}
/* ...και το νέο .wpb_btn-container δεν έχει το margin-bottom του παλιού .vc_btn3-container (κάρτες 21px κοντύτερες). */
.vc_grid-item .wpb_btn-container { margin-bottom: 21.73913043px; }
