/* ===============================
     Flex Loop Pattern 6
     ===============================
     A 6-item repeating layout pattern:
     1. Full-width
     2. Half-width
     3. Half-width
     4. One-third width
     5. Two-thirds width
     6. (Repeats from 1)
  */

  /* 1. Every 6th + 1 item (1st, 7th, 13th, etc.) spans full width */
  .grid .child:nth-child(6n + 1) {
    flex-basis: 100%;
  }

  /* 2 & 3. Next two items take up 50% each (side by side) */
  .grid .child:nth-child(6n + 2),
  .grid .child:nth-child(6n + 3) {
    flex-basis: 50%;
  }

  /* 4. Fourth item in the pattern takes one-third width */
  .grid .child:nth-child(6n + 4) {
    flex-basis: 33.33%;
  }

  /* 5. Fifth item takes two-thirds width, pairing with the one-third */
  .grid .child:nth-child(6n + 5) {
    flex-basis: 66.66%;
  }

  /* ===============================
     Default Flex Behaviour Reset
     ===============================
     Prevent children from shrinking or growing unexpectedly.
     All sizing comes from flex-basis.
  */
  .grid .child {
    flex-shrink: 0;
    flex-grow: 0;
  }

  /* ===============================
     Straggler Safety Net
     ===============================
     If there's a lonely item at the end (e.g. 25th in a set of 25),
     make it full width so it doesn't sit awkwardly beside empty space.
  */
  .grid .child:last-child {
    flex-basis: 100%;
  }
Imported item 999
Imported item 1000
Imported item 998
Imported item 997
Imported item 995
Imported item 996
Imported item 994
Imported item 993
Imported item 992
Imported item 991
Imported item 990
Imported item 989
Imported item 988
Imported item 987
Imported item 986
Imported item 985
Imported item 975
Imported item 983
Imported item 984
Imported item 982
Imported item 981
Imported item 980
Imported item 979
Imported item 978
Imported item 977
Imported item 976
Imported item 972
Imported item 974
Imported item 969
Imported item 973
Imported item 971
Imported item 970
Imported item 968
Imported item 967
Imported item 966
Imported item 965
Imported item 964
Imported item 963
Imported item 962
Imported item 960
Imported item 961
Imported item 959
Imported item 958
Imported item 956
Imported item 957
Imported item 953
Imported item 955
Imported item 954
Imported item 952
Imported item 951
Imported item 950
Imported item 949
Imported item 948
Imported item 947
Imported item 946
Imported item 945
Imported item 943
Imported item 942
Imported item 944
Imported item 941
Imported item 940
Imported item 939
Imported item 937
Imported item 938
Imported item 932
Imported item 936
Imported item 935
Imported item 934
Imported item 930
Imported item 933
Imported item 929
Imported item 931
Imported item 928
Imported item 926
Imported item 927
Imported item 925
Imported item 924
Imported item 923
Imported item 922
Imported item 921
Imported item 917
Imported item 920
Imported item 914
Imported item 919
Imported item 918
Imported item 916
Imported item 913
Imported item 915
Imported item 912
Imported item 910
Imported item 911
Imported item 909
Imported item 907
Imported item 908
Imported item 905
Imported item 901
Imported item 902
Imported item 906
Imported item 904
Imported item 903